/* =========================================================
   SEDRO 10 — ESTILOS BASE (se cargan en todas las páginas)
   ---------------------------------------------------------
   Colores tomados del escudo real: negro, crema, rojo del 10
   y naranja del contorno. La madera es la de las pistas.
   Tipografía: Archivo en tres anchos — expandida para titulares
   (como las letras del escudo), normal para leer y condensada
   para datos, precios y horarios.
   ========================================================= */


/* ---------- 1. Variables ---------- */
:root {
  /* Colores del escudo */
  --negro: #0b0a09;
  --carbon: #15120f;
  --carbon-2: #1f1a15;
  --carbon-3: #2b241d;
  --crema: #f7eadb;
  --crema-2: #ecdcc8;
  --crema-3: #dcc6ab;
  --rojo: #a80f0f;
  --rojo-vivo: #c21a17;
  --rojo-oscuro: #6e0a0a;
  --naranja: #d66414;
  --naranja-claro: #ee8a3c;

  /* Madera de pista */
  --madera: #cf9660;
  --madera-clara: #e3b886;
  --madera-oscura: #6b4226;

  /* Texto */
  --tinta: #1a1510;
  --tinta-2: #4a3d31;
  --texto: #f7eadb;
  --texto-suave: #cdbfae;

  /* Líneas */
  --linea: rgba(247, 234, 219, 0.14);
  --linea-fuerte: rgba(247, 234, 219, 0.34);
  --linea-tinta: rgba(26, 21, 16, 0.2);

  /* Estados */
  --ok: #7cc68b;
  --alerta: #f0b54a;
  --error-claro: #ffb4a8;

  /* Tipografía */
  --fuente: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --ancho-max: 1280px;
  --margen: clamp(20px, 5vw, 72px);
  --nav-alto: 72px;
  --corte: 12px;
  --radio: 8px;

  /* Espaciado */
  --e-1: 0.5rem;
  --e-2: 1rem;
  --e-3: 1.5rem;
  --e-4: 2rem;
  --e-5: 3rem;
  --e-6: 4.5rem;
  --e-7: clamp(5rem, 11vw, 9.5rem);

  /* Movimiento */
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
  --rapido: 180ms;
  --medio: 320ms;
}


/* ---------- 2. Reinicio ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-alto) + 16px);
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(214, 100, 20, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
p, li, dd { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--naranja-claro);
  outline-offset: 3px;
}

::selection { background: var(--rojo); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace para saltar al contenido (teclado) */
.saltar {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--crema);
  color: var(--tinta);
  font-weight: 700;
  text-decoration: none;
}
.saltar:focus { top: 12px; }


/* ---------- 3. Tipografía ---------- */
.titular-xl,
.titular-l,
.titular-m {
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.titular-xl { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.9; }
.titular-l  { font-size: clamp(2.1rem, 4.8vw, 4.1rem); line-height: 0.92; }
.titular-m  { font-size: clamp(1.55rem, 2.8vw, 2.4rem); line-height: 0.96; }
.titular-s {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.15;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--texto-suave);
  max-width: 36em;
}

/* Datos: precios, horarios, rankings */
.dato {
  font-stretch: 82%;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.num { font-variant-numeric: tabular-nums; }


/* ---------- 4. Estructura ---------- */
.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--margen);
}
.seccion { padding-block: var(--e-7); }


/* ---------- 5. Botones ---------- */
/* Esquinas cortadas en diagonal, igual que el escudo */
.boton {
  --fondo: var(--rojo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0.85em 1.6em;
  border: 0;
  background: var(--fondo);
  color: #fff;
  font-weight: 750;
  font-stretch: 112%;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
  transition: background-color var(--rapido) ease, transform var(--rapido) var(--salida);
  touch-action: manipulation;
}
.boton:hover { --fondo: var(--rojo-vivo); }
.boton:active { transform: translateY(1px) scale(0.99); }
.boton:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--crema), inset 0 0 0 6px var(--rojo-oscuro);
}
.boton[disabled],
.boton[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.boton--crema { --fondo: var(--crema); color: var(--tinta); }
.boton--crema:hover { --fondo: #fff; }
.boton--crema:focus-visible { box-shadow: inset 0 0 0 3px var(--tinta), inset 0 0 0 6px var(--crema); }
.boton--oscuro { --fondo: var(--tinta); color: var(--crema); }
.boton--oscuro:hover { --fondo: var(--carbon-3); }
.boton--linea {
  --fondo: rgba(247, 234, 219, 0.12);
  color: var(--crema);
}
.boton--linea:hover { --fondo: rgba(247, 234, 219, 0.22); }
.boton--grande { min-height: 62px; font-size: 1.15rem; padding-inline: 2em; }
.boton--bloque { width: 100%; }

/* Enlace de texto con flecha de pista */
.enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: var(--crema);
}
.enlace__texto {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--medio) var(--salida);
}
.enlace:hover .enlace__texto { background-size: 100% 2px; }
.flecha {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  transition: transform var(--rapido) var(--salida);
}
.enlace:hover .flecha { transform: translateX(3px); }

