/* Marquito Barber Shop · El Mohicano
 *
 * Dos familias de tokens:
 * - de MARCA: fijos, medidos del logo (negro, oro en tres tonos, poste de barbero).
 * - SEMÁNTICOS: para qué se usa cada color. El sitio es oscuro siempre
 *   (color-scheme: dark). Un token de texto nunca se usa como fondo.
 */
:root {
  color-scheme: dark;

  /* Marca */
  --marca-negro: #0A0807;
  --marca-oro: #D4AF78;
  --marca-oro-claro: #F2DAA6;
  --marca-oro-hondo: #8C6A42;
  --marca-rojo: #C23A2C;
  --marca-azul: #2D5BA8;
  --marca-blanco: #FAF6EF;

  /* Semánticos */
  --fondo: var(--marca-negro);
  --superficie: #15110E;
  --superficie-alta: #1F1915;
  --superficie-hundida: #0F0C0A;
  --linea: rgb(212 175 120 / 0.16);
  --linea-fuerte: rgb(212 175 120 / 0.42);
  --texto: #F3ECE1;
  --texto-suave: #B8AC99;
  --texto-tenue: #8A7F70;
  --acento: var(--marca-oro);
  --acento-fuerte: var(--marca-oro-claro);
  --sobre-acento: #1B140C;
  --peligro: #EC7462;
  --ok: #86C99C;
  --brillo-oro: 0 0 0 1px rgb(212 175 120 / 0.35), 0 10px 30px -10px rgb(212 175 120 / 0.45);
  --sombra: inset 0 1px 0 rgb(255 236 200 / 0.05), 0 20px 40px -22px rgb(0 0 0 / 0.95), 0 2px 8px rgb(0 0 0 / 0.45);

  --radio: 20px;
  --radio-chico: 12px;
  --gutter: 16px;

  --fuente-display: 'Anton', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --fuente-script: 'Yellowtail', 'Brush Script MT', cursive;
  --fuente-texto: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fuente-cond: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;

  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rebote: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.bloqueado { overflow: hidden; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acento-fuerte); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acento-fuerte); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h2 {
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  color: var(--marca-blanco);
}

.saltar {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--acento); color: var(--sobre-acento); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 700;
}
.saltar:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sin-js { text-align: center; padding: 1rem; color: var(--texto-suave); }

/* ------------------------------------------------------------ Botones */
.boton {
  --b-fondo: linear-gradient(180deg, var(--marca-oro-claro), var(--marca-oro) 55%, #B98F57);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border: 0; border-radius: 999px;
  background: var(--b-fondo);
  color: var(--sobre-acento);
  font-family: var(--fuente-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -2px 0 rgb(90 60 25 / 0.35), 0 12px 28px -12px rgb(212 175 120 / 0.65);
  transition: transform 0.18s var(--curva), box-shadow 0.25s var(--curva), filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
/* Brillo que cruza el botón al pasar el mouse. */
.boton::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
}
@media (hover: hover) {
  .boton:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 -2px 0 rgb(90 60 25 / 0.35), 0 16px 34px -12px rgb(212 175 120 / 0.85); }
  .boton:hover::after { transform: translateX(120%); transition: transform 0.7s var(--curva); }
}
.boton:active { transform: scale(0.96); }
.boton:disabled { filter: grayscale(0.7) brightness(0.7); cursor: progress; }
.boton svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton--grande { min-height: 58px; padding: 0.9rem 2rem; font-size: 1.35rem; }
.boton--chico { min-height: 40px; padding: 0.45rem 1rem; font-size: 1rem; }
.boton--borde {
  --b-fondo: transparent;
  color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linea-fuerte);
}
.boton--borde::after { background: linear-gradient(105deg, transparent 35%, rgb(212 175 120 / 0.18) 50%, transparent 65%); }
@media (hover: hover) { .boton--borde:hover { box-shadow: inset 0 0 0 1.5px var(--acento); } }
.boton--fantasma {
  --b-fondo: transparent; color: var(--texto-suave); box-shadow: none; text-decoration: underline; text-underline-offset: 4px;
}
.boton--fantasma::after { display: none; }
.boton--peligro { --b-fondo: transparent; color: var(--peligro); box-shadow: inset 0 0 0 1.5px rgb(236 116 98 / 0.5); }
.boton--peligro::after { display: none; }

