/* Estilo inspirado en Contramar: foto grande, y el menú como listas limpias
   sobre bandas de un color fuerte. Colores y letras PROVISIONALES: cuando
   llegue el branding de "Pepe Andaluz" se cambian solo estas variables. */
:root {
  --fondo: #fbf8f2;
  --superficie: #ffffff;
  --texto: #1d1b18;
  --texto-suave: #6d675e;
  --linea: #e6e0d5;
  --banda: #2457a6;            /* color fuerte de las bandas del menú */
  --banda-texto: #ffffff;
  --banda-suave: rgba(255,255,255,.72);
  --banda-linea: rgba(255,255,255,.22);
  --acento: #1d1b18;           /* botones principales */
  --acento-texto: #ffffff;
  --exito: #1e7a4f;
  --error: #b42318;
  --radio: 14px;
  --letra: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --letra-titulos: var(--letra);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 16px/1.45 var(--letra);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
a { color: inherit; }
.contenedor { max-width: 760px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 64px; }
.banda { scroll-margin-top: 100px; }  /* deja ver el título bajo la barra y las categorías fijas */

/* Barra de arriba */
.barra-sup {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--fondo) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.logo { font: 700 20px/1 var(--letra-titulos); letter-spacing: -.01em; text-decoration: none; }
.btn-chico {
  text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--acento); color: var(--acento-texto);
  font-weight: 600; font-size: 14px;
}

/* Fotos pendientes: se ven como un cuadro con la etiqueta de qué foto va. */
.portada-foto, .pepe-foto { background: #e9e3d8 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.foto-pendiente { font-size: 13px; color: var(--texto-suave); border: 1px dashed #bdb5a6; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.6); }

/* Portada */
.portada-foto { aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; }
@media (min-width: 760px) { .portada-foto { aspect-ratio: 16 / 9; } }
.portada-texto { padding: 24px 20px 8px; max-width: 760px; margin: 0 auto; }
h1 { font: 700 clamp(30px, 7vw, 46px)/1.08 var(--letra-titulos); letter-spacing: -.02em; margin: 0 0 10px; }
.portada-texto p { margin: 0 0 18px; color: var(--texto-suave); font-size: 17px; }

/* Conoce a Pepe */
.pepe { max-width: 760px; margin: 0 auto; padding: 40px 20px; display: grid; gap: 20px; }
@media (min-width: 680px) { .pepe { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 32px; } }
.pepe-foto { aspect-ratio: 4 / 5; border-radius: var(--radio); }
.antetitulo { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--banda); }
.pepe h2 { font: 700 30px/1.1 var(--letra-titulos); letter-spacing: -.01em; margin: 6px 0 12px; }
.pepe-texto p:not(.antetitulo) { margin: 0 0 12px; font-size: 17px; }

/* Saltos a cada sección del menú (se quedan arriba al bajar) */
.saltos {
  position: sticky; top: 53px; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 20px; background: var(--banda); border-bottom: 1px solid var(--banda-linea);
}
.saltos::-webkit-scrollbar { display: none; }
.saltos a {
  flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--banda-texto); border: 1px solid var(--banda-linea);
}

/* Bandas del menú (estilo Contramar) */
.banda { background: var(--banda); color: var(--banda-texto); padding: 32px 0 12px; }
.banda + .banda { border-top: 1px solid var(--banda-linea); }
.banda h2 { font: 800 26px/1 var(--letra-titulos); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; }
.banda .nota { color: var(--banda-suave); }
.nota { color: var(--texto-suave); font-size: 14px; margin: 4px 0 12px; }

.lista { margin-top: 8px; }
.fila {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--banda-linea);
}
.fila:first-child { border-top: 0; }
.f-nombre { font-weight: 600; font-size: 17px; line-height: 1.3; }
.f-unidad { display: block; font-weight: 400; font-size: 13px; color: var(--banda-suave); }
.f-precio { font-weight: 600; font-size: 17px; white-space: nowrap; }
.fila .contador, .f-elegir { justify-self: end; }
.f-elegir {
  font: 600 14px/1 var(--letra); padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--banda-texto); color: var(--banda); border: 0;
}

/* Contador − n + */
.contador { display: inline-flex; align-items: center; gap: 4px; }
.contador button {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--linea);
  background: var(--superficie); color: var(--texto); font: 600 20px/1 var(--letra); cursor: pointer; touch-action: manipulation;
}
.contador output { min-width: 44px; text-align: center; font-weight: 700; font-size: 18px; }
.banda .contador button { width: 34px; height: 34px; font-size: 18px; background: transparent; color: var(--banda-texto); border-color: var(--banda-linea); }
.banda .contador output { min-width: 34px; font-size: 15px; }
.banda .contador:not(.activo) output, .banda .contador:not(.activo) [data-paso="-1"] { display: none; }
.banda .contador.activo button[data-paso="1"] { background: var(--banda-texto); color: var(--banda); }
.banda .contador:not(.activo) [data-paso="1"] { background: var(--banda-texto); color: var(--banda); border-color: transparent; }

/* Pie */
.pie { padding: 32px 20px 24px; }
.pie .logo { margin: 0 0 8px; }
.pie p { margin: 0 0 6px; }

/* Barra del carrito */
.barra-carrito {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 999px; background: var(--acento); color: var(--acento-texto);
  font: 600 16px/1 var(--letra); box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; z-index: 10;
}
.barra-carrito[hidden] { display: none; }
#barra-cuantos { opacity: .8; font-weight: 500; }

/* Botones */
.btn, .btn-sec {
  display: inline-block; text-align: center; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--letra); cursor: pointer; border: 1px solid var(--acento);
}
.btn { background: var(--acento); color: var(--acento-texto); }
.btn-sec { background: transparent; color: var(--texto); border-color: var(--linea); }

