/* ============================================================
   La Baticueva — estilos
   Paleta tomada de su flyer: noche de estadio + amarillo Baticueva.
   ============================================================ */
@font-face { font-family: 'Oswald'; src: url('../fonts/oswald-700.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Paleta oficial (Manual de Identidad Visual) */
  --amarillo: #f8e000;     /* Amarillo Baticueva: acento (máx. ~20 % de la superficie) */
  --negro: #000000;        /* Negro Ónix */
  --tiza: #ffffff;         /* Blanco Puro */
  --grafito: #374151;      /* Gris Grafito: bordes y superficies secundarias */
  --neutro: #e5e7eb;       /* Gris Neutro: texto secundario y líneas */
  --carbon: #262626;       /* Gris carbón (fondo neutro oscuro aprobado para el logo) */
  /* alias de uso */
  --tribuna: var(--negro);  /* fondo principal */
  --noche: var(--carbon);   /* superficies: tarjetas, diálogos */
  --cancha: var(--grafito); /* superficies secundarias */
  --reflector: var(--neutro);
  --borde: #4b5563;         /* borde de campos (contraste ≥ 3:1 sobre negro) */
  --amarillo-osc: #c4b100;
  --verde: #2fd47a;
  --rojo: #ff5a5a;
  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --cuerpo: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  
  --r: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--cuerpo); font-size: 1rem; line-height: 1.55; color: var(--tiza);
  background: var(--negro);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amarillo); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--amarillo); color: var(--negro); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.saltar:focus { left: 8px; }