/* ------------------------------------------------------------ Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter); padding-top: max(0.6rem, env(safe-area-inset-top));
  background: rgb(10 8 7 / 0.72);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--linea);
}
.cabecera__marca { display: flex; align-items: center; gap: 0.65rem; color: var(--texto); text-decoration: none; }
.cabecera__marca img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--linea-fuerte); }
.cabecera__marca span { font-family: var(--fuente-display); font-size: 1.2rem; letter-spacing: 0.02em; line-height: 1; }
.cabecera__marca em { font-style: normal; font-family: var(--fuente-cond); font-weight: 500; font-size: 0.9rem; color: var(--texto-suave); margin-left: 0.2rem; }
.cabecera .boton { display: none; }
@media (min-width: 900px) { .cabecera .boton { display: inline-flex; } }

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 3.5rem var(--gutter) 4.5rem;
}
.hero__luz {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 50% 30%, rgb(212 175 120 / 0.16), transparent 70%),
    radial-gradient(120% 70% at 50% 120%, rgb(140 106 66 / 0.18), transparent 60%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgb(0 0 0 / 0.7));
}

/* La franja del poste de barbero: cruza el hero en diagonal, por detrás del nombre. */
.poste {
  position: absolute; z-index: -1;
  left: -60vw; right: -60vw; bottom: 0.9em;
  height: clamp(40px, 8.5vw, 70px);
  transform: rotate(-7deg);
  transform-origin: center;
  border-block: 2px solid var(--marca-oro);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 0 40px rgb(212 175 120 / 0.25), inset 0 8px 14px rgb(255 255 255 / 0.18), inset 0 -10px 16px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
.poste__franjas {
  position: absolute; inset: 0 -200px 0 0;
  background: repeating-linear-gradient(
    -55deg,
    var(--marca-rojo) 0 22px, var(--marca-blanco) 22px 34px,
    var(--marca-azul) 34px 56px, var(--marca-blanco) 56px 68px
  );
  opacity: 0.92;
  animation: poste-gira 3.6s linear infinite;
}
/* Sombra cilíndrica: que se lea como un poste y no como una cinta plana. */
.poste::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.28), transparent 35%, transparent 60%, rgb(0 0 0 / 0.5));
}
/* Sombra al centro: la firma en blanco se lee aunque cruce una franja blanca. */
.poste::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(32% 140% at 50% 50%, rgb(10 8 7 / 0.55), transparent 75%);
}
.poste::after { z-index: 2; }
@keyframes poste-gira { to { transform: translateX(-136px); } }

