/* estilos.css — menú digital de Sinai Pizzas 2x1 (celular), con el estilo de su carta tríptico.
   Sigue ..\LINEAMIENTOS_DISEÑO.md (paleta, letras, componentes y las 23 reglas anti-encimado).
   Ancho de referencia 390 px (10.32 cm); funciona de 320 a 430 px (8.47 a 11.38 cm); máximo 480 px (12.70 cm).
   Reglas que aquí se cumplen a propósito:
     · Las fotos viven SOLO en .franja-foto; ningún texto lleva position:absolute (salvo .filo::before, que es el mismo
       texto dibujado detrás como contorno, dentro de su misma caja).
     · Todo titular con filo reserva padding .1em / .06em; nada de height fijo en cajas con texto.
     · El body reserva el alto de la barra fija + la zona segura del iPhone. */

/* ---------- letras (todas libres, OFL: fuentes_web\, ver menu_digital.json) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fuentes_web/montserrat-600.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fuentes_web/montserrat-700.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fuentes_web/montserrat-800.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("fuentes_web/montserrat-900.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: italic; font-display: swap; src: url("fuentes_web/montserrat-800i.woff") format("woff"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("fuentes_web/nunito-900.woff") format("woff"); }
@font-face { font-family: "Spicy Rice"; font-display: swap; src: url("fuentes_web/spicy-rice.woff") format("woff"); }
@font-face { font-family: "Condiment"; font-display: swap; src: url("fuentes_web/condiment.woff") format("woff"); }
@font-face { font-family: "Handlee"; font-display: swap; src: url("fuentes_web/handlee.woff") format("woff"); }
/* respaldos con su tamaño ajustado (regla 14): si la letra no carga, el texto ocupa casi lo mismo */
@font-face { font-family: "Montserrat R"; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 107%; }
@font-face { font-family: "Nunito R"; src: local("Arial Black"), local("Arial-Black"); size-adjust: 89%; }
@font-face { font-family: "Spicy R"; src: local("Arial Black"), local("Arial-Black"); size-adjust: 76%; }
@font-face { font-family: "Condiment R"; src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"); size-adjust: 76%; }
@font-face { font-family: "Handlee R"; src: local("Arial"), local("ArialMT"); size-adjust: 91%; }

:root {
  /* colores exactos del vector del tríptico */
  --amarillo: #FFCF03;
  --rojo: #ED1C24;
  --negro: #231F20;
  --crema: #FFFABA;
  --blanco: #FFFFFF;
  --dibujo-amarillo: #FFE58C;
  --dibujo-rojo: #F04030;
  --rojo-oscuro: #A30D12;
  --naranja: #F26621;      /* solo relieve de «¡Buen provecho!» */
  --ambar: #FFBD0F;        /* solo degradado de pestañas */
  /* derivados (no vienen del impreso) */
  --rojo-tinta: #B8111A;   /* rojo para texto chico: 4.5:1 sobre amarillo */
  --verde-wa: #0E7A35;     /* verde WhatsApp oscurecido: blanco encima 5.3:1 */

  --f-texto: "Montserrat", "Montserrat R", Arial, sans-serif;
  --f-redondo: "Nunito", "Nunito R", "Arial Black", sans-serif;
  --f-caricatura: "Spicy Rice", "Spicy R", "Arial Black", sans-serif;
  --f-manuscrita: "Condiment", "Condiment R", cursive;
  --f-mano: "Handlee", "Handlee R", sans-serif;

  --borde: 16px;                 /* margen lateral de la página (0.42 cm) */
  --pad: 16px;                   /* relleno de tarjetas (0.42 cm) */
  --alto-barra: 124px;           /* barra fija: renglón de sucursal + botones (2.96 cm) */
  --sombra-tarjeta: 0 4px 0 rgba(35, 31, 32, .12), 0 10px 20px rgba(35, 31, 32, .10);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--negro);
  scroll-padding-bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom, 0px));
  scroll-padding-top: 60px;      /* al saltar con un atajo, el titular no queda debajo de la barra de arriba */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0 auto; max-width: 480px; color: var(--negro); background: var(--amarillo);
  font: 600 1rem/1.35 var(--f-texto);
  padding-bottom: calc(var(--alto-barra) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
body.con-hoja { overflow: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.nw { white-space: nowrap; }
.foto { display: block; }
:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; overflow-wrap: break-word; }

/* ---------- secciones y patrón de dibujos (máscara teñida por fondo, 5.5) ---------- */
.sec { position: relative; isolation: isolate; padding: 48px var(--borde); overflow: clip; }
#paquetes { padding-top: 24px; }
.sec-amarilla { background: var(--amarillo); --tinta-patron: var(--dibujo-amarillo); }
.sec-crema { background: var(--crema); --tinta-patron: rgba(255, 229, 140, .7); }
.sec-roja { background: var(--rojo); --tinta-patron: var(--dibujo-rojo); }
.patron {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--tinta-patron);
  -webkit-mask: url("img/patron.webp") 0 0 / 300px auto repeat; mask: url("img/patron.webp") 0 0 / 300px auto repeat;
}