.icono { width: 22px; height: 22px; flex: none; }

/* Botón con aspecto de enlace (acciones secundarias) */
.boton-texto {
  min-height: 44px;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.boton-texto:hover { opacity: 0.85; }


/* ---------- 6. Menú superior ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-alto);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--medio) ease, border-color var(--medio) ease;
}
.nav--solida,
.nav--abierta {
  background: rgba(11, 10, 9, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--linea);
}
.nav--abierta { z-index: 70; background: var(--negro); }

.nav__interior {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--margen);
}
.nav__marca { display: flex; align-items: center; flex: none; padding: 6px 0; }
.nav__marca img { height: 54px; width: auto; }

.nav__enlaces {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  margin-left: auto;
}
.nav__enlaces a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--crema);
  text-decoration: none;
}
.nav__enlaces a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--medio) var(--salida);
}
.nav__enlaces a:hover::after,
.nav__enlaces a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { min-height: 46px; padding: 0.6em 1.25em; font-size: 0.95rem; }

.nav__menu {
  display: none;
  margin-left: auto;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  color: var(--crema);
}
.nav__menu svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .nav__enlaces, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__marca img { height: 48px; }
}

/* Menú móvil a pantalla completa */
.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
  padding: calc(var(--nav-alto) + 1.25rem) var(--margen) calc(2rem + env(safe-area-inset-bottom));
  background: var(--negro);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-movil[hidden] { display: none; }
.menu-movil__enlace {
  display: block;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--linea);
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.8rem, 8.5vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-movil__enlace[aria-current="page"] { color: var(--naranja-claro); }
.menu-movil__pie { display: grid; gap: var(--e-2); margin-top: auto; }


/* ---------- 7. Estado abierto / cerrado ---------- */
.estado {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--crema);
}
.estado:empty { display: none; }
.estado__punto {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--texto-suave);
  flex: none;
}
.estado--abierto .estado__punto {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(124, 198, 139, 0.22);
}


/* ---------- 8. Formularios ---------- */
.campo { display: grid; gap: 0.45rem; align-content: start; }
.etiqueta,
.campo > label {
  font-weight: 700;
  font-size: 1.0625rem;
}
.opcional { font-weight: 500; color: var(--texto-suave); }
.campo__ayuda { font-size: 0.975rem; color: var(--texto-suave); }
.campo__error { font-size: 0.975rem; font-weight: 650; color: var(--error-claro); }
.campo__error:empty { display: none; }