.hero__marca { position: relative; display: grid; justify-items: center; }
.corona { width: clamp(48px, 13vw, 72px); height: auto; margin-bottom: -0.2rem; filter: drop-shadow(0 4px 10px rgb(212 175 120 / 0.35)); }
.marca { margin: 0; display: grid; justify-items: center; line-height: 1; font-weight: 400; }
.marca__nombre {
  font-family: var(--fuente-display);
  font-size: clamp(4.4rem, 23vw, 11.5rem);
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-transform: uppercase;
  --oro-metal: linear-gradient(180deg, #FBEBC4 0%, var(--marca-oro-claro) 22%, var(--marca-oro) 48%, #A47E4E 52%, var(--marca-oro) 70%, #F0D29C 100%);
  background: var(--oro-metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5A4128) drop-shadow(0 10px 22px rgb(0 0 0 / 0.75));
  display: inline-flex;
}
.marca__nombre.partido { background: none; }
.marca__nombre .l { display: inline-block; background: var(--oro-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca__oficio {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 0.4rem;
  font-family: var(--fuente-cond); font-weight: 600;
  font-size: clamp(0.95rem, 4.2vw, 1.5rem);
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--marca-blanco);
  padding-left: 0.42em; /* compensa el espaciado del final para que quede centrado */
}
.marca__oficio::before, .marca__oficio::after {
  content: ''; width: clamp(18px, 8vw, 56px); height: 1.5px; background: linear-gradient(90deg, transparent, var(--marca-oro));
}
.marca__oficio::after { transform: scaleX(-1); }
.marca__firma {
  font-family: var(--fuente-script);
  font-size: clamp(2.8rem, 13vw, 5.6rem);
  color: var(--marca-blanco);
  line-height: 1.1;
  margin-top: 0.1rem;
  transform: rotate(-6deg);
  text-shadow: 0 3px 0 rgb(0 0 0 / 0.55), 0 0 22px rgb(0 0 0 / 0.85);
  padding: 0 0.3em;
}

.hero__bajada {
  margin: 1.6rem auto 1.4rem; max-width: 30ch;
  font-size: 1.15rem; color: var(--texto-suave);
}
.hero__bajada, #cta-hero { position: relative; }
.tijeras { transition: transform 0.35s var(--rebote); }
@media (hover: hover) { .boton:hover .tijeras { transform: rotate(-18deg); } }

.estado-hoy {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 1.1rem 0 0; padding: 0.35rem 0.85rem;
  border-radius: 999px; background: rgb(21 17 14 / 0.75); box-shadow: inset 0 0 0 1px var(--linea);
  font-size: 0.95rem; color: var(--texto-suave);
}
.estado-hoy::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--texto-tenue); }
.estado-hoy[data-abierto]::before { background: var(--ok); box-shadow: 0 0 0 0 rgb(134 201 156 / 0.6); animation: latido 2.4s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgb(134 201 156 / 0); } 100% { box-shadow: 0 0 0 0 rgb(134 201 156 / 0); } }

.tu-cita {
  margin-top: 0.8rem; font-size: 0.95rem; color: var(--acento-fuerte);
  text-underline-offset: 4px;
}