/* titular de sección: Nunito rojo con filo blanco (en rojo: blanco con relieve rojo-oscuro) */
.sec-titulo {
  display: block; width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: .06em .1em;
  font: 900 clamp(1.875rem, 9.4vw, 2.5rem)/1.05 var(--f-redondo); text-transform: uppercase; text-align: center;
  color: var(--rojo); --filo: var(--blanco); --filo-w: .18em; --filo-sombra: 0 .05em 0 rgba(35, 31, 32, .3);
}
.sec-crema .sec-titulo, .promo-nombre.redondo { --filo-sombra: .04em .06em 0 var(--rojo-oscuro); }
.sec-roja .sec-titulo { color: var(--blanco); --filo: var(--rojo-oscuro); --filo-sombra: .03em .05em 0 var(--rojo-oscuro); }

/* ---------- contornos de letra como en CorelDRAW: «contorno detrás del relleno» (5.1, capa duplicada) ----------
   app.js copia el texto en data-t; ::before lo dibuja detrás, en la MISMA caja, con un trazo real. El trazo va
   centrado en la orilla: lo que se ve por fuera es la mitad de --filo-w (0.09em). */
.filo { position: relative; z-index: 0; }
.filo::before {
  content: attr(data-t); position: absolute; inset: 0; z-index: -1; padding: inherit; pointer-events: none;
  white-space: inherit; color: var(--filo); -webkit-text-stroke: var(--filo-w) var(--filo); text-shadow: var(--filo-sombra, none);
}
.filo.filo-br::before { white-space: pre-line; }

/* ---------- tarjetas ---------- */
.tarjeta, .promo, .suc { background: var(--crema); border-radius: 16px; box-shadow: var(--sombra-tarjeta); overflow: clip; }
/* marca de agua en el amarillo clarito: pizzas, rebanadas, chiles y albahaca en línea (img/fondos/pizzas.svg) */
.tarjeta, .promo { position: relative; isolation: isolate; }
.tarjeta::after, .promo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #E8C94A; opacity: .5;
  -webkit-mask: url("img/fondos/pizzas.svg") 0 0 / 150px repeat; mask: url("img/fondos/pizzas.svg") 0 0 / 150px repeat; }

/* ---------- precio con el «$» chico ---------- */
.pr { display: inline-flex; align-items: baseline; font-family: var(--f-texto); font-weight: 900; line-height: .9;
  letter-spacing: -.02em; white-space: nowrap; color: var(--negro); }
.pr i { font-style: normal; font-size: .42em; margin-right: .04em; align-self: flex-start; margin-top: .14em; }
.pr i, .pr b { --filo: var(--blanco); --filo-w: .12em; padding: .03em .02em; }

/* ---------- pestaña amarilla de precio, a sangre por la derecha (5.2) ---------- */
.pestana {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; justify-self: stretch;
  margin-right: calc(-1 * var(--pad)); padding: 6px 12px 6px 24px; min-height: 0;
  background: linear-gradient(90deg, rgba(255, 207, 3, 0), var(--amarillo) 28%, var(--amarillo) 70%, var(--ambar));
}

/* ======================================================================= PORTADA (7.1) */
.portada {
  position: relative; isolation: isolate; overflow: clip; text-align: center; color: var(--blanco);
  background: var(--amarillo); padding: max(24px, env(safe-area-inset-top, 0px)) var(--borde) 0;
}
.portada::before {   /* gran círculo rojo: fondo, sin texto (5.4) */
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 130px; width: 170%; aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%; background: var(--rojo);
}
/* Dibujos de la carta en el amarillo de la portada, DEBAJO del círculo rojo (z-index -2): el círculo los tapa, así que
   dentro del rojo no se ve ninguno (pedido del usuario, 28/11/2026). */
