/* joseramongoni.com — atardecer de ruleta: berenjena profunda, oro cálido y violeta neón */

:root {
  --fondo: #150a20;
  --fondo-2: #1c0f2c;
  --panel: #241338;
  --panel-2: #2e1946;
  --hondo: #0e0616;
  --texto: #efe6f7;
  --tenue: #b6a3cb;
  --raya: rgba(196, 140, 255, 0.18);
  --raya-2: rgba(196, 140, 255, 0.36);
  --oro: #ffbd3a;
  --oro-claro: #ffd27a;
  --oro-oscuro: #e09a12;
  --violeta: #b45cff;
  --violeta-claro: #c985ff;
  --magenta: #ff4fd2;
  --cian: #58dcff;
  --tinta: #1a0d06;
  --blanco: #ffffff;

  --letra-titulos: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --letra-cuerpo: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --ancho: 1160px;
  --margen-lateral: clamp(1rem, 4vw, 2.4rem);
  --alto-top: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-top) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255, 189, 58, 0.14), transparent 65%),
    radial-gradient(900px 520px at -10% 25%, rgba(180, 92, 255, 0.16), transparent 65%),
    var(--fondo);
  color: var(--texto);
  font-family: var(--letra-cuerpo);
  font-size: 1.04rem;
  line-height: 1.72;
}

body.rj-congelado { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
strong { color: var(--blanco); }

:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 8px; }
section:focus { outline: none; }

.rj-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rj-skip {
  position: absolute;
  top: -90px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--oro);
  color: var(--tinta);
  font-weight: 700;
  text-decoration: none;
}
.rj-skip:focus { top: 1rem; }