/* La entrada: una sola secuencia, al cargar. */
.js .corona { animation: cae 0.6s var(--rebote) both 0.05s; }
.js .marca__nombre .l { animation: sube 0.7s var(--curva) both; animation-delay: calc(0.15s + var(--i) * 0.045s); }
.js .marca__oficio { animation: aparece 0.6s var(--curva) both 0.6s; }
.js .poste { animation: barre 0.9s var(--curva) both 0.45s; }
.js .marca__firma { animation: escribe 0.9s var(--curva) both 0.8s; }
.js .hero__bajada { animation: aparece 0.6s var(--curva) both 1.05s; }
.js #cta-hero { animation: aparece-boton 0.6s var(--rebote) both 1.15s; }
.js .estado-hoy, .js .tu-cita { animation: aparece 0.6s var(--curva) both 1.3s; }
@keyframes cae { from { opacity: 0; transform: translateY(-24px) scale(0.8); } }
@keyframes sube { from { opacity: 0; transform: translateY(0.45em) rotate(4deg); } }
@keyframes aparece { from { opacity: 0; transform: translateY(12px); } }
@keyframes aparece-boton { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
@keyframes barre { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes escribe { from { opacity: 0; clip-path: inset(-20% 100% -20% 0); } to { opacity: 1; clip-path: inset(-20% -5% -20% 0); } }

/* ------------------------------------------------------------ Secciones */
.seccion { scroll-margin-top: 64px; padding: 3.5rem var(--gutter); max-width: 1080px; margin: 0 auto; }
.seccion__ayuda { margin: 0 0 1.4rem; color: var(--texto-suave); }

/* Servicios: tablero de precios de barbería. */
.servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .servicios { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.servicio {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  padding: 1.05rem 1.15rem 1.05rem 1.3rem;
  text-align: left; cursor: pointer;
  background: linear-gradient(180deg, var(--superficie-alta), var(--superficie));
  border: 0; border-radius: var(--radio);
  box-shadow: var(--sombra), inset 0 0 0 1px var(--linea);
  transition: transform 0.2s var(--curva), box-shadow 0.25s var(--curva);
  -webkit-tap-highlight-color: transparent;
}
.servicio::before { /* filete dorado a la izquierda, como en una carta de precios */
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--marca-oro-claro), var(--marca-oro-hondo));
  transition: top 0.25s var(--curva), bottom 0.25s var(--curva);
}
@media (hover: hover) {
  .servicio:hover { transform: translateY(-2px); box-shadow: var(--sombra), inset 0 0 0 1px var(--linea-fuerte), 0 0 30px -12px rgb(212 175 120 / 0.5); }
  .servicio:hover::before { top: 0; bottom: 0; }
}
.servicio:active { transform: scale(0.985); }
.servicio__nombre { font-family: var(--fuente-display); font-size: 1.55rem; line-height: 1.05; letter-spacing: 0.01em; color: var(--marca-blanco); }
.servicio__desc { grid-column: 1; margin: 0; color: var(--texto-suave); font-size: 0.98rem; }
.servicio__meta { grid-column: 1; display: flex; align-items: center; gap: 0.4rem; color: var(--texto-tenue); font-size: 0.95rem; }
.servicio__meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.servicio__precio {
  grid-column: 2; grid-row: 1 / span 3; text-align: right;
  font-family: var(--fuente-cond); font-weight: 600; font-size: 1.35rem; color: var(--acento-fuerte); white-space: nowrap;
}
.servicio__precio--consultar { font-size: 1.05rem; color: var(--acento); font-weight: 500; }
.servicio__precio small { display: block; font-size: 0.8rem; color: var(--texto-tenue); font-weight: 500; margin-top: 0.15rem; }
.cargando { height: 92px; border-radius: var(--radio); background: linear-gradient(90deg, var(--superficie) 0%, var(--superficie-alta) 50%, var(--superficie) 100%); background-size: 200% 100%; animation: brillo-carga 1.4s infinite linear; }
@keyframes brillo-carga { to { background-position: -200% 0; } }

/* Galería: tira deslizable. */
.galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 1.2rem calc(var(--gutter) * -1) 0; padding: 0.4rem var(--gutter) 1rem;
  scrollbar-width: thin; scrollbar-color: var(--marca-oro-hondo) transparent;
  scroll-padding-inline: var(--gutter);
}
.galeria figure { margin: 0; scroll-snap-align: center; }
.galeria img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio);
  box-shadow: var(--sombra), 0 0 0 1px var(--linea-fuerte);
  background: var(--superficie);
}