.entrada {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  background: var(--carbon-2);
  color: var(--crema);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  font-size: 1.0625rem;
  transition: border-color var(--rapido) ease, box-shadow var(--rapido) ease;
}
.entrada::placeholder { color: #a39585; }
.entrada:hover { border-color: rgba(247, 234, 219, 0.5); }
.entrada:focus-visible {
  outline: none;
  border-color: var(--naranja-claro);
  box-shadow: 0 0 0 3px rgba(238, 138, 60, 0.35);
}
.entrada[aria-invalid="true"] { border-color: #ff8a7a; }
textarea.entrada { min-height: 120px; resize: vertical; }
select.entrada {
  appearance: none;
  padding-right: 2.75rem;
  background-color: var(--carbon-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23f7eadb' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.casilla {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.45;
}
.casilla input {
  width: 22px; height: 22px;
  margin: 0.12rem 0 0;
  flex: none;
  accent-color: var(--rojo);
}

/* Chips de opción (radio / checkbox con aspecto de botón) */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { position: relative; display: block; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 50px;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--linea-fuerte);
  border-radius: var(--radio);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  transition: background-color var(--rapido) ease, color var(--rapido) ease, border-color var(--rapido) ease;
}
.chip:hover > span { border-color: var(--crema); }
.chip input:checked + span { background: var(--crema); color: var(--tinta); border-color: var(--crema); }
.chip input:focus-visible + span { outline: 3px solid var(--naranja-claro); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: 0.38; text-decoration: line-through; border-style: dashed; }

/* Contador + / − */
.contador {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--linea-fuerte);
  border-radius: var(--radio);
}
.contador button {
  width: 54px;
  min-height: 54px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color var(--rapido) ease;
}
.contador button:hover { background: rgba(247, 234, 219, 0.08); }
.contador button:disabled { opacity: 0.35; cursor: not-allowed; }
.contador output {
  display: grid;
  place-items: center;
  min-width: 3.4ch;
  font-weight: 800;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}


/* ---------- 9. Recibo (la caja registradora original) ---------- */
.recibo {
  --papel: #f6ecdd;
  position: relative;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--papel);
  color: var(--tinta);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38));
}
.recibo::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -11px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--papel) 50%, transparent 50%) 0 0 / 16px 12px repeat-x,
    linear-gradient(-135deg, var(--papel) 50%, transparent 50%) 0 0 / 16px 12px repeat-x;
}
.recibo__cabeza {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px dashed var(--linea-tinta);
  text-align: center;
}
.recibo__cabeza img { width: 64px; }
.recibo__titulo {
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1;
}
.recibo__sub { font-weight: 600; color: var(--tinta-2); }
.recibo__lineas { display: grid; }
.recibo__linea {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  font-variant-numeric: tabular-nums;
}
.recibo__linea small {
  display: block;
  font-size: 0.925rem;
  color: var(--tinta-2);
}
.recibo__linea > span:last-child { font-weight: 700; white-space: nowrap; }
.recibo__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 2px dashed var(--linea-tinta);
  font-stretch: 112%;
  font-weight: 850;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.recibo__total .num { font-size: 2rem; letter-spacing: -0.01em; }
.recibo__nota { margin-block: 0.75rem 1.1rem; font-size: 0.975rem; color: var(--tinta-2); }
.recibo .boton:focus-visible { box-shadow: inset 0 0 0 3px var(--papel), inset 0 0 0 6px var(--rojo-oscuro); }


/* ---------- 10. Espacio reservado para fotos reales ---------- */
.espacio-foto {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  border: 1.5px dashed var(--linea-fuerte);
  background: repeating-linear-gradient(135deg, rgba(247, 234, 219, 0.035) 0 12px, transparent 12px 24px);
  color: var(--texto-suave);
  font-weight: 650;
  text-align: center;
}


/* ---------- 11. Pie de página ---------- */
.pie {
  padding-block: var(--e-6) var(--e-4);
  background: var(--negro);
  border-top: 1px solid var(--linea);
}
.pie__grilla {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--e-4);
}
.pie__escudo { width: 132px; }
.pie__lema {
  margin-top: 1rem;
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.05;
}
.pie__dato { margin-top: 0.6rem; max-width: 16rem; color: var(--texto-suave); }
.pie__titulo {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-stretch: 82%;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--naranja-claro);
}
.pie__lista { display: grid; gap: 0.35rem; }
.pie__lista a { text-decoration: none; }
.pie__lista a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pie__horas li { display: flex; justify-content: space-between; gap: 1rem; }
.pie__horas span:last-child { font-variant-numeric: tabular-nums; color: var(--texto-suave); }
.pie__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: var(--e-5);
  padding-top: var(--e-3);
  border-top: 1px solid var(--linea);
  font-size: 0.975rem;
  color: var(--texto-suave);
}
.pie__base nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.pie__base a { text-decoration: none; }
.pie__base a:hover { color: var(--crema); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) { .pie__grilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie__grilla { grid-template-columns: 1fr; } }


/* ---------- 12. Barra flotante móvil ---------- */
.barra-movil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem var(--margen) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(11, 10, 9, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea);
}
.barra-movil .boton { flex: 1; min-height: 54px; }
.boton-icono {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  color: var(--crema);
  border: 1.5px solid var(--linea-fuerte);
  border-radius: var(--radio);
  text-decoration: none;
}
.boton-icono:hover { background: rgba(247, 234, 219, 0.08); }

@media (max-width: 760px) {
  .barra-movil { display: flex; }
  body.con-barra { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}


/* ---------- 13. Aviso de versión preliminar ---------- */
.aviso-demo {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100vw - 32px);
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  background: var(--alerta);
  color: var(--tinta);
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: var(--radio);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.aviso-demo button {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 6px;
  background: rgba(26, 21, 16, 0.12);
  color: var(--tinta);
}
.aviso-demo button:hover { background: rgba(26, 21, 16, 0.22); }
.aviso-demo svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .con-barra .aviso-demo { bottom: calc(88px + env(safe-area-inset-bottom)); }
}


/* ---------- 14. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