.portada::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none; inset: 0; background: var(--dibujo-amarillo);
  -webkit-mask: url("img/patron.webp") 0 0 / 300px auto repeat; mask: url("img/patron.webp") 0 0 / 300px auto repeat;
}
.logo-caja { width: min(62%, 240px); margin: 0 auto; }
.logo { width: 100%; aspect-ratio: 1; filter: drop-shadow(0 8px 14px rgba(80, 0, 0, .35)); }
.logo-armado { position: relative; }
.lp { position: absolute; }
.lp > .foto { width: 100%; height: 100%; }
.portada-abajo { padding: 10px 0 28px; }
/* manuscritos girados: se gira el span de adentro y el contenedor reserva .25em arriba y abajo (regla 15) */
.bienvenidos, .bienvenidos2, .provecho, .provecho2 { display: block; padding: .25em .1em; font-weight: 400; line-height: 1.05; }
.bienvenidos span, .bienvenidos2 span, .provecho span, .provecho2 span { display: inline-block; rotate: -6deg; padding: 0 .08em .06em; }
.manuscrita { font-family: var(--f-manuscrita); font-weight: 400; }
.bienvenidos { font-size: clamp(2.75rem, 14vw, 3.75rem); padding-bottom: .1em; }
.bienvenidos span { --filo: var(--rojo-oscuro); --filo-w: .1em;
  --filo-sombra: .02em .02em 0 var(--rojo-oscuro), .04em .04em 0 var(--rojo-oscuro), .06em .06em 0 var(--rojo-oscuro); }
.bienvenidos2 { font-size: clamp(1.5rem, 7.2vw, 1.875rem); padding-top: 0; }
.bienvenidos2 span { text-shadow: .03em .03em 0 var(--rojo-oscuro), .05em .05em 0 var(--rojo-oscuro); }

.elige { margin: 12px auto 0; max-width: 420px; }
.elige-t { font: 800 1.1875rem/1.2 var(--f-texto); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.elige-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suc-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 8px;
  border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; background: rgba(163, 13, 18, .55); color: var(--blanco); text-align: center;
  transition: background-color .2s, color .2s, transform .1s;
}
.suc-btn:active { transform: scale(.97); }
.suc-btn-n { font: 900 1.0625rem/1.15 var(--f-redondo); }
.suc-btn-c { font-size: .8125rem; line-height: 1.25; font-weight: 600; }
.suc-btn[aria-pressed="true"] { background: var(--amarillo); border: 3px solid var(--blanco); color: var(--negro);
  box-shadow: 0 4px 0 var(--rojo-oscuro); }
.suc-btn[aria-pressed="true"] .suc-btn-n::before { content: "\2713\00a0"; color: var(--rojo-tinta); }
.horario-portada { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%;
  margin: 12px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--rojo-oscuro); font-size: 1rem; font-weight: 700; }
.horario-portada svg { width: 20px; height: 20px; flex: none; }

/* ======================================================================= 2x1 (7.2, 7.5, 7.6) */
.carta-2x1 {
  position: relative; background: var(--amarillo); border-radius: 24px; padding: 24px var(--pad);
  box-shadow: 0 6px 0 rgba(35, 31, 32, .10), 0 14px 28px rgba(120, 80, 0, .18);
}
.t-2x1 { display: flex; flex-direction: column; align-items: center; text-align: center; text-transform: uppercase; }
.t-2x1-a { display: block; padding: .06em .1em; font: 900 clamp(1.5rem, 7.6vw, 2rem)/1.02 var(--f-texto); letter-spacing: -.01em; word-spacing: .15em;
  color: var(--rojo); --filo: var(--blanco); --filo-w: .18em; }
.t-2x1-b { display: block; padding: .06em .1em; font: 900 clamp(4.5rem, 22vw, 6rem)/.9 var(--f-texto); letter-spacing: -.02em;
  color: var(--rojo); --filo: var(--blanco); --filo-w: .14em; --filo-sombra: 0 .04em 0 rgba(35, 31, 32, .3); }