/* Horario y ubicación */
.visita { display: grid; gap: 1.5rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .visita { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.horario {
  list-style: none; margin: 0; padding: 0.4rem 0;
  background: var(--superficie); border-radius: var(--radio); box-shadow: var(--sombra), inset 0 0 0 1px var(--linea);
}
.horario li {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgb(212 175 120 / 0.08);
  font-variant-numeric: tabular-nums;
}
.horario li:last-child { border-bottom: 0; }
.horario__dia { color: var(--texto-suave); }
.horario__cerrado { color: var(--texto-tenue); }
.horario li[aria-current] { color: var(--acento-fuerte); font-weight: 600; background: rgb(212 175 120 / 0.07); }
.horario li[aria-current] .horario__dia { color: var(--acento-fuerte); }
.contacto { display: grid; gap: 1rem; }
.contacto__direccion { margin: 0; font-size: 1.15rem; }
.contacto__botones { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Pie */
.pie {
  display: grid; justify-items: center; gap: 0.35rem; text-align: center;
  padding: 2.5rem var(--gutter) calc(7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea); color: var(--texto-tenue); font-size: 0.95rem;
}
.pie img { width: 56px; height: 56px; border-radius: 50%; opacity: 0.9; margin-bottom: 0.4rem; }
.pie p { margin: 0; }
.pie a { color: var(--texto-suave); }
@media (min-width: 900px) { .pie { padding-bottom: 2.5rem; } }

/* Barra fija abajo en el celular */
.barra-fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0.7rem var(--gutter) max(0.7rem, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(10 8 7 / 0), rgb(10 8 7 / 0.92) 30%);
  transform: translateY(110%); transition: transform 0.35s var(--curva);
}
.barra-fija.visible { transform: none; }
.barra-fija .boton { width: 100%; }
@media (min-width: 900px) { .barra-fija { display: none; } }

/* ------------------------------------------------------------ Hoja de reserva */
.hoja { position: fixed; inset: 0; z-index: 50; display: grid; }
.hoja__fondo { position: absolute; inset: 0; background: rgb(0 0 0 / 0.7); backdrop-filter: blur(4px); animation: aparece-fondo 0.3s both; }
.hoja__panel {
  position: relative; display: flex; flex-direction: column;
  width: 100%; height: 100%; height: 100dvh;
  background: radial-gradient(120% 50% at 50% 0%, rgb(212 175 120 / 0.08), transparent 60%), var(--fondo);
  animation: hoja-sube 0.42s var(--curva) both;
}
@media (min-width: 640px) {
  .hoja { place-items: center; padding: 2rem; }
  .hoja__panel {
    width: min(520px, 100%); height: min(780px, calc(100dvh - 4rem));
    border-radius: 26px; box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.9), inset 0 0 0 1px var(--linea-fuerte);
    overflow: hidden;
  }
}
.hoja.cerrando .hoja__panel { animation: hoja-baja 0.28s var(--curva) both; }
.hoja.cerrando .hoja__fondo { animation: aparece-fondo 0.28s reverse both; }
@keyframes hoja-sube { from { transform: translateY(40px); opacity: 0; } }
@keyframes hoja-baja { to { transform: translateY(40px); opacity: 0; } }
@keyframes aparece-fondo { from { opacity: 0; } }

.hoja__cabeza {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 0.75rem;
  padding: max(0.7rem, env(safe-area-inset-top)) 0.75rem 0.7rem;
  border-bottom: 1px solid var(--linea);
}
.icono {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--superficie-alta); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linea); transition: transform 0.15s, visibility 0s;
}
.icono:active { transform: scale(0.9); }
.icono svg { width: 22px; height: 22px; fill: none; stroke: var(--texto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icono.oculto { visibility: hidden; }

.progreso { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.progreso li { flex: 1; height: 5px; border-radius: 99px; background: var(--superficie-alta); overflow: hidden; }
.progreso li::after {
  content: ''; display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--marca-oro-hondo), var(--marca-oro-claro));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--curva);
}
.progreso li.hecho::after { transform: none; }

.hoja__cuerpo {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}
.paso { display: grid; gap: 1rem; }
.paso.adelante { animation: entra-der 0.38s var(--curva) both; }
.paso.atras { animation: entra-izq 0.38s var(--curva) both; }
@keyframes entra-der { from { opacity: 0; transform: translateX(28px); } }
@keyframes entra-izq { from { opacity: 0; transform: translateX(-28px); } }
.paso__titulo { font-family: var(--fuente-display); font-weight: 400; font-size: 2.25rem; line-height: 1; margin: 0; color: var(--marca-blanco); }
.paso__titulo:focus { outline: none; }
.paso__sub { margin: -0.4rem 0 0; color: var(--texto-suave); }