/* Hojas (diálogos) */
dialog.hoja {
  border: 0; padding: 0; width: 100%; max-width: min(560px, 100vw); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--superficie); color: var(--texto);
}
@media (min-width: 640px) { dialog.hoja { margin: auto; border-radius: 20px; } }
dialog.hoja::backdrop { background: rgba(0,0,0,.45); }
.hoja-cuerpo { padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.hoja-cuerpo h3 { margin: 0; font: 700 20px/1.2 var(--letra-titulos); }
.hoja-cuerpo .nota { margin: -8px 0 0; }
.hoja-pie { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--superficie); padding-top: 6px; }
.hoja-pie .btn, .hoja-pie .btn-sec { flex: 1; }
.hoja-pie .btn { flex: 1.6; }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; border: 0; margin: 0; padding: 0; }
.campo legend { padding: 0; margin-bottom: 6px; }
.campo input, .campo textarea {
  font: 16px var(--letra); padding: 12px; border-radius: 10px; border: 1px solid var(--linea);
  background: var(--fondo); color: var(--texto); width: 100%;
}
.ayuda { font-weight: 400; color: var(--texto-suave); font-size: 14px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 8px 0; }
.opcion input { width: 20px; height: 20px; accent-color: var(--acento); }
.opcion small { color: var(--texto-suave); margin-left: auto; }
.extras { display: flex; flex-direction: column; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Resumen del pedido */
.pedido-lista { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linea); border-radius: var(--radio); }
.pedido-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--linea); font-size: 15px; }
.pedido-lista li:first-child { border-top: 0; }
.p-der { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.quitar { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--texto-suave); cursor: pointer; padding: 2px 6px; }
.total { margin: 0; text-align: right; font-size: 17px; }
.error { color: var(--error); background: #fdecea; padding: 10px 12px; border-radius: 10px; margin: 0; font-size: 15px; }

/* ¿Para cuántas personas? (paellas) */
.personas {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--radio);
  background: rgba(255,255,255,.12); border: 1px solid var(--banda-linea);
}
.personas-pregunta { font-weight: 700; font-size: 17px; }
.personas-kg { grid-column: 1 / -1; font-size: 13px; color: var(--banda-suave); }
.banda .contador.grande button { width: 40px; height: 40px; font-size: 20px; background: var(--banda-texto); color: var(--banda); border: 0; }
.banda .contador.grande output { min-width: 40px; font-size: 22px; font-weight: 800; }
.banda .contador.grande output { display: inline-block; text-align: center; }
.banda .contador.grande [data-paso="-1"] { display: inline-block; }

.portada-foto { background-position: center 30%; }
.pepe-foto { background-position: center top; }

/* El nombre se puede tocar para ver la foto */
.f-ver { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; font-weight: 600; font-size: 17px; text-align: left; cursor: pointer; line-height: 1.3; }
.f-cam { width: 15px; height: 15px; vertical-align: -2px; margin-left: 6px; opacity: .75; }

/* Hoja con foto grande */
.hoja-foto { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px 20px 0 0; }
@media (min-width: 640px) { .hoja-foto { aspect-ratio: 16 / 10; } }
.hoja-foto[hidden] { display: none; }
.pl-pie { display: flex; align-items: center; gap: 12px; }
.pl-pie .btn { flex: 1; }

/* Foto chiquita a la izquierda del renglón; tocarla abre la foto grande */
.fila.con-foto { grid-template-columns: 56px 1fr auto auto; }
.f-foto-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.f-foto { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }

.nap { font-style: normal; line-height: 1.6; margin: 0 0 10px; }
.nap a { text-decoration: underline; }

/* Secciones de navegación arriba (en el cel se deslizan de lado) */
.barra-sup { gap: 12px; }
.nav-sup { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.nav-sup::-webkit-scrollbar { display: none; }
.nav-sup a { flex: none; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--texto-suave); }
@media (max-width: 520px) { .nav-sup { display: none; } }
.portada-botones { display: flex; gap: 10px; flex-wrap: wrap; }

/* Pedidos y entregas + preguntas */
.info { padding: 40px 20px 8px; }
.info h2 { font: 700 28px/1.15 var(--letra-titulos); margin: 6px 0 14px; letter-spacing: -.01em; }
.info h2.mt { margin-top: 32px; }
.pasos { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; }
.dos-col { display: grid; gap: 12px; }
@media (min-width: 640px) { .dos-col { grid-template-columns: 1fr 1fr; } }
.tarjeta-info { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; }
.tarjeta-info h3 { margin: 0 0 6px; font-size: 17px; }
.tarjeta-info p { margin: 0; color: var(--texto-suave); }
.faq details { border-top: 1px solid var(--linea); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--texto-suave); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--texto-suave); }

/* Cuadrito en lugar de la foto mientras llega: así todos los nombres quedan alineados */
.f-foto-vacia { background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.28); box-sizing: border-box; }

/* ===================== BRANDING "PEPE ANDALUZ" =====================
   Paleta sacada del tablero de marca: crema, azul, rojo, verde y dorado.
   (Va al final para ganarle a los colores provisionales de arriba.) */
