/* Inmersa — identidad del logo: fondo nocturno, azul eléctrico, cian, violeta y magenta. */
:root {
  --fondo: #060716;
  --fondo-2: #0b0d2a;
  --superficie: #11143a;
  --borde: #262b6b;
  --texto: #eef0ff;
  --texto-2: #a9b0dc;
  --azul: #2f6bff;
  --cian: #22d3ff;
  --violeta: #8b45ff;
  --magenta: #ff3dbb;
  --error: #ff6b8a;
  --ok: #3ee0a1;
  --radio: 14px;
  --sombra-neon: 0 0 0 1px rgba(34, 211, 255, .25), 0 10px 40px rgba(47, 107, 255, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--cian); }
h1, h2 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 1rem; }

.contenedor { width: min(1080px, 100% - 32px); margin-inline: auto; }
.estrecho { width: min(640px, 100% - 32px); margin-block: 2rem 3rem; }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(6, 7, 22, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 43, 107, .7);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-weight: 800; letter-spacing: .14em; }
.marca img { border-radius: 50%; box-shadow: 0 0 12px rgba(139, 69, 255, .6); }
.barra-lema { color: var(--texto-2); font-size: .85rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; isolation: isolate; }
.hero-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 22, .55) 0%, rgba(6, 7, 22, .92) 75%, var(--fondo) 100%),
    url("/assets/img/arena.jpg") center / cover no-repeat;
}
.hero-contenido { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.hero-logo { border-radius: 50%; box-shadow: 0 0 0 2px rgba(139, 69, 255, .55), 0 0 60px rgba(47, 107, 255, .55); }
.etiqueta { margin: 0 0 .5rem; color: var(--cian); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 {
  margin: 0 0 .8rem; font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(90deg, var(--cian), var(--azul) 45%, var(--violeta) 75%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-texto { max-width: 46ch; color: var(--texto-2); margin: 0 0 1.4rem; }
.datos { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 12px; }
.datos li {
  display: flex; flex-direction: column; padding: 10px 14px; min-width: 150px;
  background: rgba(17, 20, 58, .75); border: 1px solid var(--borde); border-radius: 12px;
}
.datos strong { font-size: 1.15rem; }
.datos span { color: var(--texto-2); font-size: .85rem; }

/* Cómo funciona la arena */
.como-funciona-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; }
.como-funciona-texto p { margin: 0 0 1rem; color: var(--texto-2); }
.pasos-arena { margin: 0 0 1.4rem; padding-left: 1.3rem; display: grid; gap: .55rem; }
.pasos-arena li::marker { color: var(--cian); font-weight: 800; }
.video-arena { margin: 0; }
.video-arena video {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid var(--borde); border-radius: var(--radio);
  background: #080a24; box-shadow: var(--sombra-neon);
}
.video-arena figcaption { margin-top: .5rem; color: var(--texto-2); font-size: .85rem; }

/* Tarjetas y formularios */
.reservar { padding-bottom: 3rem; }
.tarjeta {
  background: linear-gradient(180deg, var(--superficie), var(--fondo-2));
  border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 20px; box-shadow: var(--sombra-neon);
}
.tarjeta + .tarjeta { margin-top: 1rem; }
.aviso { border-color: rgba(34, 211, 255, .45); }
.error { border-color: var(--error); box-shadow: 0 0 0 1px rgba(255, 107, 138, .35); }
.error p { margin: 0; }
.consulta { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
select, input[type="text"], input[type="tel"] {
  width: 100%; padding: 12px 14px; font: inherit; font-weight: 400;
  color: var(--texto); background: #080a24; border: 1px solid var(--borde); border-radius: 10px;
}
select:focus, input:focus { outline: 2px solid var(--cian); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); }
.error-campo { color: var(--error); font-weight: 500; font-size: .85rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-weight: 700; margin-bottom: .8rem; }
.franjas { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.franja { position: relative; }
.franja input { position: absolute; opacity: 0; inset: 0; }
.franja span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px; border: 1px solid var(--borde); border-radius: 12px; background: #090b28;
  font-weight: 700; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.franja small { color: var(--texto-2); font-weight: 500; font-size: .75rem; }
.franja input:checked + span {
  border-color: var(--cian);
  box-shadow: 0 0 0 1px var(--cian), 0 0 22px rgba(34, 211, 255, .35);
  background: linear-gradient(180deg, rgba(47, 107, 255, .25), rgba(139, 69, 255, .18));
}
.franja input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.franja span:hover { transform: translateY(-1px); border-color: var(--azul); }

.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.2rem; }
.resumen { padding: 14px 16px; border-radius: 12px; background: rgba(47, 107, 255, .1); border: 1px dashed rgba(34, 211, 255, .4); margin-bottom: 1rem; }
.resumen p { margin: 0; color: var(--texto-2); }
.resumen .total { color: var(--texto); margin-top: 4px; font-size: 1.1rem; }
.nota { color: var(--texto-2); font-size: .9rem; }

.consentimiento { margin-bottom: 1rem; }
.campo-email { margin-bottom: 1.2rem; }
.campo-email small { color: var(--texto-2); font-weight: 400; }
input[type="email"] { width: 100%; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--texto); background: #080a24; border: 1px solid var(--borde); border-radius: 10px; }

/* Juegos */
.juegos legend { font-size: 1.05rem; }
.legend-nota { color: var(--texto-2); font-weight: 400; font-size: .85rem; }
.categoria-juego + .categoria-juego { margin-top: 14px; }
.categoria-juego h3 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cian); }
.tarjetas-juego { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tarjeta-juego { position: relative; display: block; font-weight: 400; }
.tarjeta-juego input { position: absolute; opacity: 0; inset: 0; }
.tarjeta-juego-cuerpo {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 12px; overflow: hidden;
  border: 1px solid var(--borde); border-radius: 14px; background: #090b28; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tarjeta-juego-cuerpo:hover { transform: translateY(-1px); border-color: var(--azul); }
.juego-imagen {
  display: block; width: calc(100% + 24px); max-width: none; margin: -14px -12px 6px; aspect-ratio: 1 / 1; height: auto;
  object-fit: cover; border-radius: 13px 13px 0 0; background: #0d0f33;
}
.juego-imagen-respaldo {
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 900; color: rgba(255, 255, 255, .85);
  text-shadow: 0 0 18px rgba(255, 255, 255, .35);
}
.juego-imagen-respaldo.cat-1 { background: linear-gradient(135deg, #ff3dbb, #8b45ff); }
.juego-imagen-respaldo.cat-2 { background: linear-gradient(135deg, #2f6bff, #22d3ff); }
.juego-imagen-respaldo.cat-3 { background: linear-gradient(135deg, #1f8a5b, #0b3d2e); }
.juego-imagen-respaldo.cat-0 { background: linear-gradient(135deg, #4a0b1d, #120318); }
.juego-nombre { font-weight: 800; font-size: 1.05rem; color: var(--texto); }
.juego-categoria { color: var(--texto-2); font-size: .8rem; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.juego-edad {
  align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .82rem;
  background: rgba(139, 69, 255, .18); border: 1px solid rgba(139, 69, 255, .5); color: #d7c2ff;
}
.juego-edad small { font-weight: 500; opacity: .85; }
.tarjeta-juego input:checked + .tarjeta-juego-cuerpo {
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta), 0 0 22px rgba(255, 61, 187, .35);
  background: linear-gradient(180deg, rgba(139, 69, 255, .22), rgba(255, 61, 187, .12));
}
.tarjeta-juego input:focus-visible + .tarjeta-juego-cuerpo { outline: 2px solid var(--cian); outline-offset: 2px; }
.aviso-edad { margin: 0 0 1.2rem; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 61, 187, .45); background: rgba(255, 61, 187, .08); }
.aviso-edad .casilla { color: var(--texto); font-weight: 600; }
.casilla { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .9rem; color: var(--texto-2); }
.casilla input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--cian); }
.legal h2 { margin-top: 1.6rem; font-size: 1.1rem; }
.legal li { margin-bottom: .3rem; }
.pendiente-legal { background: rgba(255, 61, 187, .12); border: 1px dashed var(--magenta); padding: 2px 6px; border-radius: 6px; }
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, var(--azul), var(--violeta) 60%, var(--magenta));
  box-shadow: 0 6px 24px rgba(139, 69, 255, .45);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255, 61, 187, .45); }
.boton:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; }
.boton[disabled] { opacity: .6; cursor: wait; transform: none; }
.boton-grande { padding: 14px 26px; font-size: 1.05rem; }
.boton-secundario { background: transparent; border: 1px solid var(--cian); color: var(--cian); box-shadow: none; }
.js .sin-js { display: none; }

/* Confirmación */
.confirmacion h1 { margin: .2rem 0 .6rem; }
.estado { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin: 0 0 1rem; }
.estado-pendiente { background: rgba(255, 61, 187, .15); color: #ff9ad9; border: 1px solid rgba(255, 61, 187, .5); }
.estado-confirmada, .estado-completada { background: rgba(62, 224, 161, .12); color: var(--ok); border: 1px solid rgba(62, 224, 161, .45); }
.estado-cancelada, .estado-no_asistio { background: rgba(255, 107, 138, .12); color: var(--error); border: 1px solid rgba(255, 107, 138, .45); }
.detalle { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 1.2rem; }
.detalle dt { color: var(--texto-2); }
.detalle dd { margin: 0; }
.enlace { color: var(--cian); }
.pago-anticipo { margin: 0 0 1.2rem; padding: 16px; border-radius: 12px; border: 1px solid rgba(34, 211, 255, .5); background: rgba(34, 211, 255, .08); }
.pago-anticipo h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.datos-transferencia { padding: 12px 14px; margin: .6rem 0 1rem; border-radius: 10px; background: #080a24; border: 1px dashed var(--borde); font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }

.pie { border-top: 1px solid var(--borde); padding: 24px 16px 32px; text-align: center; color: var(--texto-2); font-size: .85rem; }
.pie p { margin: .2rem 0; }
.pie-sub { opacity: .75; }

@media (max-width: 760px) {
  .hero { padding: 32px 0 40px; }
  .hero-contenido { grid-template-columns: 1fr; gap: 20px; text-align: center; justify-items: center; }
  .hero-logo { width: 150px; height: 150px; }
  .datos { justify-content: center; }
  .consulta { grid-template-columns: 1fr 1fr; }
  .consulta label:first-child { grid-column: 1 / -1; }
  .fila { grid-template-columns: 1fr; }
  .barra-lema { display: none; }
  .detalle { grid-template-columns: 1fr; gap: 2px; }
  .detalle dd { margin-bottom: 8px; }
  .como-funciona-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
