/* itramites.com — mesa de juego: azul rey, botones verdes y destellos amarillos y rojos */

:root {
  --azul-0: #061358;
  --azul-1: #0a1f7a;
  --azul-2: #0e2a9c;
  --azul-3: #1538c4;
  --azul-4: #2150e8;
  --panel: rgba(7, 22, 104, 0.62);
  --panel-2: rgba(255, 255, 255, 0.06);
  --linea: rgba(160, 188, 255, 0.2);
  --linea-2: rgba(160, 188, 255, 0.38);
  --texto: #eaf0ff;
  --apagado: #a9bcf2;
  --verde: #27c95c;
  --verde-2: #3fe276;
  --verde-3: #1a9f45;
  --amarillo: #ffd21f;
  --amarillo-2: #ffe466;
  --amarillo-3: #e6b800;
  --rojo: #ff3d52;
  --rojo-2: #ff6f7e;
  --rojo-3: #d41f35;
  --tinta: #08133a;
  --blanco: #ffffff;

  --titulos: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cuerpo: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --ancho: 1180px;
  --borde: clamp(1rem, 4vw, 2.4rem);
  --alto-cima: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-cima) + 14px);
  -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: var(--azul-1);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1.06rem;
  line-height: 1.7;
}
body.it-bloqueado { overflow: hidden; }

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

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

.it-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.it-salto { position: absolute; top: -90px; left: 1rem; z-index: 999; padding: 0.7rem 1rem; border-radius: 10px; background: var(--amarillo); color: var(--tinta); font-weight: 800; text-decoration: none; }
.it-salto:focus { top: 1rem; }

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

/* barra de progreso */
.it-progreso { position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: 4px; background: linear-gradient(90deg, var(--verde), var(--amarillo) 55%, var(--rojo)); transform: scaleX(0); transform-origin: 0 50%; }

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