.rj-ancho { width: min(100% - 2 * var(--margen-lateral), var(--ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.rj-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 14px;
  font-family: var(--letra-cuerpo);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.rj-boton:active { transform: scale(0.97); }

.rj-boton--oro { background: linear-gradient(180deg, var(--oro-claro), var(--oro) 55%, var(--oro-oscuro)); color: var(--tinta); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(255, 189, 58, 0.9); }
.rj-boton--oro:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(255, 189, 58, 0.3), 0 14px 30px -10px rgba(255, 189, 58, 1); transform: translateY(-2px); }

.rj-boton--violeta { background: rgba(180, 92, 255, 0.14); color: var(--blanco); box-shadow: inset 0 0 0 2px var(--violeta); }
.rj-boton--violeta:hover { background: linear-gradient(135deg, var(--violeta), var(--magenta)); box-shadow: 0 10px 26px -10px rgba(255, 79, 210, 0.8); transform: translateY(-2px); }

.rj-boton--xl { min-height: 54px; padding: 0.85rem 1.9rem; font-size: 1.02rem; }

/* ---------- barra superior ---------- */

.rj-top { position: sticky; top: 0; z-index: 300; background: rgba(21, 10, 32, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--raya); }
.rj-top__fila { display: flex; align-items: center; gap: 1rem; height: var(--alto-top); }

.rj-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--blanco); text-decoration: none; flex-shrink: 0; }
.rj-logo__aro { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--oro); box-shadow: 0 0 0 3px rgba(180, 92, 255, 0.35), 0 0 14px rgba(255, 189, 58, 0.5); }
.rj-logo__txt { font-family: var(--letra-titulos); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.rj-logo__pais { color: var(--oro); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.rj-nav { margin-left: auto; }
.rj-nav ul { display: flex; gap: 0.2rem; margin: 0; padding: 0.3rem; list-style: none; border-radius: 999px; background: rgba(36, 19, 56, 0.7); border: 1px solid var(--raya); }
.rj-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--tenue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.rj-nav__link:hover { color: var(--blanco); }
.rj-nav__link[aria-current="true"] { background: linear-gradient(135deg, var(--violeta), var(--magenta)); color: var(--blanco); }

.rj-top__acciones { display: flex; align-items: center; gap: 0.6rem; }
.rj-top__cta { min-height: 42px; padding: 0.45rem 1.1rem; font-size: 0.88rem; }

.rj-abrir { display: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--raya-2); border-radius: 14px; background: var(--panel); color: var(--blanco); cursor: pointer; }
.rj-abrir__icono { display: grid; gap: 6px; width: 20px; }
.rj-abrir__icono span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.rj-abrir__icono span:last-child { width: 60%; background: var(--oro); }

.rj-hoja { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: flex-end; background: rgba(8, 3, 14, 0.66); }
.rj-hoja[hidden] { display: none; }
.rj-hoja__panel {
  display: flex;
  flex-direction: column;
  width: min(90vw, 390px);
  height: 100%;
  padding: 1rem 1.2rem 1.6rem;
  overflow-y: auto;
  background: linear-gradient(200deg, var(--panel-2), var(--hondo));
  border-left: 1px solid var(--raya-2);
  animation: rj-desliza 0.24s ease;
}
@keyframes rj-desliza { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.rj-hoja__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.rj-hoja__cerrar { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--blanco); font-size: 1.1rem; cursor: pointer; }
.rj-hoja__lista { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.rj-hoja__link { display: flex; align-items: center; gap: 0.9rem; min-height: 52px; padding: 0.4rem 0.6rem; border-radius: 12px; color: var(--blanco); font-family: var(--letra-titulos); font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.rj-hoja__link:hover { background: rgba(180, 92, 255, 0.16); }
.rj-hoja__n { color: var(--oro); font-family: var(--letra-cuerpo); font-size: 0.78rem; font-weight: 700; }
.rj-hoja__ctas { display: grid; gap: 0.8rem; margin-top: auto; padding-top: 1.4rem; }

/* ---------- portada ---------- */

.rj-portada { padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(2rem, 4vw, 3rem); }
.rj-portada__marco { position: relative; margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); padding: 3px; border-radius: 28px; background: linear-gradient(120deg, var(--oro), var(--magenta) 50%, var(--cian)); box-shadow: 0 30px 70px -40px rgba(255, 79, 210, 0.8); }
.rj-portada__marco img { width: 100%; aspect-ratio: 1380 / 752; object-fit: cover; object-position: 50% 45%; border-radius: 25px; }
@media (min-width: 921px) { .rj-portada__marco img { aspect-ratio: 1380 / 560; max-height: 52vh; } }
.rj-portada__rej { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.rj-portada h1 {
  margin: 0 0 1rem;
  color: var(--blanco);
  font-family: var(--letra-titulos);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.rj-portada__texto > p { color: var(--texto); }
.rj-guia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: guia; }
.rj-guia li { position: relative; padding: 0.75rem 0.9rem 0.75rem 2.8rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--raya); counter-increment: guia; line-height: 1.45; }
.rj-guia li::before { content: counter(guia); position: absolute; left: 0.8rem; top: 0.75rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--oro); color: var(--tinta); font-size: 0.78rem; font-weight: 800; }
.rj-portada__botones { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.rj-indice { position: sticky; top: calc(var(--alto-top) + 16px); border-radius: 20px; background: var(--panel); border: 1px solid var(--raya-2); overflow: hidden; }
.rj-indice__boton { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0.8rem 1.1rem; border: 0; background: linear-gradient(90deg, rgba(180, 92, 255, 0.28), transparent); color: var(--blanco); font-family: var(--letra-titulos); font-size: 1.05rem; font-weight: 700; text-align: left; cursor: pointer; }
.rj-indice__flecha { width: 10px; height: 10px; border-right: 2px solid var(--oro); border-bottom: 2px solid var(--oro); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.rj-indice__boton[aria-expanded="false"] .rj-indice__flecha { transform: rotate(-45deg); }
.rj-indice__lista { display: grid; gap: 0.1rem; margin: 0; padding: 0.4rem 0.7rem 0.9rem; list-style: none; counter-reset: ind; }
.rj-indice__lista[hidden] { display: none; }
.rj-indice__lista li { counter-increment: ind; }
.rj-indice__lista a { display: grid; grid-template-columns: 1.9rem 1fr; align-items: baseline; padding: 0.45rem 0.4rem; border-radius: 10px; color: var(--tenue); font-size: 0.92rem; line-height: 1.35; text-decoration: none; }
.rj-indice__lista a::before { content: counter(ind, decimal-leading-zero); color: var(--violeta-claro); font-size: 0.75rem; font-weight: 700; }
.rj-indice__lista a:hover { background: rgba(255, 255, 255, 0.05); color: var(--blanco); }

.rj-fichas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; padding: 0; list-style: none; }
.rj-ficha {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-height: 120px;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--panel-2), var(--fondo-2));
  border: 1px solid var(--raya);
  color: var(--texto);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rj-ficha::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 10px solid rgba(255, 189, 58, 0.12); }