:root {
  --crema: #F4F1EA;
  --azul: #1A4B76;
  --rojo: #8B2121;
  --verde: #3B5E3D;
  --dorado: #BB9E38;
  --fondo: var(--crema);
  --superficie: #FBF9F4;
  --texto: #1F2A36;
  --texto-suave: #5E6670;
  --linea: #E2DCCF;
  --banda: var(--azul);
  --banda-texto: var(--crema);
  --banda-suave: rgba(244,241,234,.74);
  --banda-linea: rgba(244,241,234,.2);
  --acento: var(--rojo);
  --acento-texto: var(--crema);
  --exito: var(--verde);
  --letra-titulos: "Bellefair", Georgia, serif;
  --letra-etiqueta: "Josefin Sans", -apple-system, sans-serif;
}
.barra-sup { background: color-mix(in srgb, var(--crema) 94%, transparent); }
.logo img { display: block; height: 40px; width: auto; }
.pie .logo img { height: 64px; }
.lema, .antetitulo, .saltos a, .nav-sup a, .personas-kg {
  font-family: var(--letra-etiqueta); letter-spacing: .14em; text-transform: uppercase;
}
.lema { margin: 0 0 12px; font-size: 12px; color: var(--dorado); font-weight: 600; }
.antetitulo { color: var(--dorado) !important; font-size: 12px; }
.nav-sup a { font-size: 12px; letter-spacing: .1em; }
h1, h2, .pepe h2, .info h2, .banda h2 { font-family: var(--letra-titulos); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 8vw, 54px); line-height: 1.05; color: var(--azul); }
.pepe h2, .info h2 { font-size: 34px; color: var(--azul); }
.banda h2 { font-size: 34px; letter-spacing: .06em; color: var(--crema); }
/* Entre banda y banda, una línea dorada fina, como el lockup de la marca */
.banda + .banda { border-top: 1px solid rgba(187,158,56,.45); }
.saltos a { font-size: 11px; }
.f-elegir, .banda .contador.grande button, .banda .contador:not(.activo) [data-paso="1"], .banda .contador.activo button[data-paso="1"] {
  background: var(--crema); color: var(--azul);
}
.personas { background: rgba(244,241,234,.08); border-color: rgba(187,158,56,.5); }
.btn-chico, .btn, .barra-carrito { background: var(--rojo); color: var(--crema); border-color: var(--rojo); }
.btn-sec { border-color: var(--azul); color: var(--azul); }
.faq summary::after { color: var(--rojo); }
.tarjeta-info h3 { color: var(--azul); }
.contador.chico.activo output, .banda .contador output { color: var(--crema); }