.contenedor { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, .14);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 12px; height: 88px; }
.cabecera__logo { padding: 8px 0; } /* 1X de aire */
.cabecera__logo img { width: 140px; height: auto; } /* mínimo digital del manual: 140 px */
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--tiza); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.btn-carrito {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: var(--amarillo); color: var(--negro); border: 0; border-radius: 999px; padding: 0 16px;
  font-weight: 700; cursor: pointer;
}
.btn-carrito__n { background: var(--negro); color: var(--amarillo); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
@media (min-width: 860px) { .nav { display: flex; } .btn-carrito { margin-left: 8px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--principal { background: var(--amarillo); color: var(--negro); box-shadow: 0 6px 0 var(--amarillo-osc); }
.btn--principal:hover { background: #fff04d; }
.btn--secundario { background: transparent; color: var(--tiza); border-color: rgba(244, 246, 255, .4); }
.btn--secundario:hover { border-color: var(--tiza); }
.btn--wa { background: #25d366; color: #04210f; }
.btn--bloque { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero: el marcador ---------- */
.hero { padding: 28px 0 40px; }
.hero__logo { width: min(80vw, 380px); min-width: 140px; margin: 8px 0 6px; } /* área de respeto ≈ 1X (altura de «LA») */
.hero__descriptor { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--neutro); margin: 0 0 22px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 9vw, 4rem); line-height: 1.02; margin: 0 0 12px; letter-spacing: .01em; max-width: 14ch; }
.hero__bajada { color: var(--reflector); font-size: 1.1rem; max-width: 38ch; margin: 0 0 22px; }
.estado { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.estado::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--reflector); }
.estado--abierto::before { background: var(--verde); box-shadow: 0 0 0 4px rgba(47, 212, 122, .25); }
.estado--cerrado::before { background: var(--rojo); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .hero { padding: 56px 0 64px; } .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }

/* El marcador de partidos (lo memorable de la página) */
.marcador {
  background: var(--carbon);
  border: 2px solid var(--grafito); border-radius: 18px; padding: 18px 16px 16px; position: relative;
  
}
.marcador__titulo { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1; margin: 0 0 14px; color: var(--tiza); text-transform: uppercase; }
.marcador__titulo span { color: var(--amarillo); }
.partido { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-top: 1px dashed rgba(229, 231, 235, .22); }
.partido:first-of-type { border-top: 0; }
.partido__equipos { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.partido__vs { color: var(--amarillo); font-size: 1rem; margin-right: 6px; }
.partido__hora {
  grid-row: span 2; align-self: center; font-family: var(--display); font-size: 1.9rem; color: var(--amarillo);
  font-variant-numeric: tabular-nums;
}
.partido__meta { color: var(--reflector); font-size: .9rem; }
.partido__acciones { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.partido__libres { font-size: .9rem; color: var(--reflector); }
.btn-reservar {
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--amarillo); background: transparent;
  color: var(--amarillo); font-weight: 700; cursor: pointer;
}
.btn-reservar:hover { background: var(--amarillo); color: var(--negro); }
.marcador__vacio { color: var(--reflector); margin: 0; }

/* ---------- Secciones ---------- */
.seccion { padding: 48px 0; }
.seccion__titulo { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; margin: 0 0 8px; }
.seccion__intro { color: var(--reflector); margin: 0 0 24px; max-width: 60ch; }

/* ---------- Catálogo ---------- */
.pestanas { display: inline-flex; background: var(--tribuna); border: 1px solid var(--grafito); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.pestanas button { border: 0; background: transparent; padding: 10px 16px; border-radius: 9px; font-weight: 700; cursor: pointer; min-height: 44px; color: var(--reflector); }
.pestanas button[aria-selected='true'] { background: var(--amarillo); color: var(--negro); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--grafito); background: transparent; border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed='true'] { background: var(--tiza); color: var(--negro); border-color: var(--tiza); }
.buscador { width: 100%; max-width: 420px; min-height: 48px; border-radius: 12px; border: 1px solid var(--grafito); background: var(--tribuna); padding: 0 14px; margin-bottom: 20px; }
.buscador::placeholder { color: #9ca3af; }
.categoria { margin-bottom: 28px; }
.categoria h3 { font-size: 1.15rem; margin: 0 0 10px; }
.productos { display: grid; gap: 10px; }
@media (min-width: 700px) { .productos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .productos { grid-template-columns: repeat(3, 1fr); } }
.producto {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end;
  background: var(--carbon); border: 1px solid var(--grafito); border-radius: var(--r); padding: 14px;
}
.producto__nombre { font-weight: 700; margin: 0; grid-column: 1 / -1; }
.producto__desc { color: var(--reflector); font-size: .92rem; margin: 0; grid-column: 1 / -1; }
.producto--sinstock { opacity: .6; }
/* precio como la cinta amarilla del flyer */
.precio {
  justify-self: start; display: inline-block; background: var(--amarillo); color: var(--negro); font-family: var(--display);
  font-size: 1.2rem; padding: 2px 12px; transform: skew(-8deg); margin-top: 8px; letter-spacing: .02em;
}
.precio > span { display: inline-block; transform: skew(8deg); }
.agregar { min-height: 44px; min-width: 44px; border-radius: 10px; border: 0; background: var(--tiza); color: var(--negro); font-weight: 700; padding: 0 14px; cursor: pointer; }
.agregar:hover { background: #fff; }
.paso { display: inline-flex; align-items: center; background: var(--tiza); color: var(--negro); border-radius: 10px; overflow: hidden; }
.paso button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--negro); }
.paso output { min-width: 26px; text-align: center; font-weight: 700; }
.sin-resultados { color: var(--reflector); }

/* ---------- Ventajas ---------- */
.ventajas { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .ventajas { grid-template-columns: repeat(2, 1fr); gap: 22px 40px; } }
.ventajas li { padding-left: 18px; border-left: 4px solid var(--amarillo); }
.ventajas strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.ventajas p { margin: 0; color: var(--reflector); }

/* ---------- Club ---------- */
.club { background: var(--amarillo); color: var(--negro); border-radius: 22px; padding: 28px 20px; display: grid; gap: 24px; }
.club .seccion__titulo { color: var(--negro); }
.club p { margin: 0 0 12px; }
.premios { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.premios li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid rgba(0, 0, 0, .15); padding: 8px 0; font-weight: 700; }
.premios span:last-child { font-family: var(--display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.consulta { background: var(--negro); color: var(--tiza); border-radius: 16px; padding: 18px; }
.consulta h3 { margin: 0 0 10px; font-size: 1.1rem; }
.consulta__fila { display: flex; gap: 8px; }
.consulta input { flex: 1; min-width: 0; }
.consulta__resultado { margin: 12px 0 0; min-height: 1.5em; }
@media (min-width: 860px) { .club { grid-template-columns: 1.2fr 1fr; padding: 40px; align-items: center; } }

/* ---------- Ubicación ---------- */
.ubicacion { display: grid; gap: 24px; }
@media (min-width: 860px) { .ubicacion { grid-template-columns: 1.3fr 1fr; } }
.mapa { border-radius: var(--r); overflow: hidden; border: 1px solid var(--grafito); aspect-ratio: 4 / 3; background: var(--cancha); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
.horarios { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.horarios th, .horarios td { text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(229, 231, 235, .18); }
.horarios td { text-align: right; font-variant-numeric: tabular-nums; }
.nota-chica { color: var(--reflector); font-size: .92rem; }
.datos { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }

/* ---------- Pie ---------- */
.pie { padding: 36px 0 120px; border-top: 1px solid rgba(229, 231, 235, .14); color: var(--reflector); font-size: .92rem; }
.pie .contenedor { display: grid; gap: 10px; }
.pie a { color: var(--tiza); }

/* ---------- Flotantes ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.wa-flotante svg { width: 32px; height: 32px; fill: #fff; }
.barra-pedido {
  position: fixed; left: 12px; right: 86px; bottom: 16px; z-index: 44; display: none;
  align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 18px;
  background: var(--amarillo); color: var(--negro); border: 0; border-radius: 16px; font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: pointer; max-width: 520px;
}
.barra-pedido.visible { display: flex; }
.barra-pedido__total { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }

/* ---------- Diálogos ---------- */
dialog {
  border: 0; padding: 0; color: var(--tiza); background: var(--noche); width: min(100%, 560px); max-height: 92dvh;
  border-radius: 20px 20px 0 0; margin: auto auto 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}
@media (min-width: 640px) { dialog { border-radius: 20px; margin: auto; } }
dialog::backdrop { background: rgba(0, 0, 0, .78); }
dialog[open] { animation: subir .22s ease-out; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
.dialogo__cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--noche); border-bottom: 1px solid var(--grafito); }
.dialogo__cab h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; }
.cerrar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--grafito); background: transparent; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.dialogo__cuerpo { padding: 18px; overflow-y: auto; }
.linea-carrito { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grafito); }
.linea-carrito__sub { color: var(--reflector); font-size: .9rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; font-weight: 700; }
.total strong { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--amarillo); }
.aviso-retiro { background: rgba(248, 224, 0, .12); border-left: 4px solid var(--amarillo); padding: 10px 12px; border-radius: 8px; margin: 10px 0 18px; font-size: .95rem; }

/* ---------- Formularios ---------- */
.campo { margin-bottom: 16px; }
.campo label, .campo legend { display: block; font-weight: 700; margin-bottom: 6px; }
.campo fieldset { border: 0; padding: 0; margin: 0; }
.campo input[type='text'], .campo input[type='tel'], .campo select, .campo textarea, .consulta input {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--borde); background: var(--tribuna); padding: 10px 14px; font-size: 1rem;
}
.campo textarea { min-height: 76px; resize: vertical; }
.campo input[aria-invalid='true'] { border-color: var(--rojo); }
.ayuda { color: var(--reflector); font-size: .88rem; margin-top: 4px; }
.error-campo { color: #ffb3b3; font-size: .9rem; margin-top: 4px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; }
.opcion span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--borde); border-radius: 10px; cursor: pointer; }
.opcion input:checked + span { background: var(--tiza); color: var(--negro); border-color: var(--tiza); font-weight: 700; }
.opcion input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amarillo); flex: none; }
.hp { position: absolute; left: -5000px; }
.mensaje-error { background: rgba(255, 90, 90, .15); border-left: 4px solid var(--rojo); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }

/* ---------- Confirmación ---------- */
.listo { text-align: center; }
.listo__codigo { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--amarillo); margin: 8px 0; }
.listo p { color: var(--reflector); }
.listo .btn { margin-top: 10px; }
.resena { margin-top: 22px; padding: 16px; border: 1px dashed var(--borde); border-radius: 14px; }

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