.rj-ficha:hover { border-color: var(--oro); transform: translateY(-3px); }
.rj-ficha__dato { color: var(--oro); font-family: var(--letra-titulos); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.rj-ficha__nombre { font-weight: 600; line-height: 1.35; }
.rj-ficha__flecha { color: var(--violeta-claro); font-weight: 700; }

/* ---------- secciones ---------- */

.rj-sec { padding: clamp(1rem, 2.5vw, 1.6rem) 0; }
.rj-sec__caja { max-width: 980px; padding: clamp(1.4rem, 3.4vw, 2.6rem); border-radius: 28px; background: rgba(28, 15, 44, 0.85); border: 1px solid var(--raya); }
.rj-sec--alt .rj-sec__caja { background: linear-gradient(160deg, rgba(46, 25, 70, 0.95), rgba(21, 10, 32, 0.95)); border-color: var(--raya-2); }
.rj-sec__cab { margin-bottom: 1.3rem; }
.rj-sec__chip { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.25rem 0.75rem 0.25rem 0.3rem; border-radius: 999px; background: rgba(255, 189, 58, 0.12); color: var(--oro-claro); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rj-sec__num { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--oro); color: var(--tinta); font-size: 0.72rem; }
.rj-sec__cab h2 { margin: 0; color: var(--blanco); font-family: var(--letra-titulos); font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.rj-sec__cuerpo > :last-child { margin-bottom: 0; }

.rj-sub { position: relative; margin-top: 1.6rem; padding-top: 1.5rem; }
.rj-sub::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--oro), var(--violeta) 40%, transparent); }
.rj-sub:first-child { margin-top: 0; padding-top: 0; }
.rj-sub:first-child::before { display: none; }
.rj-sub h3 { margin: 0 0 0.7rem; color: var(--violeta-claro); font-family: var(--letra-titulos); font-size: 1.22rem; font-weight: 600; line-height: 1.3; }
.rj-sub > :last-child { margin-bottom: 0; }

.rj-empuje { margin: 1.8rem 0 0.2rem; }

.rj-lista { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.rj-lista li { position: relative; padding-left: 1.8rem; line-height: 1.55; }
.rj-lista li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35em; width: 1rem; height: 1rem; border-radius: 50%; background: conic-gradient(var(--oro) 0 25%, var(--violeta) 0 50%, var(--oro) 0 75%, var(--violeta) 0); box-shadow: 0 0 0 2px var(--fondo) inset; }