.t-2x1::after { content: ""; display: block; width: 60%; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--rojo); }
.tamanos {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin: 16px calc(-1 * var(--pad) - 8px) 24px; padding: 10px 8px 12px; background: var(--blanco);
  box-shadow: 0 3px 0 rgba(35, 31, 32, .15);
}
.tamanos::before, .tamanos::after {   /* pliegues de la cinta detrás del panel */
  content: ""; position: absolute; bottom: -8px; width: 8px; height: 8px; pointer-events: none; background: rgba(35, 31, 32, .35);
}
.tamanos::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.tamanos::after { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.tam { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tam-n { font: 800 .9375rem/1 var(--f-texto); letter-spacing: .02em; color: var(--rojo-tinta); }
.pr-tam { font-size: clamp(1.25rem, 6.2vw, 1.625rem); font-weight: 800; color: var(--rojo); }
.pr-tam i, .pr-tam b { --filo-w: 0; }
.pr-tam i { font-size: max(12px, .55em); }
.esp-lista { display: grid; gap: 14px; }
.esp-lista li { min-width: 0; }
.esp-n { display: inline-block; padding: .06em .1em; margin-left: -.1em; font: italic 800 clamp(1.1875rem, 6vw, 1.5rem)/1.1 var(--f-texto);
  text-transform: uppercase; color: var(--rojo); --filo: var(--blanco); --filo-w: .2em; }
.esp-i { margin-top: 2px; font-size: 1rem; line-height: 1.35; }

/* ======================================================================= PAQUETES (7.4) */
.lista-paq { display: grid; gap: 24px; }
.tarjeta-paq { padding: 0 var(--pad); }
.paq { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 4px; padding: 20px 0 8px; }
.paq-num { justify-self: start; padding: .06em .1em; margin-left: -.1em; font: 400 clamp(1.375rem, 6.6vw, 1.625rem)/1.1 var(--f-caricatura);
  letter-spacing: .02em; text-transform: uppercase; color: var(--negro); --filo: var(--blanco); --filo-w: .2em; }
.pestana-paq { padding-block: 6px; }
.paq-t, .paq-det, .paq-ref { grid-column: 1 / -1; }
.paq-t { margin-top: 4px; font: 800 clamp(1.1875rem, 6vw, 1.5rem)/1.1 var(--f-texto); text-transform: uppercase; color: var(--rojo); }
.paq-det { font-size: 1rem; line-height: 1.35; }
.paq-ref { font-size: .9375rem; }
.pr-paq { font-size: clamp(2.25rem, 11vw, 2.875rem); }
.paq-foto { aspect-ratio: 390 / 230; margin: 0 calc(-1 * var(--pad)); padding: 0 10px 14px; }

/* ======================================================================= PIZZAS ESPECIALES Y GRANDES (7.3) */
.promo { display: grid; gap: 6px; padding: 12px var(--pad) 0; margin-bottom: 16px; text-align: center; }
.promo:last-child { margin-bottom: 0; }
.promo-antes { justify-self: center; padding: .06em .1em; }
.antes-caricatura { font: 400 clamp(1.25rem, 6vw, 1.5rem)/1.25 var(--f-caricatura); letter-spacing: .02em; text-transform: uppercase;
  color: var(--blanco); --filo: var(--rojo); --filo-w: .2em; }
.antes-manuscrita { font: 400 clamp(1.5rem, 7.4vw, 1.875rem)/1.4 var(--f-manuscrita); color: var(--rojo);
  --filo: var(--blanco); --filo-w: .16em; --filo-sombra: .04em .05em 0 var(--rojo-oscuro); }
.promo-nombre { justify-self: center; max-width: 100%; padding: .06em .1em; text-transform: uppercase; color: var(--rojo);
  --filo: var(--blanco); --filo-w: .18em; --filo-sombra: 0 .05em 0 rgba(35, 31, 32, .25); }
.promo-nombre.redondo { font: 900 clamp(1.75rem, 9vw, 2.375rem)/1.05 var(--f-redondo); margin-top: -4px; }
.promo-nombre.caricatura { font: 400 clamp(3rem, 15.5vw, 4rem)/1 var(--f-caricatura); letter-spacing: .01em;
  color: var(--blanco); --filo: var(--rojo); }
.grande .promo-nombre.caricatura { font-size: clamp(2.5rem, 12.8vw, 3.25rem); }
/* Hawaiana y Peperoni grandes, una junto a la otra (ocupan la mitad de alto que una debajo de otra) */
/* Pizzas grandes: una tarjeta dividida en dos renglones (foto 56 % | sabor, precio y nota) */
#grandes { padding-block: 32px; }
.grandes-carta { gap: 0; padding-bottom: 6px; margin-bottom: 0; }
.g-fila { display: grid; grid-template-columns: 56% 1fr; align-items: center; gap: 6px; padding: 8px 0 12px; }
.g-fila + .g-fila { border-top: 2px dashed rgba(35, 31, 32, .22); padding-top: 14px; }
.g-inv { grid-template-columns: 1fr 56%; }
.g-inv .grande-foto { order: 2; }
.g-info { display: grid; justify-items: center; align-content: center; gap: 8px; min-width: 0; }
.g-precio { background: var(--amarillo); border-radius: 12px; padding: 2px 12px 4px; box-shadow: 0 3px 0 var(--ambar); }

/* franja de foto: proporción fija, la pizza y su refresco en columnas distintas (reglas 1 y 2) */
.franja-foto {
  display: grid; grid-template-columns: 1fr 18%; align-items: end; justify-items: center; gap: 4px;
  margin-inline: calc(-1 * var(--pad)); padding: 12px; overflow: clip;
}
.franja-foto { grid-template-rows: minmax(0, 1fr); }
.franja-foto > .foto { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.franja-foto .pizza { filter: drop-shadow(0 8px 10px rgba(35, 31, 32, .30)); }
.franja-foto .refresco { filter: drop-shadow(0 6px 6px rgba(35, 31, 32, .25)); }
.paq-foto:has(.refresco:first-child) { grid-template-columns: 18% 1fr; }
/* Pizzas especiales: la pizza ocupa todo el ancho de la tarjeta y el refresco va parado en la esquina de abajo,
   donde la pizza vista de 3/4 deja hueco (las dos fotos en la misma celda, el refresco encima). */
.franja-foto.promo-foto { grid-template-columns: 1fr; padding: 4px 6px 2px; }
.promo-foto > .foto { grid-area: 1 / 1; }
.promo-foto > .pizza { width: 94%; justify-self: start; }
.promo-foto > .refresco { width: 15%; height: 74%; justify-self: end; align-self: end; z-index: 1; }
.promo-rectangular .promo-foto > .pizza, .promo-barra .promo-foto > .pizza { justify-self: end; }
.promo-rectangular .promo-foto > .refresco, .promo-barra .promo-foto > .refresco { justify-self: start; }
.grande-foto, .despedida-foto { grid-template-columns: 1fr; }
/* proporción de cada franja = la de su foto (para que no sobre aire arriba y abajo) */
.promo-gigante .promo-foto { aspect-ratio: 1.92; }
.promo-rectangular .promo-foto { aspect-ratio: 1.7; }
.promo-c4 .promo-foto { aspect-ratio: 1.67; }
.promo-cuadrada .promo-foto { aspect-ratio: 1.4; }
.promo-barra .promo-foto { aspect-ratio: 1.15; }
.franja-foto.grande-foto { aspect-ratio: 1.2; margin: 0 -6px; padding: 0; }
/* la foto se ajusta a la franja sin deformarse: ancho máximo y alto máximo, centrada */
.franja-foto > .foto { align-self: center; }
/* medida y rebanadas en un solo renglón (en celulares chicos se acomodan en dos) */
.promo-ficha { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.ficha-medida { justify-self: center; background: var(--negro); color: var(--amarillo); border-radius: 999px; padding: 6px 14px;
  font-size: .9375rem; font-weight: 800; line-height: 1.2; }
.promo-datos { font-size: .9375rem; font-weight: 700; }
.promo-orilla { font-size: .875rem; line-height: 1.3; }
.phila { color: var(--rojo-tinta); font-weight: 900; }
.promo .pestana { margin-top: 4px; margin-left: calc(-1 * var(--pad)); padding: 6px 12px 6px 24px; justify-content: center; }
.por-solo { font: 700 clamp(1rem, 4.8vw, 1.25rem)/1 var(--f-texto); letter-spacing: .02em; text-transform: uppercase;
  color: var(--rojo-tinta); text-align: right; max-width: 4.6em; }
.pr-promo { font-size: clamp(2.75rem, 13.4vw, 3.5rem); }
.promo-gigante .pr-promo { font-size: clamp(3.125rem, 15.5vw, 4rem); }
.grande-sabor { font: 800 clamp(1.125rem, 5.4vw, 1.5rem)/1.1 var(--f-texto); text-transform: uppercase; color: var(--rojo); }
.grande .pr-promo { font-size: clamp(2.5rem, 12.4vw, 3.25rem); }
.sello-no { justify-self: center; margin: 4px 0 var(--pad); background: var(--blanco); border: 2px solid var(--negro); border-radius: 8px;
  padding: 6px 12px; font-size: .9375rem; font-weight: 800; text-transform: uppercase; }
.grande .sello-no { margin: 0; padding: 5px 8px; font-size: clamp(.75rem, 3.5vw, .875rem); white-space: nowrap; }
.grande .pestana { justify-content: center; margin-left: calc(-1 * var(--pad)); padding-left: 12px;
  background: linear-gradient(90deg, var(--ambar), var(--amarillo) 30%, var(--amarillo) 70%, var(--ambar)); }

/* ======================================================================= SUCURSALES (7.7) */
.suc-lista { display: grid; gap: 24px; }
.suc { background: var(--blanco); padding-bottom: var(--pad); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .25s; }
.suc.es-tuya { outline-color: var(--rojo); }
.suc-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px var(--pad); background: var(--rojo); }
.suc-n { min-width: 0; font: 900 clamp(1.375rem, 6.6vw, 1.625rem)/1.1 var(--f-texto); text-transform: uppercase; color: var(--blanco); }
.suc-marca { display: none; background: var(--amarillo); border-radius: 999px; padding: 4px 10px; font-size: .8125rem; font-weight: 800; }
.suc.es-tuya .suc-marca { display: inline-block; }
.suc-dir, .suc-hor { display: flex; align-items: flex-start; gap: 8px; padding: 12px var(--pad) 0; font-size: 1rem; line-height: 1.35; }
.suc-hor { padding-top: 8px; font-size: .9375rem; }
.suc-dir svg, .suc-hor svg { width: 20px; height: 20px; flex: none; color: var(--rojo-tinta); margin-top: 1px; }
.suc-dir span, .suc-hor span { min-width: 0; }
.suc-btns { display: grid; gap: 8px; padding: 16px var(--pad) 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px;
  text-decoration: none; color: var(--blanco); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: left; }
.btn b { font-weight: 900; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-tel { background: var(--rojo-tinta); }
.btn-wa { background: var(--verde-wa); }
.btn-mapa { background: var(--negro); }
.btn:active { transform: scale(.97); }

/* ======================================================================= DESPEDIDA Y PIE (7.9) */
.despedida-foto { aspect-ratio: 390 / 300; margin: -16px 0 8px; }
.despedida { text-align: center; color: var(--blanco); }
.provecho { font-size: clamp(2.75rem, 14vw, 3.75rem); padding-bottom: .1em; }
.provecho span { --filo: var(--naranja); --filo-w: .1em;
  --filo-sombra: .02em .02em 0 var(--rojo-oscuro), .04em .04em 0 var(--rojo-oscuro), .06em .06em 0 var(--rojo-oscuro); }
.provecho2 { font-size: clamp(1.5rem, 7.2vw, 1.875rem); padding-top: 0; margin-top: 16px; }
.provecho2 span { text-shadow: .03em .03em 0 var(--rojo-oscuro), .05em .05em 0 var(--rojo-oscuro); }
.logo-chico-caja { width: 120px; margin: 16px auto 0; }
/* Botones de la portada: los tres en un renglón, blancos como los de la barra de abajo, ícono ilustrado arriba */
.ir-a { display: grid; grid-template-columns: 1fr 1.22fr 1fr; gap: 8px; width: min(100%, 420px); margin: 12px auto 0; }
.btn-ir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 84px;
  padding: 8px 4px 9px; border-radius: 14px; background: var(--blanco); color: var(--negro); text-decoration: none; text-align: center;
  font: 800 clamp(.75rem, 3.7vw, .9375rem)/1.1 var(--f-texto); box-shadow: 0 4px 0 var(--rojo-oscuro); transition: transform .1s, box-shadow .1s; }
.btn-ir > svg { width: 40px; height: 40px; flex: none; }
.btn-ir:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rojo-oscuro); }

.atajos { position: fixed; top: 0; inset-inline: 0; z-index: 45; max-width: 480px; margin-inline: auto; display: flex; align-items: center;
  gap: 8px; padding: max(6px, env(safe-area-inset-top, 0px)) 10px 6px; background: var(--rojo); box-shadow: 0 4px 14px rgba(35, 31, 32, .25);
  transform: translateY(-110%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
body.con-atajos .atajos { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.atajo-logo { flex: none; display: block; width: 44px; height: 44px; margin-right: auto; }
.logo-mini { width: 100%; height: 100%; }
.atajo { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 999px; flex: 0 1 auto; min-width: 0;
  background: var(--rojo-oscuro); color: var(--blanco); text-decoration: none; font-size: .9375rem; font-weight: 800; white-space: nowrap; }
.atajo > svg { width: 20px; height: 20px; flex: none; }
.atajo[aria-current] { background: var(--amarillo); color: var(--negro); }
.atajo[aria-current] > svg { color: var(--rojo); }
.atajo { flex: 1 1 auto; justify-content: center; padding: 6px 10px; font-size: clamp(.75rem, 3.5vw, .9375rem); }
.atajo > svg { display: none; }
@media (max-width: 439px) { .atajo-logo { display: none; } }
@media (max-width: 340px) { .atajo { padding-inline: 7px; } .atajos { gap: 6px; } }
.logo-chico { width: 100%; aspect-ratio: 1; }
/* Pie discreto: todo en amarillo transparente sobre el negro; la leyenda en un solo renglón y el crédito con aire */
#pie { position: relative; isolation: isolate; overflow: clip; background: var(--negro); color: rgba(255, 207, 3, .55); text-align: center;
  font-size: .75rem; line-height: 1.5; font-weight: 600; padding: 18px 8px 22px; }
.pie-linea { display: block; white-space: nowrap; font-size: clamp(.75rem, 3.4vw, .8125rem); font-weight: 500; }
#pie .credito { display: block; width: fit-content; margin: 12px auto 0; padding-top: 10px; border-top: 1px solid rgba(255, 207, 3, .16);
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 207, 3, .42); }
#pie a { display: inline-block; color: rgba(255, 207, 3, .7); font-weight: 700; text-decoration: none; padding: 14px 6px; margin: -14px 0; }

/* ======================================================================= BARRA FIJA (7.8) */
.barra.pulso { animation: pulso .45s ease 1; }
@keyframes pulso { 40% { transform: translateY(-6px); } }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hoja-op.es-tuya { background: var(--amarillo); }
.barra {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50; max-width: 480px; margin-inline: auto;
  background: var(--rojo); box-shadow: 0 -6px 18px rgba(35, 31, 32, .25);
  padding: 4px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.b-suc { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-bottom: 6px; padding: 4px 4px 4px 10px;
  background: var(--rojo-oscuro); border: 0; border-radius: 12px; color: var(--blanco); font-size: 1rem; font-weight: 700; line-height: 1.15; text-align: left; }
.b-suc svg { width: 20px; height: 20px; flex: none; }
.b-suc span { flex: 1 1 auto; min-width: 0; }
.b-suc b { font-weight: 900; }
.b-suc em:empty { display: none; }
.b-suc em { flex: none; display: grid; place-items: center; min-height: 36px; font-style: normal; font-size: .875rem; font-weight: 800;
  background: var(--blanco); color: var(--rojo-tinta); border-radius: 10px; padding: 4px 12px; }
.b-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 4px;
  border: 0; border-radius: 12px; background: var(--blanco); color: var(--negro); text-decoration: none;
  font-size: .875rem; font-weight: 700; line-height: 1.1; text-align: center; }
.b-btn svg { width: 22px; height: 22px; color: var(--rojo-tinta); }
.b-wa svg { color: var(--verde-wa); }
.b-btn:active, .hoja-op:active, .suc-btn:active { transform: scale(.97); }

/* hoja que sube desde abajo (cubre la barra, regla 21) */
.velo { position: fixed; inset: 0; z-index: 59; background: rgba(35, 31, 32, .55); opacity: 0; transition: opacity .2s; }
.velo.abierto { opacity: 1; }
.hoja {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; max-width: 480px; margin-inline: auto; max-height: 85vh; overflow-y: auto;
  background: var(--crema); border-radius: 24px 24px 0 0; padding: 16px var(--borde) calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.hoja.abierta { transform: none; }
.hoja-cerrar { float: right; width: 48px; height: 48px; margin: 0 -4px 8px 8px; border: 0; border-radius: 50%; background: rgba(35, 31, 32, .08);
  display: grid; place-items: center; }
.hoja-cerrar svg { width: 20px; height: 20px; }
.hoja-t { font: 900 1.5rem/1.15 var(--f-redondo); color: var(--rojo-tinta); margin: 8px 0 16px; }
.hoja-op { display: flex; align-items: center; gap: 12px; clear: both; width: 100%; min-height: 64px; margin-bottom: 8px; padding: 12px 14px;
  background: var(--blanco); border: 2px solid var(--rojo); border-radius: 14px; text-align: left; text-decoration: none; color: var(--negro); }
.hoja-op svg { width: 26px; height: 26px; color: var(--rojo-tinta); flex: none; }
.hoja-op span { min-width: 0; }
.hoja-op b { display: block; font-size: 1.1875rem; font-weight: 900; line-height: 1.15; }
.hoja-op small { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.hoja-otra { display: block; margin: 8px auto 0; min-height: 48px; padding: 8px 16px; background: none; border: 0; text-decoration: underline;
  text-underline-offset: 3px; font-size: .9375rem; font-weight: 700; }

/* ======================================================================= MOVIMIENTO (9): solo transform y opacity, una vez */
.rev { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.rev.visto { opacity: 1; transform: none; }
.sello { display: inline-flex; opacity: 0; transform: scale(1.25) rotate(-4deg); }
.sello.visto { animation: sellar .32s cubic-bezier(.3, 1.4, .5, 1) .12s both; }
@keyframes sellar { 0% { opacity: 0; transform: scale(1.25) rotate(-4deg); } 70% { opacity: 1; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
/* «2X1» late cada 4 s (un golpe corto y quieto el resto del tiempo) */
.carta-2x1.visto .t-2x1-b { animation: latido 4s ease .3s infinite; }
@keyframes latido { 0%, 24%, 100% { transform: none; } 8% { transform: scale(1.12) rotate(-3deg); } 15% { transform: scale(.97); } }

/* Piezas sueltas (.an, con su propio detector en app.js). Escondidas solo si hay JavaScript y movimiento. */
@media (prefers-reduced-motion: no-preference) {
  .js .an:not(.visto), .js .an-tamanos:not(.visto) .tam { opacity: 0; }
  .js .bienvenidos { clip-path: inset(-30% 100% -30% -10%); }
}
/* la pizza llega girando, como cuando la ponen en la mesa */
.an-pizza.visto { animation: pizza-llega .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pizza-llega { from { opacity: 0; transform: rotate(-35deg) scale(.72); } 70% { opacity: 1; transform: rotate(3deg) scale(1.02); } to { opacity: 1; transform: none; } }
/* la de peperoni de la despedida sigue girando despacito (una vuelta cada 40 s) */
.an-gira.visto { animation: pizza-llega .8s cubic-bezier(.2, .8, .2, 1) both, girar 40s linear .8s infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
/* el refresco sube y rebota un poco, después de la pizza */
.an-refresco.visto { animation: refresco-sube .6s cubic-bezier(.3, 1.4, .5, 1) .3s both; transform-origin: 50% 100%; }
@keyframes refresco-sube { from { opacity: 0; transform: translateY(35%) scaleY(.9); } to { opacity: 1; transform: none; } }
/* la pestaña del precio entra desde la orilla derecha y luego el precio se estampa */
.an-pestana.visto { animation: pestana-entra .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pestana-entra { from { opacity: 0; transform: translateX(55%); } to { opacity: 1; transform: none; } }
.an-pestana .sello.visto { animation-delay: .38s; }
/* medida, «No aplica 2x1» y tamaños: saltan */
.an-pop.visto { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) .2s both; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.sello-no.an-pop.visto { animation-name: pop-sello; }
@keyframes pop-sello { from { opacity: 0; transform: scale(1.8) rotate(-10deg); } 70% { opacity: 1; transform: scale(.95) rotate(-2deg); } to { opacity: 1; transform: rotate(-2deg); } }
.an-tamanos.visto { animation: none; }
.an-tamanos.visto .tam { animation: pop .4s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.15s + var(--i, 0) * 90ms); }
/* renglones de especialidades: entran desde la izquierda (el desfase lo pone app.js) */
.an-lado.visto { animation: de-lado .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes de-lado { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
/* manuscritas: se «escriben» de izquierda a derecha */
.an-escribe.visto { animation: escribir 1s cubic-bezier(.4, 0, .2, 1) .1s both; }
body.listo .bienvenidos { animation: escribir 1.1s cubic-bezier(.4, 0, .2, 1) .45s both; }
@keyframes escribir { from { clip-path: inset(-30% 100% -30% -10%); } to { clip-path: inset(-30% -10% -30% -10%); } }
/* titulares de sección: saltan un poco al aparecer */
.sec-titulo.rev { transform: scale(.82) translateY(8px); transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.sec-titulo.rev.visto { transform: none; }
/* Logotipo: «entrada armada» (elegida el 28/11/2026). Solo con movimiento; sin él, el logotipo se ve completo. */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .js .lp { opacity: 0; }
  body.listo .lp-circulo { animation: lp-aparecer .45s cubic-bezier(.3, .7, .3, 1.3) both; }
  body.listo .lp-arco { animation: lp-dibujar .7s .3s ease-out both;
    -webkit-mask: conic-gradient(from 200deg at var(--cx) var(--cy), #000 var(--giro), transparent 0);
    mask: conic-gradient(from 200deg at var(--cx) var(--cy), #000 var(--giro), transparent 0); }
  body.listo .lp-rebanada { animation: lp-caer .55s .75s cubic-bezier(.3, .7, .3, 1.3) both; }
  body.listo .lp-letra { animation: lp-subir .4s cubic-bezier(.3, .7, .3, 1.3) both; animation-delay: calc(.95s + var(--i) * 45ms); }
  body.listo .lp-dosx { animation: lp-sellar .45s cubic-bezier(.3, .7, .3, 1.5) both; animation-delay: calc(1.5s + var(--i) * 90ms); }
}
@keyframes lp-aparecer { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes lp-dibujar { from { opacity: 1; --giro: 0deg; } to { opacity: 1; --giro: 360deg; } }
@keyframes lp-caer { from { opacity: 0; transform: translateY(-60%) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes lp-subir { from { opacity: 0; transform: translateY(18%) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lp-sellar { from { opacity: 0; transform: scale(2.2) rotate(-12deg); } 70% { opacity: 1; transform: scale(.92); } to { opacity: 1; transform: none; } }
.portada-abajo { opacity: 0; transition: opacity .5s .25s; }
body.listo .portada-abajo { opacity: 1; }
/* sin JavaScript todo se ve (la clase .js la pone app.js) */
html:not(.js) .rev, html:not(.js) .sello, html:not(.js) .portada .logo-caja, html:not(.js) .portada-abajo { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .rev, .sello, .an, .portada .logo-caja, .portada-abajo { opacity: 1; transform: none; }
  .bienvenidos { clip-path: none; }
}