.opciones { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.opcion {
  width: 100%; min-height: 64px;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.1rem; text-align: left; cursor: pointer;
  background: var(--superficie); border: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--linea); transition: transform 0.15s var(--curva), box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.opcion:active { transform: scale(0.98); }
@media (hover: hover) { .opcion:hover { box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); background: var(--superficie-alta); } }
.opcion[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--acento); background: rgb(212 175 120 / 0.08); }
.opcion__texto { flex: 1; display: grid; gap: 0.1rem; }
.opcion__nombre { font-weight: 600; font-size: 1.12rem; }
.opcion__meta { color: var(--texto-suave); font-size: 0.95rem; }
.opcion__lado { font-family: var(--fuente-cond); font-weight: 600; font-size: 1.1rem; color: var(--acento-fuerte); white-space: nowrap; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--fuente-display); font-size: 1.3rem; color: var(--sobre-acento);
  background: linear-gradient(180deg, var(--marca-oro-claro), var(--marca-oro-hondo));
}
.avatar--cualquiera { background: var(--superficie-alta); color: var(--acento); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }

/* Tira de días */
.tira {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 0.55rem;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 0.3rem var(--gutter) 0.8rem;
  scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.tira::-webkit-scrollbar { display: none; }
.dia {
  scroll-snap-align: start;
  display: grid; justify-items: center; gap: 0.1rem; padding: 0.7rem 0.3rem 0.6rem;
  border: 0; border-radius: 16px; cursor: pointer; background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea); transition: transform 0.15s var(--curva), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.dia:active:not(:disabled) { transform: scale(0.95); }
.dia__semana { font-size: 0.85rem; color: var(--texto-suave); text-transform: capitalize; }
.dia__numero { font-family: var(--fuente-display); font-size: 1.9rem; line-height: 1.05; }
.dia__mes { font-size: 0.8rem; color: var(--texto-tenue); }
.dia__aviso { font-size: 0.72rem; color: var(--texto-tenue); }
.dia[aria-pressed='true'] { background: linear-gradient(180deg, var(--marca-oro-claro), var(--marca-oro)); box-shadow: var(--brillo-oro); }
.dia[aria-pressed='true'] > span { color: var(--sobre-acento); }
.dia:disabled { cursor: not-allowed; opacity: 0.38; }
.dia:disabled .dia__numero { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Horas */
.franja { display: grid; gap: 0.55rem; }
.franja h3 { margin: 0.4rem 0 0; font-family: var(--fuente-cond); font-weight: 500; font-size: 1.05rem; color: var(--texto-suave); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.chip {
  min-height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea);
  font-family: var(--fuente-cond); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums;
  transition: transform 0.15s var(--curva), box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(0.94); }
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); } }
.chip[aria-pressed='true'] { background: linear-gradient(180deg, var(--marca-oro-claro), var(--marca-oro)); color: var(--sobre-acento); box-shadow: var(--brillo-oro); }