.rj-pasos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: paso; }
.rj-pasos li { position: relative; padding: 2.6rem 1rem 1rem; border-radius: 16px; background: var(--hondo); border: 1px solid var(--raya); counter-increment: paso; line-height: 1.45; }
.rj-pasos li::before { content: "Paso " counter(paso); position: absolute; top: 0.8rem; left: 1rem; color: var(--oro); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.rj-tabla { margin: 1rem 0 1.3rem; overflow-x: auto; border-radius: 16px; border: 1px solid var(--raya-2); background: var(--hondo); -webkit-overflow-scrolling: touch; }
.rj-tabla table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rj-tabla--ancha table { min-width: 540px; }
.rj-tabla thead tr { background: linear-gradient(90deg, rgba(180, 92, 255, 0.38), rgba(255, 79, 210, 0.14)); }
.rj-tabla thead th { padding: 0.85rem 1rem; color: var(--blanco); font-size: 0.85rem; font-weight: 700; text-align: left; }
.rj-tabla tbody th,
.rj-tabla tbody td,
.rj-tabla tfoot th,
.rj-tabla tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.rj-tabla tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.rj-tabla tbody tr + tr > * { border-top: 1px solid var(--raya); }
.rj-tabla tbody th { color: var(--oro-claro); font-weight: 700; }
.rj-tabla tbody tr:hover { background: rgba(180, 92, 255, 0.1); }
.rj-tabla tfoot { background: linear-gradient(90deg, var(--oro), var(--oro-claro)); }
.rj-tabla tfoot th,
.rj-tabla tfoot td { color: var(--tinta); font-weight: 800; }

.rj-faq { display: grid; gap: 0.7rem; }
.rj-faq__item { border-radius: 18px; background: var(--hondo); border: 1px solid var(--raya); transition: border-color 0.2s ease; }
.rj-faq__item[open] { border-color: var(--violeta); box-shadow: 0 0 0 1px var(--violeta) inset; }
.rj-faq__item summary { display: flex; align-items: center; gap: 0.9rem; min-height: 62px; padding: 0.8rem 1.1rem; list-style: none; cursor: pointer; }
.rj-faq__item summary::-webkit-details-marker { display: none; }
.rj-faq__item summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-left: auto; border-right: 2px solid var(--oro); border-bottom: 2px solid var(--oro); transform: rotate(45deg); transition: transform 0.2s ease; }
.rj-faq__item[open] summary::after { transform: rotate(-135deg); }
.rj-faq__n { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--violeta), var(--magenta)); color: var(--blanco); font-weight: 800; }
.rj-faq__q { color: var(--blanco); font-family: var(--letra-titulos); font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.rj-faq__r { margin: 0; padding: 0 1.1rem 1.1rem calc(1.1rem + 34px + 0.9rem); }

/* ---------- pie ---------- */

.rj-pie { margin-top: clamp(1.6rem, 3vw, 2.4rem); background: var(--hondo); border-top: 1px solid var(--raya-2); box-shadow: 0 -1px 0 rgba(255, 189, 58, 0.3); }
.rj-pie__rej { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 2rem; align-items: start; padding: 2.6rem 0 1.6rem; }
.rj-pie__nota { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; color: var(--tenue); font-size: 0.93rem; }
.rj-sello18 { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--oro), var(--magenta), var(--violeta), var(--oro)); color: var(--tinta); font-size: 0.78rem; font-weight: 800; }
.rj-pie__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.rj-pie__lista a { display: inline-flex; align-items: center; min-height: 40px; color: var(--texto); text-decoration: none; }
.rj-pie__lista a:hover { color: var(--oro); }
.rj-pie__ctas { display: grid; gap: 0.9rem; justify-items: start; }
.rj-pie__copy { margin-top: 0; margin-bottom: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--raya); color: var(--tenue); font-size: 0.88rem; }

.rj-volver {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violeta), var(--magenta));
  color: var(--blanco);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.rj-volver.rj-volver--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1120px) {
  .rj-nav { display: none; }
  .rj-abrir { display: grid; }
  .rj-top__acciones { margin-left: auto; }
}

@media (max-width: 920px) {
  .rj-portada__rej { grid-template-columns: minmax(0, 1fr); }
  .rj-indice { position: static; }
  .rj-fichas { grid-template-columns: minmax(0, 1fr); }
  .rj-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --alto-top: 62px; }
  body { font-size: 1.01rem; }
  .rj-logo__pais { display: none; }
  .rj-top__cta { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .rj-guia,
  .rj-pasos { grid-template-columns: minmax(0, 1fr); }
  .rj-portada__botones .rj-boton,
  .rj-empuje .rj-boton { width: 100%; }
  .rj-sec__caja { padding: 1.2rem 1rem; border-radius: 20px; }
  .rj-pie__lista { grid-template-columns: minmax(0, 1fr); }
  .rj-faq__r { padding-left: 1.1rem; }
  .rj-ficha { min-height: 0; }
}