/* Logo de arriba: escondido mientras se ve la portada; aparece al bajar. */
.logo-sup { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.paso-portada .logo-sup { opacity: 1; transform: none; pointer-events: auto; }

/* Portada: foto o video, con el logo encima que se "escribe" de izquierda a derecha. */
.portada-foto { position: relative; overflow: hidden; }
.portada-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,45,.05) 40%, rgba(20,30,45,.35)); pointer-events: none; }
.portada-logo {
  position: absolute; z-index: 1; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: min(62vw, 340px); height: auto;
  /* Halo crema para que el azul se lea encima de la paella */
  filter: drop-shadow(0 0 1.5px #F4F1EA) drop-shadow(0 0 2px #F4F1EA) drop-shadow(0 2px 14px rgba(244,241,234,.85));
  clip-path: inset(0 100% 0 0);
  animation: logo-escribe 1.8s cubic-bezier(.65,.05,.36,1) .4s forwards;
}
@keyframes logo-escribe { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .portada-logo { animation: none; clip-path: none; } }

/* Aclaración de que las personas son solo para paella */
.personas-aviso { grid-column: 1 / -1; font-size: 12px; color: var(--banda-suave); line-height: 1.4; }
.personas-kg { text-transform: none; letter-spacing: .02em; font-family: var(--letra); }

/* Texto solo para Google y lectores de pantalla */
.solo-lector { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* El logo de arriba se ve siempre (ya no hay logo sobre la foto). */
.logo-sup { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.portada-texto { padding: 20px 20px 4px; }
/* Pie: solo botones */
.pie-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.btn-pie { text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--azul); color: var(--azul); font-weight: 600; font-size: 14px; }

/* Los extras en la hoja de la paella son opcionales: se nota en el título */
#paella-extras .opcion { padding: 6px 0; }

/* La portada ya no lleva texto visible: sin espacio vacío bajo el video */
.portada-texto { padding: 0; }

/* ===================== TIPOGRAFÍA DE LA MARCA =====================
   Calvoire para los títulos y lo que los acompaña (subtítulos, etiquetas,
   nombres de sección); Jost para todo el texto de cuerpo. */
@font-face {
  font-family: "Calvoire";
  src: url("fonts/Calvoire-BoldExtra.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
:root {
  --letra: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --letra-titulos: "Calvoire", Georgia, serif;
  --letra-etiqueta: "Calvoire", Georgia, serif;
}
body, button, input, textarea { font-family: var(--letra); }
h1, h2, h3, .banda h2, .pepe h2, .info h2, .tarjeta-info h3, .hoja-cuerpo h3 {
  font-family: var(--letra-titulos); font-weight: 800; letter-spacing: .01em;
}
.banda h2 { text-transform: none; font-size: 40px; letter-spacing: .02em; }
.pepe h2, .info h2 { font-size: 36px; }
.tarjeta-info h3, .hoja-cuerpo h3 { font-size: 22px; }
/* Lo que sigue de los títulos: etiquetas y nombres de sección */
.antetitulo, .saltos a, .nav-sup a, .personas-pregunta, .faq summary {
  font-family: var(--letra-etiqueta); font-weight: 800; text-transform: none; letter-spacing: .03em;
}
.antetitulo { font-size: 16px; }
.saltos a { font-size: 15px; }
.nav-sup a { font-size: 15px; }
.personas-pregunta { font-size: 20px; }
.faq summary { font-size: 18px; }

/* ===================== LETRAS ELEGIDAS: Instrument (opción J) =====================
   Elegidas por Carlos el 18 nov 2026 entre 10 combinaciones:
   Instrument Serif para títulos y etiquetas; Instrument Sans para el texto.
   Instrument Serif solo tiene un grosor (400): los títulos van grandes y
   finos, no en negritas. */
:root {
  --letra: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --letra-titulos: "Instrument Serif", Georgia, serif;
  --letra-etiqueta: "Instrument Serif", Georgia, serif;
}
h1, h2, h3, .banda h2, .pepe h2, .info h2, .tarjeta-info h3, .hoja-cuerpo h3, .resenas h2 { font-weight: 400; letter-spacing: -.01em; }
.banda h2 { font-size: 48px; letter-spacing: -.01em; line-height: 1; }
.pepe h2, .info h2, .resenas h2 { font-size: 42px; line-height: 1.05; }
.tarjeta-info h3, .hoja-cuerpo h3 { font-size: 30px; line-height: 1.1; }
.antetitulo, .saltos a, .nav-sup a, .personas-pregunta, .faq summary { font-weight: 400; letter-spacing: 0; }
.antetitulo { font-size: 19px; }
.saltos a, .nav-sup a { font-size: 17px; }
.personas-pregunta { font-size: 21px; }
.faq summary { font-size: 20px; }

/* ===================== ANIMACIONES =====================
   Al estilo shadcn/ui + Magic UI. Solo corren si el aparato no pidió
   "reducir movimiento" (la clase .con-animacion la pone animaciones.js). */

/* Aparecer al bajar, con desenfoque y uno tras otro */
.con-animacion [data-revelar] {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}
.con-animacion [data-revelar].visto { opacity: 1; transform: none; filter: none; }

/* Portada: el video entra con un fundido y un acercamiento lento */
.con-animacion .portada-video { animation: portada-entra 1.2s ease-out both, portada-acerca 18s ease-in-out 1.2s infinite alternate; }
@keyframes portada-entra { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes portada-acerca { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Barra de arriba: se compacta y gana sombra al bajar */
.barra-sup { transition: padding .25s ease, box-shadow .25s ease, background-color .25s ease; }
.barra-sup.compacta { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; box-shadow: 0 6px 20px rgba(26,75,118,.10); }
.logo img { transition: height .25s ease; }
.barra-sup.compacta .logo img { height: 32px; }

/* Píldora de la sección donde estás */
.saltos a { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.saltos a.activo { background: var(--crema); color: var(--azul); border-color: var(--crema); }

/* Botones: se hunden al tocarlos y suben un poco al pasar el mouse */
.btn, .btn-sec, .btn-chico, .btn-pie, .f-elegir, .contador button, .barra-carrito, .f-foto-btn {
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover, .btn-chico:hover, .f-elegir:hover, .btn-pie:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
  .f-foto-btn:hover .f-foto { transform: scale(1.06); }
}
.btn:active, .btn-sec:active, .btn-chico:active, .btn-pie:active, .f-elegir:active, .contador button:active, .barra-carrito:active { transform: scale(.95); }
.f-foto { transition: transform .3s ease, opacity .4s ease; }

/* Fotos: aparecen suave al cargar en lugar de "pintarse" a pedazos */
.con-animacion img.f-foto:not(.cargada), .con-animacion .hoja-foto:not(.cargada) { opacity: 0; }

/* Hojas: suben desde abajo con el fondo oscureciéndose (shadcn Drawer) */
.con-animacion dialog.hoja[open] { animation: hoja-sube .55s cubic-bezier(.22,1,.36,1) backwards; }
.con-animacion dialog.hoja[open]::backdrop { animation: fondo-aparece .45s ease both; }
.con-animacion dialog.hoja.cerrando { animation: hoja-baja .3s cubic-bezier(.4,0,.8,.4) both; }
.con-animacion dialog.hoja.cerrando::backdrop { animation: fondo-desaparece .3s ease-in both; }
@keyframes hoja-sube { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hoja-baja { from { transform: none; } to { transform: translateY(100%); } }
@media (min-width: 640px) {
  @keyframes hoja-sube { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes hoja-baja { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scale(.98); } }
}
@keyframes fondo-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes fondo-desaparece { from { opacity: 1; } to { opacity: 0; } }

/* Preguntas: el cuerpo se despliega (lo anima animaciones.js) */
.faq details p { overflow: hidden; }
.faq summary::after { transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* Barra del pedido: entra desde abajo y salta al agregar algo */
.con-animacion .barra-carrito:not([hidden]) { animation: barra-entra .4s cubic-bezier(.2,.9,.25,1) both; }
.con-animacion .barra-carrito.salta { animation: barra-salta .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes barra-entra { from { transform: translateY(140%); } to { transform: none; } }
@keyframes barra-salta { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Números de los contadores: "pop" al cambiar */
.con-animacion output.pop { animation: numero-pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes numero-pop { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Precios con números parejos para que no "bailen" mientras cuentan */
.f-precio, #barra-total, .personas output { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Siempre en claro, aunque el teléfono esté en modo oscuro */
:root { color-scheme: light only; }
dialog.hoja { background-color: #FBF9F4 !important; color: #1F2A36 !important; color-scheme: light only; overscroll-behavior: contain; }
dialog.hoja input[type="checkbox"], dialog.hoja input[type="radio"] { background-color: #fff; color-scheme: light; }

/* Rayita para jalar la hoja hacia abajo y cerrarla */
.agarradera { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 999px; background: rgba(31,42,54,.25); z-index: 2; }
dialog.hoja:has(.hoja-foto:not([hidden])) .agarradera { background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
@media (min-width: 640px) { .agarradera { display: none; } }

/* Video de portada: sin botón de play ni controles encima, nunca. */
.portada-video { pointer-events: none; }
.portada-video::-webkit-media-controls,
.portada-video::-webkit-media-controls-start-playback-button,
.portada-video::-webkit-media-controls-panel,
.portada-video::-webkit-media-controls-play-button { display: none !important; -webkit-appearance: none; opacity: 0; }

/* "hidden" siempre esconde (antes .campo con display:flex le ganaba y la
   dirección salía aunque eligieran "Paso a recogerlo"). */
[hidden] { display: none !important; }

/* Nada se sale a los lados: ni la página ni las hojas se mueven de lado */
/* Nada se sale de lado SIN romper las barras fijas: "clip" no convierte la
   página en una caja con scroll propio (con "hidden" en body, la barra de
   arriba y la de categorías dejaban de quedarse fijas). */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
html, body { max-width: 100%; }
dialog.hoja { overflow-x: hidden; }
.hoja-cuerpo, .hoja-cuerpo * { min-width: 0; }
.dos > * { min-width: 0; }
/* Fecha y hora: en el iPhone son más anchas y empujaban todo */
.campo input, .campo textarea { max-width: 100%; box-sizing: border-box; }
.campo input[type="date"], .campo input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 46px; text-align: left; line-height: 1.2;
}
.campo input::-webkit-date-and-time-value { text-align: left; }
/* Botones de abajo en un renglón, sin partirse en dos líneas */
.hoja-pie .btn, .hoja-pie .btn-sec { white-space: nowrap; font-size: 15px; padding: 14px 12px; }
.campo-grupo { display: flex; flex-direction: column; gap: 14px; }
.btn-ubicacion { width: 100%; text-align: center; font-weight: 600; }

/* Descripción del platillo en su hoja */
.hoja-desc { margin: -4px 0 0; font-size: 16px; line-height: 1.5; color: #3d4652; }

/* ---------- Pie de página (rediseño 2026-11-15) ----------
   Un botón grande para lo principal (WhatsApp), dos medianos lado a lado
   y las redes como íconos redondos. */
.pie { text-align: center; }
.pie-titulo { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; color: var(--azul); margin: 0 0 14px !important; }
.ico { width: 20px; height: 20px; flex: none; }
.pie-principal, .pie-sec {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 600; border-radius: 14px; min-height: 52px;
}
.pie-principal { background: var(--verde); color: var(--crema); font-size: 17px; max-width: 420px; margin: 0 auto 10px; }
.pie-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto 20px; }
.pie-sec { border: 1.5px solid var(--azul); color: var(--azul); background: transparent; font-size: 15px; }
.pie-redes { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.pie-red {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--azul); color: var(--crema); text-decoration: none;
}
.pie-red .ico { width: 22px; height: 22px; }
.pie-legal { font-size: 13px; color: var(--texto-suave); margin: 0 0 4px !important; }
.pie-legal a { color: inherit; }
.pie-principal, .pie-sec, .pie-red { transition: transform .15s ease, box-shadow .15s ease; }
.pie-principal:active, .pie-sec:active, .pie-red:active { transform: scale(.96); }

/* Casilla de promociones y aviso antes de enviar */
.check-promo { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 0; cursor: pointer; }
.check-promo input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--azul); }
.legal-envio { font-size: 13px; }
.legal-envio a { color: var(--azul); }

/* Páginas legales */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 20px 48px; }
.legal h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--azul); font-size: 38px; line-height: 1.15; margin: 8px 0 4px; }
.legal h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--azul); font-size: 26px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal .volver { display: inline-block; margin-bottom: 8px; color: var(--azul); font-weight: 600; text-decoration: none; }

/* ---------- Logo (SVG, 2026-11-15): azul sobre crema ---------- */
.logo-svg { display: block; height: 40px; width: auto; color: var(--azul); transition: height .25s ease; }
.barra-sup.compacta .logo-svg { height: 34px; }
/* Mientras se ve el video, el logo de arriba se esconde (ya está en el video). */
.logo-sup { opacity: 0 !important; transform: translateY(-6px) !important; pointer-events: none !important; transition: opacity .35s ease, transform .35s ease; }
.paso-portada .logo-sup { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

/* Logo sobre el video: se escribe de izquierda a derecha */
.portada-firma {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(68vw, 380px); color: var(--azul); pointer-events: none;
  /* Halo crema para que el azul se lea encima de la paella */
  filter: drop-shadow(0 0 2px #F4F1EA) drop-shadow(0 0 3px #F4F1EA) drop-shadow(0 2px 18px rgba(244,241,234,.9));
}
.firma-palabra {
  position: absolute; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
          mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.firma-pepe { animation: firma-escribe 1.1s cubic-bezier(.45,.05,.4,1) .5s forwards; }
.firma-andaluz { animation: firma-escribe 1.5s cubic-bezier(.45,.05,.4,1) 1.5s forwards; }
@keyframes firma-escribe { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .firma-palabra { animation: none; -webkit-mask-image: none; mask-image: none; }
}

/* Categorías pegadas a la barra de arriba, sin hueco (el alto lo mide animaciones.js).
   El -1px las encima un pelito para que nunca se asome una rayita de texto. */
.saltos { top: calc(var(--alto-barra, 53px) - 1px) !important; }
.barra-sup { background: var(--crema) !important; }

/* ---------- Logo pintado a pincel sobre el video (sin halo) ---------- */
.portada-firma {
  filter: none !important; color: var(--crema) !important;
  width: min(72vw, 400px) !important; aspect-ratio: 2111 / 1456;
}
.portada-firma svg { display: block; width: 100%; height: 100%; }
/* El video se oscurece apenas en el centro para que el logo crema se lea */
.portada-foto::after {
  background:
    radial-gradient(ellipse 70% 45% at 50% 50%, rgba(20,30,45,.38), rgba(20,30,45,0) 75%),
    linear-gradient(180deg, rgba(20,30,45,.05) 40%, rgba(20,30,45,.30)) !important;
}

/* Al terminar el pincel aparece el logo completo encima: nunca falta una puntita */
.firma-completa { opacity: 0; transition: opacity .45s ease; }
.firma-lista .firma-completa { opacity: 1; }
/* Más centrado a la vista: el logo carga peso a la derecha ("Pepe" va
   corrido), así que se recorre un poco a la izquierda y es algo más chico. */
.portada-firma { width: min(64vw, 350px) !important; transform: translate(-54%, -50%) !important; }

/* Logo de arriba visible siempre (mientras no hay logo sobre el video) */
.logo-sup, .paso-portada .logo-sup { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

/* =====================================================================
   iPhone Duo (plegable) y pantallas grandes — 2026-11-16
   Cerrado (~382–466 px de ancho) usa el diseño de celular de siempre.
   Abierto (~626 vertical / ~890–951 horizontal) aprovecha el espacio.
   ===================================================================== */

/* Abierto: el menú en dos columnas, un poco más ancho */
@media (min-width: 820px) {
  .banda .contenedor { max-width: 980px; }
  .lista[data-cat], #lista-paellas {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px;
  }
  .lista[data-cat] > .fila:nth-child(-n+2), #lista-paellas > .fila:nth-child(-n+2) { border-top: 0; }
  .personas { max-width: 640px; }
}

/* Abierto en horizontal (pantalla ancha y bajita): más menú a la vista */
@media (min-width: 820px) and (max-height: 760px) {
  .portada-foto { max-height: 58vh; max-height: 58dvh; }
  .barra-sup { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .saltos { padding-top: 6px; padding-bottom: 6px; }
  .banda { padding-top: 22px; }
}

/* Abierto en horizontal: la ventana de un platillo con foto va en dos
   columnas (foto a la izquierda, opciones a la derecha). */
@media (min-width: 820px) and (orientation: landscape) {
  dialog.hoja[open]:has(.hoja-foto:not([hidden])) {
    max-width: min(880px, 94vw); display: grid; grid-template-columns: 1fr 1fr;
    overflow: hidden; max-height: 88dvh;
  }
  dialog.hoja[open]:has(.hoja-foto:not([hidden])) .hoja-foto-marco {
    height: 100%; aspect-ratio: auto; border-radius: 20px 0 0 20px; min-height: 0; max-height: none;
  }
  dialog.hoja[open] .hoja-foto-marco .hoja-foto.completa { object-fit: cover; }
  /* La foto no decide el alto de la ventana (una vertical la estiraba más
     que la pantalla y se cortaba abajo): toma el alto de la columna de la
     derecha, con un mínimo para que nunca quede chiquita. */
  dialog.hoja[open]:has(.hoja-foto:not([hidden])) .hoja-foto-marco { min-height: min(420px, 70dvh); }
  dialog.hoja[open] .hoja-foto-marco .hoja-foto { position: absolute; inset: 0; }
  dialog.hoja[open]:has(.hoja-foto:not([hidden])) .hoja-cuerpo {
    overflow-y: auto; max-height: 88dvh; padding-top: 24px; padding-bottom: 0;
  }
  /* Los botones de abajo tapan bien lo que pasa por detrás */
  dialog.hoja[open]:has(.hoja-foto:not([hidden])) .hoja-pie { padding-bottom: 16px; }
  /* El pedido (sin foto) un poco más ancho para que quepan los campos */
  #dlg-pedido[open] { max-width: min(680px, 94vw); }
}

/* Marco fijo de la foto en la hoja: no cambia de alto aunque la foto de otro
   tamaño de paellera sea vertical u horizontal. */
.hoja-foto-marco { position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 20px 20px 0 0; background: #3a1f17; isolation: isolate; }
@media (min-width: 640px) { .hoja-foto-marco { aspect-ratio: 16 / 10; } }
.hoja-foto-marco:has(.hoja-foto[hidden]) { display: none; }
.hoja-foto-marco::before { content: ""; position: absolute; inset: -40px; z-index: -1;
  background: var(--fondo) center / cover; filter: blur(18px) brightness(.85) saturate(1.1); }
.hoja-foto-marco .hoja-foto { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.hoja-foto-marco .hoja-foto.completa { object-fit: contain; }
/* Paella con todas sus fotos verticales (celular o pantalla parada): marco alto */
@media (max-width: 819px), (orientation: portrait) {
  /* Ancho completo siempre: con aspect-ratio + max-height, en celulares
     anchos el marco se angostaba y quedaba un hueco a la derecha. Ahora el
     alto es el de 3:4 pero sin pasar de 62% de la pantalla, y la foto llena. */
  .hoja-foto-marco.vertical { aspect-ratio: auto; width: 100%; height: min(133.33vw, 62dvh); }
}

/* Con una ventana abierta (platillo, paella o pedido) la página de atrás NO
   se desliza: antes, en el iPhone (y en el Duo abierto), al deslizar sobre la
   ventana se movía el menú de atrás y al cerrar ya no estabas donde estabas.
   Solo se desliza lo de adentro de la ventana. */
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden !important; }
dialog.hoja, dialog.hoja .hoja-cuerpo { overscroll-behavior: contain; }
dialog.hoja::backdrop { touch-action: none; }

/* ---------- Reseñas de Google (carrusel que corre solo) ---------- */
.resenas { padding: 44px 0 36px; overflow: hidden; }
.resenas-cab { text-align: center; margin-bottom: 20px; }
.resenas h2 { font-family: var(--letra-titulos); font-weight: 400; font-size: 42px; color: var(--azul); margin: 0 0 8px; }
.resenas-nota { display: inline-flex; align-items: center; gap: 8px; color: var(--texto); text-decoration: none; font-size: 16px; }
.resenas-nota strong { font-size: 20px; }
.resenas .estrellas { color: var(--dorado); letter-spacing: 2px; }
.carrusel { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel-pista { display: flex; width: max-content; }
.carrusel-grupo { display: flex; gap: 16px; padding-right: 16px; }
.resena { flex: none; width: min(300px, 78vw); margin: 0; padding: 18px 18px 16px; background: var(--superficie);
  border: 1px solid var(--linea); border-radius: var(--radio); display: flex; flex-direction: column; }
.resena blockquote { margin: 10px 0 14px; font-size: 16px; line-height: 1.45; flex: 1; }
.resena figcaption { font-size: 14px; font-weight: 600; color: var(--texto-suave); }
.resenas-pie { text-align: center; margin: 18px 0 0; }
.resenas-pie a { color: var(--azul); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .carrusel { -webkit-mask-image: none; mask-image: none; }
  .carrusel-pista { padding: 0 16px; }
}
.carrusel .resena { -webkit-user-select: none; user-select: none; }

/* Aviso de fotos ilustrativas y de en qué se entrega cada tamaño */
.nota-paellas { margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: var(--banda-suave); text-align: center; }
.hoja-foto-marco::after { content: "Foto ilustrativa"; position: absolute; right: 12px; bottom: 12px; z-index: 1;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; pointer-events: none; }

/* ---------- Extras de la paella: plegables y en botones chicos ---------- */
.extras-plegable { margin: 16px 0 4px; border: 1px solid #E2DCCF; border-radius: 14px; background: #fff; }
.extras-plegable summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; }
.extras-plegable summary::-webkit-details-marker { display: none; }
.extras-titulo small { font-weight: 400; color: #5E6670; }
.extras-resumen { margin-left: auto; font-size: 14px; font-weight: 600; color: #1A4B76; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extras-flecha { width: 20px; height: 20px; flex: none; color: #5E6670; transition: transform .2s ease; }
.extras-resumen:empty + .extras-flecha { margin-left: auto; }
.extras-plegable[open] .extras-flecha { transform: rotate(180deg); }
.extras-ayuda { margin: -4px 16px 12px; font-size: 13px; color: #5E6670; }
.extras-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.chip-extra { position: relative; cursor: pointer; }
.chip-extra input { position: absolute; opacity: 0; pointer-events: none; }
.chip-extra span { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid #E2DCCF; border-radius: 999px;
  font-size: 14px; background: #FBF9F4; color: #1F2A36; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chip-extra small { color: #5E6670; font-size: 12px; }
.chip-extra input:checked + span { background: #1A4B76; border-color: #1A4B76; color: #fff; }
.chip-extra input:checked + span small { color: rgba(255,255,255,.8); }
.chip-extra input:focus-visible + span { outline: 2px solid #1A4B76; outline-offset: 2px; }

/* Extras en lista (como Uber Eats / Rappi): un renglón por extra, línea fina,
   nombre a la izquierda; precio y casilla a la derecha. Todo el renglón se toca. */
.extras-lista { padding: 0 16px 4px; }
.fila-extra { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid #EEE9DF; cursor: pointer; }
.fila-extra-nombre { flex: 1; font-size: 15px; color: #1F2A36; }
.fila-extra-precio { font-size: 14px; color: #5E6670; white-space: nowrap; }
.fila-extra input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #1A4B76; }
.fila-extra:has(input:checked) .fila-extra-nombre { font-weight: 600; }
.fila-extra:has(input:checked) .fila-extra-precio { color: #1A4B76; }

/* Marca de "ya está en tu pedido" en cada paella del menú */
.f-en-pedido { display: block; width: fit-content; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; background: rgba(255,255,255,.18); color: #fff; }
.f-en-pedido[hidden] { display: none; }

/* Interruptor invisible encima de los botones (vibración en iPhone) */
.toque-haptico { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 2; }

/* ---------- Pantalla de inicio (mientras carga) ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: #1b1410 url(img/intro.jpg?v=2) center / cover no-repeat; transition: opacity .6s ease, visibility .6s ease;
  animation: intro-se-va .8s ease 6s forwards; } /* solo si no hay JavaScript */
.intro.fuera { animation: none; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(20,14,10,.35), rgba(20,14,10,.62)); }
.intro-logo { position: relative; width: min(64vw, 340px); height: auto; color: #F4F1EA; translate: -6% 0; /* un poco a la izquierda (gusto de Carlos) */ filter: drop-shadow(0 2px 18px rgba(0,0,0,.45));
  animation: intro-logo 1s cubic-bezier(.2,.8,.2,1) both; }
.intro.fuera { opacity: 0; visibility: hidden; }
@keyframes intro-logo { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes intro-se-va { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro-logo { animation: none; } .intro { transition: none; } }

/* Salida suave de la pantalla de inicio: primero el logo sube y se desvanece,
   y luego la foto se aclara poco a poco mientras se agranda un poquito,
   dejando ver la página. */
.intro { transition: opacity 1.1s cubic-bezier(.4,0,.2,1) .25s, transform 1.4s cubic-bezier(.2,.7,.2,1) .1s, visibility 0s linear 1.4s; }
.intro .intro-logo { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.intro.fuera { opacity: 0; visibility: hidden; transform: scale(1.06); }
.intro.fuera .intro-logo { animation: intro-logo-sale .55s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes intro-logo-sale { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .intro, .intro .intro-logo { transition: opacity .4s ease, visibility 0s linear .4s; } .intro.fuera { transform: none; } }

/* Insignia de "ya está en tu pedido" sobre la foto de la paella */
.f-foto-btn, .f-foto-vacia { position: relative; }
.f-insignia { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--rojo, #8B2121); color: #fff; font: 700 12px/1 var(--letra);
  box-shadow: 0 0 0 2px var(--banda, #1A4B76); pointer-events: none; }
.f-insignia[hidden] { display: none; }
.con-animacion .f-insignia:not([hidden]) { animation: insignia-entra .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes insignia-entra { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* El medio kilo se pide solo uno: su hoja va sin − y + */
.contador[hidden] { display: none; }

/* ===================== Menú en crema con tarjetas (opción G) =====================
   Elegida por Carlos el 18 nov 2026: toda la página de un solo fondo crema
   (sin el bloque azul del menú) y cada platillo en una tarjeta blanca. */
#menu { --banda: var(--crema); --banda-texto: var(--azul); --banda-suave: #6B7280; --banda-linea: #E2DCCF; }
.banda { color: var(--texto); }
.banda h2 { color: var(--azul); }
.banda + .banda { border-top-color: var(--linea); }
.f-precio { color: var(--azul); }
.f-elegir, .banda .contador.grande button, .banda .contador:not(.activo) [data-paso="1"], .banda .contador.activo button[data-paso="1"] { background: var(--azul); color: var(--crema); }
.banda .contador output, .contador.chico.activo output { color: var(--azul); }
.saltos { background: color-mix(in srgb, var(--crema) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.saltos a.activo { background: var(--azul); color: var(--crema); border-color: var(--azul); }
.lista { display: grid; gap: 10px; }
.fila { background: #fff; border: 0; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(31,42,54,.06), 0 6px 18px rgba(31,42,54,.06); }
.personas { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(31,42,54,.06), 0 6px 18px rgba(31,42,54,.06); }

/* Pedido enviado (llega directo a la app) */
.btn-pedido-whatsapp { width: 100%; margin-top: 8px; }
.btn-pedido-whatsapp[hidden], .pedido-listo[hidden], #form-pedido[hidden] { display: none; }
.pedido-listo { text-align: center; padding-top: 32px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.listo-icono { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde, #3B5E3D); color: #fff; font: 700 32px/1 var(--letra); }
.con-animacion .pedido-listo:not([hidden]) .listo-icono { animation: insignia-entra .5s cubic-bezier(.2,.9,.3,1.4); }
.pedido-listo h3 { margin: 0 0 8px; }
.listo-texto { margin: 0 auto 16px; max-width: 320px; color: var(--texto); }
.listo-resumen { margin: 0; color: var(--texto-suave); font-size: 15px; }
.listo-resumen::first-letter { text-transform: uppercase; }
.listo-total { margin: 4px 0 24px; font-size: 17px; }
.pedido-listo .btn { width: 100%; }

/* ---------- Ajustes del 19 nov 2026 (sugerencias de un amigo de Carlos) ---------- */
/* Botón "Pedir" de arriba más grande (que se sienta como EL botón para pedir)
   y del mismo alto que el logo, para que los dos queden centrados en la misma línea. */
.barra-sup { align-items: center; }
.logo-sup { display: flex; align-items: center; }
.barra-sup .btn-chico {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px;
  font-size: 17px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 14px rgba(139,33,33,.28);
  transition: height .25s ease, transform .2s ease, box-shadow .2s ease;
}
.barra-sup .logo-svg { height: 44px; }
.barra-sup.compacta .logo-svg { height: 38px; }
.barra-sup.compacta .btn-chico { height: 38px; }
@media (hover: hover) { .barra-sup .btn-chico:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(139,33,33,.34); } }

/* Flechita en el video de portada: invita a deslizar hacia abajo. */
.portada-bajar {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 48px; height: 48px; margin-left: -24px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none;
  background: rgba(20,30,45,.35); border: 1.5px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bajar-rebota 1.8s ease-in-out infinite;
}
.portada-bajar svg { width: 26px; height: 26px; }
@keyframes bajar-rebota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .portada-bajar { animation: none; } }

/* "Nuestro menú" antes de las secciones, para que se entienda qué es. */
.menu-titulo { text-align: center; padding: 40px 20px 8px; }
.menu-titulo h2 { margin: 0; font-family: var(--letra-titulos); font-weight: 400; font-size: 48px; line-height: 1; color: var(--azul); letter-spacing: -.01em; }
.menu-titulo h2::after { content: ""; display: block; width: 56px; height: 2px; margin: 14px auto 0; background: var(--dorado); border-radius: 2px; }

/* Puntito separador centrado (el "·" de la letra quedaba muy arriba). */
.punto { display: inline-block; width: 4px; height: 4px; margin: 0 .45em; border-radius: 50%; background: currentColor; vertical-align: middle; position: relative; top: -.08em; opacity: .7; }
/* Unidades con mayúscula inicial: "Por kg", "Frasco", "Ración de 6". */
.f-unidad::first-letter { text-transform: uppercase; }
/* Que el iPhone no "estire" el contenido de las hojas al jalar hacia abajo
   (se bajaba la foto pero la hoja no se cerraba). */
dialog.hoja, dialog.hoja .hoja-cuerpo { overscroll-behavior-y: none; }

/* Flecha de palito en la portada: baja y se desvanece, una y otra vez, con
   un aro que late alrededor. */
.portada-bajar { animation: none; overflow: visible; }
.portada-bajar svg { width: 28px; height: 28px; animation: flecha-baja 1.4s cubic-bezier(.45,0,.25,1) infinite; }
.portada-bajar::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: aro-late 1.4s ease-out infinite; }
@keyframes flecha-baja { 0% { transform: translateY(-9px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes aro-late { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .portada-bajar svg, .portada-bajar::after { animation: none; } }

/* Al tocar "Pedir", el menú se detiene con "Nuestro menú" completo a la
   vista, con aire bajo la barra de arriba (antes la barra se lo comía). */
#menu { scroll-margin-top: calc(var(--alto-barra, 70px) - 8px); }

/* Pestañas del menú (Paellas, Entradas…) centradas. En celular caben las
   cuatro; si una pantalla es muy angosta, se deslizan sin cortarse (por eso
   los márgenes automáticos y no justify-content: center). */
.saltos { padding-left: 10px; padding-right: 10px; }
.saltos a { padding: 7px 12px; }
.saltos a:first-child { margin-left: auto; }
.saltos a:last-child { margin-right: auto; }