/* Avisos */
.aviso {
  margin: 0; padding: 0.8rem 1rem; border-radius: 12px;
  background: rgb(236 116 98 / 0.1); box-shadow: inset 0 0 0 1px rgb(236 116 98 / 0.4); color: #F6B5AA;
  animation: sacude 0.4s var(--curva);
}
.aviso--info { background: rgb(212 175 120 / 0.08); box-shadow: inset 0 0 0 1px var(--linea-fuerte); color: var(--texto); animation: none; }
@keyframes sacude { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.vacio { text-align: center; color: var(--texto-suave); padding: 1.5rem 0.5rem; display: grid; gap: 1rem; justify-items: center; }

/* Formulario */
.resumen {
  display: grid; gap: 0.35rem; padding: 1rem 1.15rem; border-radius: 16px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea);
}
.resumen div { display: flex; justify-content: space-between; gap: 1rem; }
.resumen dt { color: var(--texto-suave); }
.resumen dd { margin: 0; text-align: right; font-weight: 600; }
.campo { display: grid; gap: 0.35rem; }
.campo label { font-weight: 600; font-size: 0.98rem; }
.campo .opcional { color: var(--texto-tenue); font-weight: 400; }
.entrada {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  font: inherit; font-size: 1.1rem; color: var(--texto);
  background: var(--superficie-hundida); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--linea-fuerte);
  transition: box-shadow 0.2s;
}
.entrada::placeholder { color: var(--texto-tenue); }
.entrada:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acento), 0 0 0 4px rgb(212 175 120 / 0.15); }
.entrada[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--peligro); }
textarea.entrada { min-height: 84px; resize: vertical; }
.telefono { display: grid; grid-template-columns: 92px 1fr; gap: 0.5rem; }
.telefono .prefijo { position: relative; }
.telefono .prefijo span { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--texto-suave); pointer-events: none; font-size: 1.1rem; }
.telefono .prefijo .entrada { padding-left: 1.8rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ayuda { margin: 0; font-size: 0.9rem; color: var(--texto-tenue); }

/* Éxito */
.listo { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-top: 0.5rem; }
.sello { width: 104px; height: 104px; }
.sello circle { fill: none; stroke: var(--acento); stroke-width: 3; stroke-dasharray: 302; stroke-dashoffset: 302; animation: traza 0.7s var(--curva) forwards 0.1s; }
.sello path { fill: none; stroke: var(--acento-fuerte); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: traza 0.45s var(--curva) forwards 0.7s; }
.sello { filter: drop-shadow(0 0 18px rgb(212 175 120 / 0.45)); animation: late 0.5s var(--rebote) 1.1s; }
@keyframes traza { to { stroke-dashoffset: 0; } }
@keyframes late { 50% { transform: scale(1.08); } }
.listo h2 { margin: 0; font-size: 2.4rem; }
.listo > p { margin: 0; color: var(--texto-suave); max-width: 34ch; }

.ticket {
  position: relative; width: 100%; text-align: left;
  background: linear-gradient(180deg, var(--superficie-alta), var(--superficie));
  border-radius: 18px; box-shadow: var(--sombra), inset 0 0 0 1px var(--linea-fuerte);
  animation: aparece 0.5s var(--curva) both 0.9s;
}
.ticket__codigo {
  display: grid; justify-items: center; gap: 0.15rem; padding: 1rem 1rem 0.9rem;
  border-bottom: 2px dashed rgb(212 175 120 / 0.3);
}
.ticket__codigo span { font-size: 0.9rem; color: var(--texto-suave); }
.ticket__codigo strong { font-family: var(--fuente-display); font-weight: 400; font-size: 2.3rem; letter-spacing: 0.06em; color: var(--acento-fuerte); line-height: 1.05; }
/* Las muescas del ticket, alineadas con la línea punteada */
.ticket__codigo { position: relative; }
.ticket__codigo::before, .ticket__codigo::after {
  content: ''; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
}
.ticket__codigo::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket__codigo::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket dl { margin: 0; padding: 0.9rem 1.15rem 1rem; display: grid; gap: 0.35rem; }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; }
.ticket dt { color: var(--texto-suave); }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.acciones { display: grid; gap: 0.6rem; width: 100%; animation: aparece 0.5s var(--curva) both 1.05s; }
.acciones .boton { width: 100%; }

.estado { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.estado--pendiente { background: rgb(212 175 120 / 0.14); color: var(--acento-fuerte); }
.estado--confirmada { background: rgb(134 201 156 / 0.15); color: var(--ok); }
.estado--cancelada, .estado--no_vino { background: rgb(236 116 98 / 0.14); color: var(--peligro); }
.estado--atendida { background: var(--superficie-alta); color: var(--texto-suave); }

/* Páginas simples (cita, privacidad) */
.pagina { max-width: 560px; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.pagina h1 { font-family: var(--fuente-display); font-weight: 400; font-size: clamp(2.4rem, 10vw, 3.2rem); line-height: 1; margin: 0 0 1rem; color: var(--marca-blanco); }
.pagina h2 { font-size: 1.7rem; margin-top: 2rem; }
.pagina p, .pagina li { color: var(--texto-suave); }
.pagina strong { color: var(--texto); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .poste__franjas { animation: none !important; }
}