.it-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--titulos);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.it-boton:hover { transform: translateY(-2px); }
.it-boton:active { transform: translateY(1px); }
.it-boton--verde { background: linear-gradient(180deg, var(--verde-2), var(--verde) 55%, var(--verde-3)); color: #052412; box-shadow: 0 6px 0 #0f6a2c, 0 14px 22px -10px rgba(39, 201, 92, 0.8); }
.it-boton--verde:hover { box-shadow: 0 8px 0 #0f6a2c, 0 18px 26px -10px rgba(63, 226, 118, 0.9); }
.it-boton--verde:active { box-shadow: 0 3px 0 #0f6a2c; }
.it-boton--amarillo { background: linear-gradient(180deg, var(--amarillo-2), var(--amarillo) 55%, var(--amarillo-3)); color: var(--tinta); box-shadow: 0 6px 0 #9a7a00, 0 14px 22px -10px rgba(255, 210, 31, 0.7); }
.it-boton--amarillo:hover { box-shadow: 0 8px 0 #9a7a00, 0 18px 26px -10px rgba(255, 228, 102, 0.9); }
.it-boton--amarillo:active { box-shadow: 0 3px 0 #9a7a00; }
.it-boton--grande { min-height: 56px; padding: 0.85rem 2rem; font-size: 1.08rem; }

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

.it-cima { position: sticky; top: 0; z-index: 300; background: rgba(6, 19, 88, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.it-cima__fila { display: flex; align-items: center; gap: 1.1rem; height: var(--alto-cima); }

.it-marca { display: inline-flex; align-items: center; gap: 0.1rem; color: var(--blanco); text-decoration: none; flex-shrink: 0; }
.it-marca__uno { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 0.3rem; border-radius: 10px; background: var(--amarillo); color: var(--tinta); font-family: var(--titulos); font-size: 1.25rem; font-weight: 800; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--rojo); }
.it-marca__win { font-family: var(--titulos); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.it-marca__ec { margin-left: 0.5rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--verde); color: #052412; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }

.it-ruta { margin-left: auto; }
.it-ruta ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.it-ruta__a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; color: var(--apagado); font-family: var(--titulos); font-size: 1rem; font-weight: 700; text-decoration: none; transition: color 0.2s ease; }
.it-ruta__a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 6px; height: 3px; border-radius: 2px; background: var(--amarillo); transform: scaleX(0); transition: transform 0.2s ease; }
.it-ruta__a:hover { color: var(--blanco); }
.it-ruta__a[aria-current="true"] { color: var(--blanco); }
.it-ruta__a[aria-current="true"]::after,
.it-ruta__a:hover::after { transform: scaleX(1); }
.it-cima__cta { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.92rem; box-shadow: 0 4px 0 #0f6a2c; }

.it-burger { display: none; place-items: center; width: 46px; height: 46px; border: 2px solid var(--linea-2); border-radius: 14px; background: transparent; color: var(--blanco); cursor: pointer; }
.it-burger__rayas { display: grid; gap: 5px; width: 20px; }
.it-burger__rayas i { display: block; height: 3px; border-radius: 2px; background: var(--blanco); }
.it-burger__rayas i:nth-child(1) { background: var(--verde-2); }
.it-burger__rayas i:nth-child(2) { background: var(--amarillo); width: 75%; }
.it-burger__rayas i:nth-child(3) { background: var(--rojo-2); width: 50%; }

/* pantalla completa del menú */
.it-pantalla { position: fixed; inset: 0; z-index: 600; overflow-y: auto; background: radial-gradient(700px 400px at 90% 0%, rgba(33, 80, 232, 0.8), transparent 70%), linear-gradient(180deg, var(--azul-2), var(--azul-0)); animation: it-aparece 0.22s ease; }
.it-pantalla[hidden] { display: none; }
@keyframes it-aparece { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.it-pantalla__in { padding-bottom: 2rem; }
.it-pantalla__cab { display: flex; align-items: center; justify-content: space-between; height: var(--alto-cima); }
.it-pantalla__t { color: var(--amarillo); font-family: var(--titulos); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.it-pantalla__x { width: 46px; height: 46px; border: 2px solid var(--linea-2); border-radius: 50%; background: transparent; color: var(--blanco); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.it-pantalla__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.it-pantalla__a { display: flex; align-items: baseline; gap: 0.8rem; min-height: 60px; padding: 0.6rem 0; border-bottom: 1px solid var(--linea); color: var(--blanco); font-family: var(--titulos); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.it-pantalla__a:hover { color: var(--amarillo-2); }
.it-pantalla__n { color: var(--rojo-2); font-size: 0.85rem; font-weight: 800; }
.it-pantalla__ctas { display: grid; gap: 0.9rem; margin-top: 1.8rem; }

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

.it-hero { padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(2.6rem, 6vw, 4.4rem); background: radial-gradient(900px 480px at 85% -10%, rgba(33, 80, 232, 0.9), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(255, 61, 82, 0.18), transparent 70%), linear-gradient(180deg, var(--azul-2), var(--azul-1)); }
.it-hero__cabeza { max-width: 860px; margin: 0 auto; text-align: center; }
.it-hero__sello { display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--rojo); color: var(--blanco); font-family: var(--titulos); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 4px 0 var(--rojo-3); }
.it-hero h1 { margin: 0 0 1.1rem; color: var(--blanco); font-family: var(--titulos); font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.it-hero__intro { color: #d3defd; }
.it-hero__intro p { margin-bottom: 0.9em; }
.it-hero__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.6rem; }

.it-hero__marco { position: relative; margin: clamp(2rem, 4vw, 3rem) auto 0; padding-bottom: 2.4rem; max-width: 1020px; }
.it-hero__marco img { width: 100%; aspect-ratio: 1380 / 752; object-fit: cover; border-radius: 28px; border: 5px solid var(--amarillo); box-shadow: 0 0 0 5px var(--rojo), 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
.it-hero__datos { position: absolute; left: 4%; right: 4%; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.it-dato { display: grid; gap: 0.1rem; padding: 0.75rem 1rem; border-radius: 16px; color: var(--tinta); text-align: left; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.8); }
.it-dato b { font-family: var(--titulos); font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); font-weight: 800; line-height: 1.1; }
.it-dato span { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.it-dato--amarillo { background: var(--amarillo); }
.it-dato--verde { background: var(--verde-2); }
.it-dato--rojo { background: var(--rojo); color: var(--blanco); }

/* ---------- tramos ---------- */

.it-tramo { padding: clamp(2.6rem, 6vw, 4.2rem) 0; background: var(--azul-1); }
.it-tramo--hondo { background: linear-gradient(180deg, #1230ad, #0e2699); border-block: 1px solid var(--linea); }
.it-tramo__rej { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; }
.it-tramo__cab { position: sticky; top: calc(var(--alto-cima) + 22px); }
.it-tramo__num { display: block; color: transparent; -webkit-text-stroke: 2px var(--amarillo); font-family: var(--titulos); font-size: clamp(3.6rem, 2.6rem + 4vw, 6rem); font-weight: 800; line-height: 0.9; }
.it-tramo__eti { display: inline-block; margin: 0.7rem 0 0.5rem; padding: 0.15rem 0.7rem; border-radius: 6px; background: var(--rojo); color: var(--blanco); font-family: var(--titulos); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.it-tramo__cab h2 { margin: 0; color: var(--blanco); font-family: var(--titulos); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.it-tramo__cuerpo { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 24px; background: var(--panel); border: 1px solid var(--linea); box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9); }
.it-tramo__cuerpo > :last-child { margin-bottom: 0; }

.it-sub { position: relative; margin: 1.6rem 0; padding: 1rem 1.1rem 1rem 1.3rem; border-radius: 16px; background: var(--panel-2); border-left: 5px solid var(--amarillo); }
.it-sub:nth-of-type(3n+2) { border-left-color: var(--verde); }
.it-sub:nth-of-type(3n) { border-left-color: var(--rojo); }
.it-sub:first-child { margin-top: 0; }
.it-sub:last-child { margin-bottom: 0; }
.it-sub h3 { margin: 0 0 0.6rem; color: var(--blanco); font-family: var(--titulos); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.it-sub > :last-child { margin-bottom: 0; }

.it-accion { margin: 1.6rem 0 0.2rem; }
.it-sub .it-accion { margin-top: 1.2rem; }

.it-vinetas { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.it-vinetas li { position: relative; padding-left: 1.7rem; line-height: 1.55; }
.it-vinetas li::before { content: "✓"; position: absolute; left: 0; top: 0.1em; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 6px; background: var(--verde); color: #052412; font-size: 0.8rem; font-weight: 800; }

.it-escalera { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: it-e; }
.it-escalera li { position: relative; padding: 0.65rem 0.9rem 0.65rem 3.2rem; border-radius: 14px; background: rgba(6, 19, 88, 0.6); border: 1px solid var(--linea); counter-increment: it-e; line-height: 1.5; }
.it-escalera li::before { content: counter(it-e); position: absolute; left: 0.7rem; top: 50%; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-top: -0.9rem; border-radius: 50%; background: var(--amarillo); color: var(--tinta); font-family: var(--titulos); font-size: 0.95rem; font-weight: 800; }

.it-tabla { margin: 1rem 0 1.2rem; overflow-x: auto; border-radius: 16px; border: 1px solid var(--linea-2); background: rgba(6, 19, 88, 0.7); -webkit-overflow-scrolling: touch; }
.it-tabla table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.it-tabla--ancho table { min-width: 540px; }
.it-tabla thead th { padding: 0.8rem 1rem; background: var(--amarillo); color: var(--tinta); font-family: var(--titulos); font-size: 0.9rem; font-weight: 800; text-align: left; }
.it-tabla tbody th,
.it-tabla tbody td,
.it-tabla tfoot th,
.it-tabla tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.it-tabla tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
.it-tabla tbody tr + tr > * { border-top: 1px solid var(--linea); }
.it-tabla tbody th { color: var(--blanco); font-weight: 700; }
.it-tabla tbody tr:hover { background: rgba(255, 61, 82, 0.12); }
.it-tabla tfoot { background: linear-gradient(90deg, var(--verde), var(--verde-2)); }
.it-tabla tfoot th,
.it-tabla tfoot td { color: #052412; font-weight: 800; }

.it-dudas { display: grid; gap: 0.7rem; }
.it-dudas__item { border-radius: 16px; background: rgba(6, 19, 88, 0.6); border: 1px solid var(--linea); transition: border-color 0.2s ease; }
.it-dudas__item[open] { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.it-dudas__item summary { display: flex; align-items: center; gap: 0.9rem; min-height: 62px; padding: 0.8rem 1rem; list-style: none; cursor: pointer; }
.it-dudas__item summary::-webkit-details-marker { display: none; }
.it-dudas__item summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: var(--amarillo); color: var(--tinta); font-size: 1.4rem; font-weight: 800; transition: transform 0.2s ease, background 0.2s ease; }
.it-dudas__item[open] summary::after { transform: rotate(45deg); background: var(--rojo); color: var(--blanco); }
.it-dudas__n { flex-shrink: 0; color: var(--rojo-2); font-family: var(--titulos); font-size: 1.1rem; font-weight: 800; }
.it-dudas__q { color: var(--blanco); font-family: var(--titulos); font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.it-dudas__r { margin: 0; padding: 0 1rem 1.1rem; color: var(--texto); }

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

.it-pie { background: var(--azul-0); border-top: 4px solid var(--amarillo); }
.it-pie__rej { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.it-pie__edad { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; color: var(--apagado); font-size: 0.95rem; }
.it-pie__18 { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: var(--blanco); font-family: var(--titulos); font-size: 0.85rem; font-weight: 800; box-shadow: 0 3px 0 var(--rojo-3); }
.it-pie__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; margin: 0; padding: 0; list-style: none; }
.it-pie__lista a { display: inline-flex; align-items: center; min-height: 40px; color: var(--apagado); text-decoration: none; }
.it-pie__lista a:hover { color: var(--amarillo-2); }
.it-pie__ctas { display: grid; gap: 0.9rem; justify-items: start; }
.it-pie__copy { margin-top: 0; margin-bottom: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--linea); color: var(--apagado); font-size: 0.88rem; }

.it-subir { position: fixed; right: 1rem; bottom: 1rem; z-index: 250; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--amarillo); color: var(--tinta); font-size: 1.3rem; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--amarillo-3), 0 14px 22px -10px rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.it-subir.it-subir--ver { opacity: 1; visibility: visible; }

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

@media (max-width: 1080px) {
  .it-ruta { display: none; }
  .it-burger { display: grid; }
  .it-cima__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .it-tramo__rej { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .it-tramo__cab { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
  .it-tramo__num { font-size: 3.4rem; }
  .it-tramo__eti { margin: 0; }
  .it-tramo__cab h2 { flex-basis: 100%; }
  .it-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --alto-cima: 62px; }
  body { font-size: 1.02rem; }
  .it-hero__intro { text-align: left; }
  .it-marca__ec { display: none; }
  .it-cima__cta { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
  .it-hero__marco { padding-bottom: 0; }
  .it-hero__marco img { border-width: 4px; border-radius: 20px; }
  .it-hero__datos { position: static; grid-template-columns: minmax(0, 1fr); margin-top: 0.9rem; }
  .it-hero__botones .it-boton,
  .it-accion .it-boton { width: 100%; }
  .it-tramo__cuerpo { padding: 1rem 0.9rem; border-radius: 18px; }
  .it-sub { padding: 0.9rem 0.8rem 0.9rem 1rem; }
  .it-pantalla__lista { grid-template-columns: minmax(0, 1fr); }
  .it-pie__lista { grid-template-columns: minmax(0, 1fr); }
}
