/* ================================================================
   ESTILOS — identidad tomada del menú impreso:
   papel claro, tinta negra, letras condensadas y acentos en rojo.
   Animaciones: solo opacidad y movimiento (ligeras para el celular).
   ================================================================ */
:root {
  --papel: #FAF7F2;
  --papel-2: #F2ECE2;
  --papel-3: #E8E0D2;
  --blanco: #FFFFFF;
  --tinta: #161311;
  --tinta-2: #3B3531;
  --gris: #736B64;
  --linea: #E4DCCF;
  --rojo: #D7372E;
  --rojo-oscuro: #B42921;
  --rojo-suave: #FCE9E6;
  --verde: #1F8A5B;
  --verde-suave: #E1F3EA;
  --oro: #8C7450;          /* bronce del logo de Esquina Catorce */
  --oro-claro: #C4A880;
  --oro-suave: #F1E9DC;
  --whatsapp: #0E7A3A;     /* verde oscuro: el blanco encima cumple contraste 5:1 (el #1FAF54 daba 2.9:1) */
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --fuente: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 60px;
  --suave: cubic-bezier(.2, .8, .2, 1);
  --rebote: cubic-bezier(.3, 1.5, .5, 1);
  --sombra: 0 14px 34px rgba(22, 19, 17, .16);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  --seguro-arriba: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.sin-scroll, html.sin-scroll body { overflow: hidden; }
body {
  margin: 0; font-family: var(--fuente); font-size: 14px; line-height: 1.45;
  color: var(--tinta); background: var(--papel);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.icono { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; flex: none; }

/* ---------- 1. Pantalla de carga: la taza se dibuja a tinta ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center;
  background: var(--papel); text-align: center; transition: opacity .4s ease, visibility .4s;
}
.splash--fuera { opacity: 0; visibility: hidden; }
/* El logo se descubre de izquierda a derecha y un brillo dorado lo recorre */
.splash__marca { position: relative; width: min(68vw, 300px); }
.splash__marca img { display: block; width: 100%; height: auto; animation: descubrir .75s var(--suave) both; }
.splash__marca::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 200, .95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
  animation: brillo .8s .45s ease-out both;
}
.splash__barra { width: 120px; height: 3px; margin-top: 26px; border-radius: 99px; background: var(--oro-suave); overflow: hidden; }
.splash__barra span { display: block; height: 100%; width: 0; background: var(--oro); animation: llenar var(--duracion, .9s) var(--suave) forwards; }
@keyframes descubrir { from { clip-path: inset(0 100% 0 0); transform: scale(.96); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes brillo { to { background-position: -30% 0; } }
@keyframes llenar { to { width: 100%; } }
.splash__nombre {
  font-family: var(--display); font-weight: 400; font-size: 3.6rem; letter-spacing: .14em; line-height: 1;
  margin: 14px 0 0 .14em; animation: subir .5s .2s var(--suave) both;
}
.splash__lema { margin: 4px 0 0; color: var(--gris); font-size: .82rem; animation: subir .5s .3s var(--suave) both; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } }
@keyframes aparecer { from { opacity: 0; transform: scale(.6); } }

/* ---------- 2. Barra superior ---------- */
.cinta-prueba { background: var(--tinta); color: #fff; text-align: center; font-size: .72rem; padding: 6px 12px; }
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px 0 16px;
  background: var(--papel); background: color-mix(in srgb, var(--papel) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.con-linea { border-color: var(--linea); }
.top__marca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top__marca svg { width: 34px; height: 30px; flex: none; }
.top__marca img { height: 40px; width: auto; display: block; }
.top__nombre { font-family: var(--display); font-size: 1.85rem; letter-spacing: .12em; line-height: 1; padding-top: 3px; }
.top__buscar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--papel-2); }
.top__buscar span { display: none; }

/* ---------- 3. "Ahora" ---------- */
.ahora { padding: 14px 16px 6px; max-width: 1240px; margin: 0 auto; }
.estado { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 500; color: var(--tinta-2); }
.estado::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 0 0 rgba(31, 138, 91, .45); animation: latido 2s infinite;
}
.estado--cerrado::before { background: #E39B3B; animation: none; }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(31, 138, 91, 0); } }
.ahora__titulo {
  margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 15vw, 4.6rem);
  line-height: .88; letter-spacing: .01em;
}
.palabra { display: inline-block; animation: subir .6s var(--suave) both; animation-delay: calc(var(--i, 0) * 80ms + .15s); }
.ahora__texto { margin: 8px 0 0; color: var(--gris); max-width: 520px; }

.modo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 16px; background: var(--papel-2); max-width: 520px; }
.modo button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 8px;
  border-radius: 12px; text-align: left; color: var(--gris); transition: background .25s, color .25s, box-shadow .25s;
}
.modo button svg { width: 22px; height: 22px; flex: none; }
.modo b { display: block; font-weight: 600; font-size: .86rem; line-height: 1.2; }
.modo small { display: block; font-size: .7rem; line-height: 1.2; }
.modo button[aria-checked="true"] { background: var(--blanco); color: var(--tinta); box-shadow: 0 2px 10px rgba(22, 19, 17, .08); }

.boleto {   /* promoción del paquete: estilo boleto con muescas */
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin-top: 12px;
  padding: 12px 16px; border-radius: 14px; background: var(--rojo); color: #fff; text-align: left;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  animation: subir .5s .45s var(--suave) both;
}
.boleto--temporada { background: linear-gradient(110deg, #6E2C91, #8E4FB8); }
.boleto--temporada b::after { content: " 🏵️"; }
.boleto--dia { background: linear-gradient(110deg, #9C4A16, #B35E1C); }   /* naranja del cartel "Menú del día" */
.boleto--dia b::after { content: " 🍽️"; }
.boleto + .boleto { margin-top: 8px; }
.boleto__precio { font-family: var(--display); font-size: 2.1rem; line-height: 1; padding-right: 12px; border-right: 2px dashed rgba(255, 255, 255, .5); }
.boleto b { display: block; font-weight: 600; font-size: .88rem; }
.boleto small { display: block; font-size: .74rem; opacity: .9; }

.destacados {
  display: grid; grid-auto-flow: column; grid-auto-columns: 164px; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  margin: 16px -16px 0; padding: 2px 16px 10px;
}
.destacados::-webkit-scrollbar { display: none; }
.tarjeta { position: relative; scroll-snap-align: start; animation: subir .5s var(--suave) both; animation-delay: calc(var(--i, 0) * 60ms + .35s); }
.tarjeta__boton { display: block; width: 100%; text-align: left; }
.tarjeta__foto { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; }
.tarjeta__nombre { display: block; margin: 8px 2px 0; font-weight: 600; font-size: .86rem; line-height: 1.25; }
.tarjeta__precio { display: block; margin: 1px 2px 0; font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; }
.tarjeta .accion { position: absolute; top: calc(164px * .75 - 44px); right: 8px; }

.repetir {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin-top: 6px;
  padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--papel-3); text-align: left;
}
.repetir__icono { font-size: 1.3rem; }
.repetir__texto { flex: 1; min-width: 0; }
.repetir__texto b { display: block; font-weight: 600; }
.repetir__texto small { display: block; color: var(--gris); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repetir__cta { font-weight: 600; font-size: .8rem; padding: 7px 12px; border-radius: 99px; background: var(--tinta); color: #fff; }

/* ---------- Fotos: aparecen suavemente al cargar ---------- */
.foto { position: relative; display: block; overflow: hidden; background: var(--papel-3); }
.foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .45s ease, transform .7s var(--suave); }
.foto.cargada img { opacity: 1; transform: none; }
.foto.fallo img { display: none; }

/* ---------- 4. Menú en dos columnas ---------- */
.menu {
  display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start;
  margin-top: 10px; border-top: 1px solid var(--linea); max-width: 1240px; margin-inline: auto;
}
.riel {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: var(--papel-2); padding: 6px 0 130px;
}
.riel::-webkit-scrollbar { display: none; }
.riel__indicador {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 0;
  background: var(--papel); border-left: 3px solid var(--oro);
  transform: translateY(var(--y, 0)); transition: transform .35s var(--suave), height .35s var(--suave);
}
.riel__btn {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 10px 6px; color: var(--gris); font-size: .7rem; font-weight: 500; line-height: 1.2; text-align: center;
  transition: color .25s;
}
.riel__foto { width: 46px; height: 46px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s, transform .25s var(--rebote); }
.riel__btn.activo { color: var(--tinta); font-weight: 600; }
.riel__btn.activo .riel__foto { outline-color: var(--oro); transform: scale(1.06); }

.lista { padding: 0 14px 140px; min-width: 0; }
.seccion { scroll-margin-top: calc(var(--top) + 6px); }
.portada {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  height: 116px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 18px; overflow: hidden; color: #fff; background: var(--tinta);
}
.portada .foto { position: absolute; inset: 0; background: var(--tinta-2); }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .7)); }
.portada__titulo { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: .95; letter-spacing: .02em; }
.portada__nota { position: relative; z-index: 1; align-self: flex-start; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--rojo); }

.plato { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--linea); }
.plato:last-child { border-bottom: 0; }
.plato__cuerpo { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.plato__nombre { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.plato__precio { margin-top: auto; padding-top: 8px; font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
/* Foto del platillo con el botón + encima de la esquina (como en las apps de reparto) */
.plato__lado { position: relative; flex: none; width: 96px; height: 96px; margin-bottom: 10px; }
.plato__foto-btn { display: block; width: 100%; height: 100%; padding: 0; border-radius: 16px; overflow: hidden; }
.plato__foto { width: 100%; height: 100%; border-radius: 16px; }
.plato__lado .accion { position: absolute; right: -6px; bottom: -10px; }
.plato__lado .mas { box-shadow: 0 4px 12px rgba(22, 19, 17, .18); }
.plato__lado .contador { box-shadow: 0 4px 12px rgba(22, 19, 17, .25); }
.plato__lado .agotado { position: absolute; inset: auto 0 6px; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.plato__desde { font-family: var(--fuente); font-size: .62rem; color: var(--gris); margin-right: 3px; letter-spacing: 0; }
.plato__desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 3px; color: var(--gris); font-size: .78rem;
}
.plato__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.plato__chips span { font-size: .68rem; padding: 2px 8px; border-radius: 99px; background: var(--papel-2); color: var(--tinta-2); }
.plato--agotado { opacity: .45; }
.agotado { font-size: .7rem; font-weight: 600; color: var(--gris); }

/* Botón + y contador en línea (− 1 +) */
.accion { flex: none; }
.mas {   /* 42 px: tamaño cómodo para el dedo (antes 36) */
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blanco); border: 1.5px solid var(--tinta); font-size: 1.3rem; line-height: 1;
  transition: transform .2s var(--rebote), background .2s, color .2s;
}
.mas:active { transform: scale(.88); }
@media (hover: hover) { .mas:hover { background: var(--tinta); color: #fff; } }
.mas__cuenta {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--rojo); color: #fff; font-size: .66rem; font-weight: 600;
  animation: aparecer .3s var(--rebote);
}
.contador {
  display: flex; align-items: center; height: 42px; border-radius: 99px; background: var(--tinta); color: #fff;
  transform-origin: right center; animation: abrir .28s var(--suave);
}
.contador button { width: 40px; height: 42px; display: grid; place-items: center; font-size: 1.2rem; }
.contador button svg { width: 15px; height: 15px; }
.contador output { min-width: 16px; text-align: center; font-weight: 600; font-size: .86rem; }
@keyframes abrir { from { opacity: .3; transform: scaleX(.4); } }

/* Aparición de renglones al llegar a ellos */
.revelar { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s var(--suave); transition-delay: calc(var(--i, 0) * 35ms); }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Panel del pedido (solo en computadora) ---------- */
.panel { display: none; }

/* ---------- Pie ---------- */
.pie { padding: 36px 16px calc(120px + var(--seguro-abajo)); text-align: center; color: var(--gris); font-size: .8rem; background: var(--papel-2); }
.pie img { display: block; width: 170px; height: auto; margin: 0 auto 10px; }
.pie__linea { width: 64px; height: 2px; margin: 14px auto 4px; background: var(--oro); border: 0; }
.pie__nombre { font-family: var(--display); font-size: 2rem; letter-spacing: .14em; color: var(--tinta); line-height: 1; margin-top: 6px; }
.pie p { margin: 6px 0 0; }

/* ---------- Barra del pedido (celular) ---------- */
.barra {
  position: fixed; z-index: 45; left: 50%; bottom: calc(14px + var(--seguro-abajo)); transform: translateX(-50%);
  width: min(540px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 9px; border-radius: 18px; background: var(--tinta); color: #fff;
  box-shadow: 0 14px 30px rgba(22, 19, 17, .35); animation: entrarBarra .45s var(--rebote);
}
.barra__cuenta { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--rojo); font-weight: 600; }
.barra__cuenta.salto { animation: aparecer .35s var(--rebote); }
.barra__texto { flex: 1; text-align: left; font-weight: 500; }
.barra__total { font-family: var(--display); font-size: 1.45rem; letter-spacing: .03em; }
@keyframes entrarBarra { from { transform: translate(-50%, 150%); } }

.bolita {   /* la bolita que "vuela" al pedido */
  position: fixed; z-index: 300; width: 16px; height: 16px; border-radius: 50%; background: var(--rojo);
  pointer-events: none; box-shadow: 0 4px 10px rgba(215, 55, 46, .4);
}

/* ---------- 5. Búsqueda ---------- */
.busqueda { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--papel); animation: subir .25s var(--suave); }
.busqueda__barra {
  display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--seguro-arriba)) 12px 8px 6px;
  border-bottom: 1px solid var(--linea);
}
.busqueda__barra input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; outline: 0; border-radius: 14px; background: var(--papel-2); font-size: 1rem; }
.busqueda__cuerpo { flex: 1; overflow-y: auto; padding: 8px 16px 40px; }
.busqueda__grupo { margin: 18px 0 2px; font-family: var(--display); font-size: 1.35rem; letter-spacing: .03em; color: var(--gris); }
.sugerencias { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sugerencias button { padding: 8px 14px; border-radius: 99px; background: var(--blanco); border: 1px solid var(--linea); font-weight: 500; }
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.mosaico button { position: relative; height: 84px; border-radius: 14px; overflow: hidden; text-align: left; color: #fff; }
.mosaico .foto { position: absolute; inset: 0; }
.mosaico button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .65)); }
.mosaico span:last-child { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-family: var(--display); font-size: 1.25rem; letter-spacing: .03em; line-height: 1; }
.vacio-busqueda { text-align: center; color: var(--gris); padding: 40px 10px; }

/* ---------- 6. Hojas ---------- */
.hoja { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.hoja__fondo { position: absolute; inset: 0; background: rgba(22, 19, 17, .5); opacity: 0; transition: opacity .3s; }
.hoja__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column; overflow: hidden; outline: none;
  background: var(--papel); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform .36s var(--suave);
}
.hoja.abierto .hoja__fondo { opacity: 1; }
.hoja.abierto .hoja__panel { transform: none; }
.hoja__cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 20px; }
.hoja__accion { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--seguro-abajo)); background: var(--blanco); border-top: 1px solid var(--linea); }
.hoja__accion--columna { flex-direction: column; align-items: stretch; }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.cerrar svg { width: 20px; height: 20px; }
@media (min-width: 720px) {
  .hoja { align-items: center; padding: 24px; }
  .hoja__panel { border-radius: 24px; max-height: 88vh; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .28s var(--suave), opacity .25s; }
  .hoja.abierto .hoja__panel { opacity: 1; }
}

.detalle__portada { position: relative; height: 220px; margin: 0 -18px; color: #fff; }
.detalle__portada .foto { position: absolute; inset: 0; }
.detalle__portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .72)); }
.detalle__titulo { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; margin: 0; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: .92; letter-spacing: .01em; }
.detalle__desc { margin: 14px 0 0; color: var(--gris); }
.detalle__precio { margin: 8px 0 0; font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; }

.grupo { margin-top: 20px; }
.grupo__titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.insignia { font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--papel-2); color: var(--gris); transition: background .25s, color .25s; }
.insignia--obligatorio { background: var(--tinta); color: #fff; }
.grupo--listo .insignia--obligatorio { background: var(--verde); }
.grupo--promo { padding: 14px; border-radius: 16px; border: 1.5px dashed var(--rojo); background: var(--rojo-suave); }
.grupo--promo .grupo__titulo { color: var(--rojo-oscuro); }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilla {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px;
  padding: 7px 14px; border-radius: 14px; background: var(--blanco); border: 1.5px solid var(--linea); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.pastilla:active { transform: scale(.96); }
.pastilla input { position: absolute; opacity: 0; pointer-events: none; }
.pastilla b { font-weight: 600; font-size: .84rem; line-height: 1.2; }
.pastilla small { font-size: .7rem; color: var(--gris); line-height: 1.2; transition: color .18s; }
.pastilla:has(input:checked) { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.pastilla:has(input:checked) small { color: rgba(255, 255, 255, .75); }
.grupo--promo .pastilla:has(input:checked) { background: var(--rojo); border-color: var(--rojo); }
.pastilla:has(input:focus-visible) { outline: 3px solid var(--rojo); outline-offset: 2px; }

.campo { display: block; margin-top: 14px; }
.campo__etiqueta { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; }
.campo__etiqueta small { font-weight: 400; color: var(--gris); }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 12px 14px; border-radius: 12px; outline: none; font-size: 1rem;
  background: var(--blanco); border: 1.5px solid var(--linea); transition: border-color .15s, box-shadow .15s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.campo textarea { resize: vertical; min-height: 60px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--tinta); box-shadow: 0 0 0 4px var(--papel-2); }
.campo--error input, .campo--error select { border-color: var(--rojo); }
.campo__error { display: block; margin-top: 6px; font-size: .78rem; font-weight: 500; color: var(--rojo-oscuro); }
.campo__ayuda { display: block; margin-top: 6px; font-size: .78rem; color: var(--gris); }
.fila-2 { display: grid; gap: 14px; }
.fila-2 .campo { margin-top: 0; }
@media (min-width: 540px) { .fila-2 { grid-template-columns: 1fr 1fr; } }

.cantidad { display: flex; align-items: center; height: 52px; border-radius: 14px; background: var(--papel-2); flex: none; }
.cantidad button { width: 44px; height: 100%; font-size: 1.3rem; }
.cantidad button:disabled { opacity: .3; }
.cantidad output { min-width: 22px; text-align: center; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border-radius: 15px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, transform .1s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn--tinta { background: var(--tinta); color: #fff; }
.btn--tinta:disabled { background: #CFC6B9; cursor: not-allowed; transform: none; }
.btn--linea { background: var(--blanco); border: 1.5px solid var(--linea); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #0B6630; }
.btn--ancho { width: 100%; }
.btn--crece { flex: 1; }
.btn--partido { justify-content: space-between; }
.btn--partido span:last-child { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; font-weight: 400; }
.btn--cargando { pointer-events: none; opacity: .85; }
.btn--cargando::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Pedido (hoja en celular / panel en computadora) ---------- */
.pedido__cabeza { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px; }
.pedido__titulo { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: .02em; }
.pedido__modo { font-size: .76rem; color: var(--gris); }
.meta { margin: 8px 0 4px; padding: 11px 14px; border-radius: 14px; background: var(--papel-2); font-size: .8rem; }
.meta--lista { background: var(--verde-suave); color: #0F6B44; font-weight: 600; }
.meta__barra { height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(22, 19, 17, .1); overflow: hidden; }
.meta__barra span { display: block; height: 100%; background: var(--tinta); border-radius: inherit; transition: width .5s var(--suave); }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: flex; gap: 10px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--linea); }
.linea__info { flex: 1; min-width: 0; }
.linea__nombre { font-weight: 600; line-height: 1.3; }
.linea__detalle { margin: 2px 0 0; color: var(--gris); font-size: .76rem; line-height: 1.35; }
.linea__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.linea__precio { font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.linea .contador { animation: none; height: 38px; }
.linea .contador button { height: 38px; width: 36px; }
.totales { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; margin: 14px 0 0; font-size: .86rem; }
.totales dt { color: var(--gris); }
.totales dd { margin: 0; text-align: right; }
.totales .total { padding-top: 10px; border-top: 2px solid var(--tinta); color: var(--tinta); font-weight: 600; font-size: 1rem; }
.totales dd.total { font-family: var(--display); font-size: 1.6rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.gratis { color: var(--verde); font-weight: 600; }
.totales .por-confirmar { color: var(--gris); font-style: italic; }
.totales .totales__nota { grid-column: 1 / -1; margin-top: 2px; text-align: left; font-size: .74rem; color: var(--gris); }
.aviso { margin: 0; font-size: .8rem; text-align: center; color: var(--rojo-oscuro); }
.vacio { text-align: center; padding: 30px 10px 40px; color: var(--gris); }
.vacio svg { width: 90px; height: 76px; color: var(--papel-3); }
.vacio b { display: block; margin-top: 8px; color: var(--tinta); font-size: 1rem; }
.enlace { margin-top: 12px; font-weight: 600; color: var(--rojo); }

/* ---------- Confirmar pedido ---------- */
.pantalla {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; outline: none; background: var(--papel);
  transform: translateX(100%); transition: transform .36s var(--suave);
}
.pantalla.abierto { transform: none; }
.pantalla__cabeza { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--seguro-arriba)) 12px 8px 6px; border-bottom: 1px solid var(--linea); background: var(--papel); }
.pantalla__cabeza h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: .02em; line-height: 1; padding-top: 3px; }
.pantalla__cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; }
.pantalla__interior { max-width: 600px; margin: 0 auto; }
.pantalla__pie { padding: 12px 16px calc(12px + var(--seguro-abajo)); background: var(--blanco); border-top: 1px solid var(--linea); }
.pantalla__pie .btn { display: flex; width: 100%; max-width: 600px; margin: 0 auto; }

.bloque { margin-bottom: 12px; padding: 16px; border-radius: 18px; background: var(--blanco); border: 1px solid var(--linea); }
.bloque__titulo { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.bloque__titulo b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: #fff; font-size: .7rem; letter-spacing: 0; }
.bloque .modo { margin-top: 0; background: var(--papel); }
.resumen-fila { display: flex; align-items: center; gap: 12px; }
.resumen-fila__texto { flex: 1; min-width: 0; }
.resumen-fila__texto b { display: block; font-weight: 600; }
.resumen-fila__texto small { display: block; color: var(--gris); font-size: .8rem; }
.cambiar { font-weight: 600; font-size: .82rem; color: var(--rojo); padding: 8px 4px; }
.btn-ubicacion { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--papel-3); text-align: left; font-weight: 600; font-size: .85rem; }
.btn-ubicacion small { display: block; font-weight: 400; color: var(--gris); font-size: .74rem; }
.btn-ubicacion--listo { border-style: solid; border-color: var(--verde); background: var(--verde-suave); color: #0F6B44; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .86rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--tinta); flex: none; }
.legal { margin: 14px 0 0; font-size: .74rem; color: var(--gris); }
.legal a { color: var(--tinta); font-weight: 600; }
.compacta { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.compacta li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.compacta small { display: block; color: var(--gris); font-size: .74rem; }

/* ---------- Pedido recibido: ticket que se imprime ---------- */
.pantalla--ticket { transform: none; opacity: 0; transition: opacity .3s; background: var(--papel-2); }
.pantalla--ticket.abierto { opacity: 1; }
.ticket {
  position: relative; max-width: 420px; margin: 18px auto 34px; padding: 26px 22px 24px; background: var(--blanco);
  box-shadow: 0 10px 30px rgba(22, 19, 17, .1); animation: imprimir .9s var(--suave) both;
}
.ticket::after {   /* borde de papel cortado */
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(135deg, var(--blanco) 50%, transparent 50%) 0 0 / 14px 14px repeat-x,
              linear-gradient(225deg, var(--blanco) 50%, transparent 50%) 0 0 / 14px 14px repeat-x;
}
@keyframes imprimir { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 -20px 0); transform: none; } }
.ticket__marca { text-align: center; }
.ticket__marca img { display: block; width: 150px; height: auto; margin: 0 auto; }
.ticket__raya { border: 0; border-top: 2px dashed var(--linea); margin: 16px 0; }
.ticket__estado { text-align: center; }
.ticket__estado h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: .95; }
.ticket__estado p { margin: 6px 0 0; color: var(--gris); }
.sello {
  display: inline-block; margin-top: 12px; padding: 4px 12px; border: 2.5px solid var(--rojo); border-radius: 8px; color: var(--rojo);
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .08em; transform: rotate(-6deg);
  animation: sellar .45s .8s var(--rebote) both;
}
@keyframes sellar { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } }
.ticket__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ticket__datos small { display: block; color: var(--gris); font-size: .72rem; }
.ticket__datos b { font-weight: 600; }
.ticket__folio { font-family: var(--display); font-size: clamp(1.15rem, 5.6vw, 1.6rem); letter-spacing: .06em; font-weight: 400 !important; white-space: nowrap; }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.ticket__total span:last-child { font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: .02em; }
.acciones { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }

.prueba { max-width: 420px; margin: 24px auto 0; padding: 16px; border-radius: 16px; border: 2px dashed var(--papel-3); background: var(--papel); }
.prueba__titulo { margin: 0 0 4px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.prueba__nota { margin: 0 0 10px; font-size: .8rem; color: var(--gris); }
.canal { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: .84rem; }
.canal span:last-child { font-weight: 600; white-space: nowrap; }
.canal--ok span:last-child { color: var(--verde); }
.canal--error span:last-child { color: var(--rojo-oscuro); }
.canal--apagado span:last-child { color: var(--gris); font-weight: 400; }
.wa { margin-top: 12px; border-radius: 14px; overflow: hidden; background: #EFE7DE; }
.wa__cabeza { padding: 10px 14px; background: #075E54; color: #fff; font-size: .84rem; font-weight: 600; }
.wa__cuerpo { padding: 12px; }
.wa__burbuja { position: relative; padding: 10px 12px 22px; border-radius: 0 12px 12px 12px; background: #fff; font-size: .8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa__burbuja a { color: #027EB5; }
.wa__hora { position: absolute; right: 10px; bottom: 5px; font-size: .68rem; color: #8696A0; }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; z-index: 200; left: 50%; top: calc(12px + var(--seguro-arriba)); width: max-content; max-width: min(420px, calc(100% - 32px)); text-align: center;
  padding: 11px 18px; border-radius: 14px; background: var(--tinta); color: #fff; font-size: .86rem; font-weight: 500;
  box-shadow: var(--sombra); opacity: 0; pointer-events: none;
  transform: translate(-50%, -150%); transition: transform .35s var(--rebote), opacity .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tableta ---------- */
@media (min-width: 720px) {
  :root { --top: 68px; }
  .top { padding: 0 24px; }
  .top__buscar { width: auto; height: 46px; padding: 0 18px 0 14px; display: flex; gap: 10px; border-radius: 99px; color: var(--gris); min-width: 260px; }
  .top__buscar span { display: inline; }
  .top__marca img { height: 48px; }
  .ahora { padding: 22px 24px 8px; }
  .destacados { margin: 18px -24px 0; padding: 2px 24px 12px; grid-auto-columns: 200px; scroll-padding-inline: 24px; }
  .tarjeta .accion { top: calc(200px * .75 - 44px); }
  .menu { grid-template-columns: 190px minmax(0, 1fr); }
  .riel__btn { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 9px 14px; font-size: .8rem; text-align: left; }
  .riel__foto { width: 36px; height: 36px; flex: none; }
  .lista { padding: 0 24px 140px; }
  .portada { height: 150px; padding: 16px 18px; }
  .portada__titulo { font-size: 2.5rem; }
  .plato__nombre { font-size: .95rem; }
  .plato__lado { width: 112px; height: 112px; }
}

/* ---------- Computadora: tres columnas con el pedido siempre a la vista ---------- */
@media (min-width: 1100px) {
  .menu { grid-template-columns: 210px minmax(0, 1fr) 350px; }
  .panel {
    display: flex; flex-direction: column; position: sticky; top: var(--top);
    height: calc(100vh - var(--top)); border-left: 1px solid var(--linea); background: var(--blanco);
  }
  .panel .pedido__cuerpo { flex: 1; overflow-y: auto; padding: 0 18px 16px; }
  .panel .pedido__pie { padding: 14px 18px 18px; border-top: 1px solid var(--linea); }
  .barra { display: none; }
  .pie { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .revelar { opacity: 1; transform: none; }
  .splash__marca img { clip-path: none; transform: none; }
  .splash__marca::after { display: none; }
}

/* ---------- Envío por WhatsApp ---------- */
.btn--partido > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.legal--wa { display: flex; gap: 8px; align-items: flex-start; color: var(--whatsapp); font-weight: 500; }
.legal--wa svg { flex: none; margin-top: 1px; }
/* Pedido que no alcanzó a salir (el navegador no dejó abrir WhatsApp y se cerró el ticket) */
.pendiente {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin-top: 10px;
  padding: 12px 10px 12px 14px; margin-bottom: 4px; border-radius: 14px; background: var(--verde-suave); border: 1.5px solid #BFE3CF;
}
.pendiente__texto { flex: 1; min-width: 0; }
.pendiente__texto b { display: block; font-weight: 600; }
.pendiente__texto small { display: block; color: var(--tinta-2); font-size: .76rem; }
.pendiente__btn { min-height: 44px; padding: 0 14px; gap: 6px; font-size: .86rem; flex: none; }
.pendiente__cerrar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--gris); flex: none; }
.pie__wa { display: inline-flex; align-items: center; gap: 6px; color: var(--whatsapp); font-weight: 600; text-decoration: none; }
.pie__legal a { color: var(--gris); }

/* ---------- Si la app no arranca ---------- */
.falla { margin: 0 0 16px; padding: 0 24px; text-align: center; color: var(--tinta-2); font-size: .95rem; }

/* ---------- Burbuja de WhatsApp ---------- */
.burbuja {
  position: fixed; z-index: 60; right: 16px; bottom: calc(18px + var(--seguro-abajo));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: bottom .3s var(--suave), opacity .2s;
}
body.con-barra .burbuja { bottom: calc(88px + var(--seguro-abajo)); }
html.sin-scroll .burbuja { opacity: 0; pointer-events: none; }
.burbuja__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 26px rgba(22, 19, 17, .28); transition: transform .2s var(--rebote);
}
.burbuja__btn:active { transform: scale(.9); }
.burbuja__btn::before {   /* onda que late para llamar la atención */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: latido 2.8s ease-out infinite;
}
.burbuja.abierta .burbuja__btn::before { animation: none; opacity: 0; }
@keyframes latido { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.burbuja__globo {
  margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--blanco); box-shadow: var(--sombra);
  font-size: .84rem; font-weight: 500; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: right bottom;
  pointer-events: none; transition: opacity .3s, transform .35s var(--rebote);
}
.burbuja.con-globo .burbuja__globo { opacity: 1; transform: none; }
.burbuja__panel {
  width: min(340px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 140px)); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: #EFE8DE; box-shadow: 0 18px 50px rgba(22, 19, 17, .3);
  transform-origin: right bottom; animation: burbujaAbre .3s var(--rebote);
}
@keyframes burbujaAbre { from { opacity: 0; transform: translateY(12px) scale(.92); } }
.burbuja__cabeza { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #075E54; color: #fff; }
.burbuja__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--papel); flex: none; }
.burbuja__quien { flex: 1; min-width: 0; }
.burbuja__quien b { display: block; font-size: .95rem; }
.burbuja__quien small { display: flex; align-items: center; gap: 6px; font-size: .72rem; opacity: .9; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #F2B33D; flex: none; }
.punto--abierto { background: #3BE07B; }
.burbuja__cerrar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.burbuja__chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .84rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: msgEntra .25s var(--suave); }
@keyframes msgEntra { from { opacity: 0; transform: translateY(6px); } }
.msg--suyo { align-self: flex-start; background: var(--blanco); border-top-left-radius: 4px; }
.msg--mio { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.msg--escribiendo { display: flex; gap: 4px; padding: 12px 14px; }
.msg--escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: #9A938B; animation: escribe 1s infinite; }
.msg--escribiendo span:nth-child(2) { animation-delay: .15s; }
.msg--escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes escribe { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg__botones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__botones a, .msg__botones button {
  padding: 7px 12px; border-radius: 99px; font-size: .78rem; font-weight: 600; text-decoration: none;
  background: var(--whatsapp); color: #fff;
}
.msg__botones button { background: var(--tinta); }
.burbuja__opciones { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.burbuja__opciones button { padding: 8px 12px; border-radius: 99px; background: var(--blanco); border: 1.5px solid #CFE9D8; font-size: .8rem; font-weight: 500; color: #075E54; }
.burbuja__escribir { display: flex; gap: 8px; padding: 10px 12px 12px; background: #F5F1EB; }
.burbuja__escribir input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--linea); background: var(--blanco); font: inherit; font-size: .9rem; }
.burbuja__escribir button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--whatsapp); color: #fff; }
@media (min-width: 1100px) {
  .burbuja { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .burbuja__btn::before { animation: none; }
}
.burbuja__ico { position: absolute; transition: transform .3s var(--rebote), opacity .2s; }
.burbuja__ico--x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.burbuja.abierta .burbuja__ico:not(.burbuja__ico--x) { opacity: 0; transform: rotate(90deg) scale(.6); }
.burbuja.abierta .burbuja__ico--x { opacity: 1; transform: none; }
.burbuja.abierta .burbuja__btn { background: var(--tinta); }
.ticket__fila { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .82rem; color: var(--gris); }

/* ---------- Envío por confirmar en el ticket ---------- */
.ticket__aviso { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--oro-suave); color: var(--tinta-2); font-size: .78rem; text-align: center; }

/* ---------- Lo nuevo: carteles del negocio ---------- */
.novedades { margin-top: 22px; }
.novedades__titulo { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; line-height: 1; }
.novedades__fila {
  display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-inline: 16px;
}
.novedades__fila::-webkit-scrollbar { display: none; }
.novedad {
  display: block; scroll-snap-align: start; text-align: left; text-decoration: none; color: inherit;
  animation: subir .5s var(--suave) both; animation-delay: calc(var(--i, 0) * 60ms + .45s);
}
.novedad__foto { width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; box-shadow: 0 8px 20px rgba(22, 19, 17, .14); transition: transform .25s var(--suave); }
.novedad:active .novedad__foto { transform: scale(.97); }
@media (hover: hover) { .novedad:hover .novedad__foto { transform: translateY(-3px); } }
.novedad__pie { display: flex; flex-direction: column; margin: 8px 2px 0; }
.novedad__pie b { font-weight: 600; font-size: .82rem; line-height: 1.25; }
.novedad__pie > span { font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em; }
.novedad__pie .novedad__etiqueta { font-family: var(--fuente); font-size: .72rem; font-weight: 600; color: var(--oro); letter-spacing: 0; }
@media (min-width: 700px) {
  .novedades__fila { grid-auto-columns: 190px; margin: 0 -24px; padding: 2px 24px 12px; scroll-padding-inline: 24px; }
}
.burbuja.de-lado { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.burbuja { transition: bottom .3s var(--suave), opacity .25s, transform .35s var(--suave); }

/* ---------- Redes sociales: íconos fijos en la barra, aviso al entrar y pie ---------- */
.top__redes {
  margin: 0 -4px 0 auto; display: flex; align-items: center; height: 44px; padding: 0 2px; flex: none;
  border-radius: 99px; border: 1px solid var(--linea); background: var(--blanco); transition: border-color .3s, box-shadow .3s;
}
.top__red { position: relative; width: 40px; height: 42px; display: grid; place-items: center; border-radius: 99px; color: var(--tinta-2); transition: color .2s, transform .2s var(--rebote); }
.top__red + .top__red::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--linea); }
.top__red:active { transform: scale(.88); }
@media (hover: hover) {
  .top__red--ig:hover { color: #D62976; }
  .top__red--fb:hover { color: #1877F2; }
}
.top__redes.activa { border-color: var(--oro-claro); box-shadow: 0 0 0 3px var(--oro-suave); }
.top__redes.recibe { animation: recibir .9s var(--suave); }
.top__redes.recibe .top__red { animation: brincar .5s var(--rebote) both; }
.top__redes.recibe .top__red + .top__red { animation-delay: .08s; }
@keyframes recibir { from { box-shadow: 0 0 0 0 rgba(140, 116, 80, .45); } to { box-shadow: 0 0 0 12px rgba(140, 116, 80, 0); } }
@keyframes brincar { 45% { transform: scale(1.2); } }
@media (max-width: 359px) {
  .top { gap: 8px; }
  .top__marca img { height: 34px; }
  .top__redes { margin-right: 0; }
}

.red__insignia { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; }
.red__insignia--ig { background: radial-gradient(circle at 30% 107%, #FDD86A 0%, #FD9B4B 22%, #E1306C 52%, #C13584 72%, #5B51D8 100%); }
.red__insignia--fb { background: #1877F2; border-radius: 50%; }

.redes-aviso {
  position: fixed; z-index: 45; width: min(286px, calc(100vw - 24px)); padding: 14px 14px 12px; border-radius: 18px;
  background: var(--blanco); box-shadow: 0 18px 44px rgba(22, 19, 17, .22), 0 0 0 1px rgba(22, 19, 17, .04);
  transform-origin: calc(100% - var(--flecha, 40px)) -10px; animation: redesSale .55s var(--rebote) both;
}
.redes-aviso::before {   /* piquito que apunta a los íconos de la barra */
  content: ""; position: absolute; top: -6px; right: calc(var(--flecha, 40px) - 7px); width: 14px; height: 14px;
  background: var(--blanco); border-radius: 3px 0 0 0; transform: rotate(45deg);
}
.redes-aviso::after {    /* línea que se acorta: el aviso es breve */
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--oro-claro); transform-origin: left; animation: tiempoAviso var(--dura, 3800ms) linear both;
}
.redes-aviso.quieto::after { opacity: 0; }
.redes-aviso.guardando { animation: redesGuarda .45s var(--suave) forwards; pointer-events: none; }
@keyframes redesSale { from { opacity: 0; transform: translateY(-8px) scale(.3); } }
@keyframes redesGuarda { to { opacity: 0; transform: translateY(-6px) scale(.12); } }
@keyframes tiempoAviso { to { transform: scaleX(0); } }
html.sin-scroll .redes-aviso { opacity: 0; pointer-events: none; }
.redes-aviso__cabeza { display: flex; align-items: center; justify-content: space-between; }
.redes-aviso__cabeza b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; line-height: 1; }
.redes-aviso__cerrar { width: 34px; height: 34px; margin: -8px -8px -4px 0; display: grid; place-items: center; border-radius: 50%; color: var(--gris); }
.redes-aviso__texto { margin: 2px 0 8px; color: var(--gris); font-size: .78rem; }
.redes-aviso__red {
  display: flex; align-items: center; gap: 12px; margin: 0 -6px; padding: 7px 6px; border-radius: 12px;
  text-decoration: none; color: var(--tinta); transition: background .2s;
  animation: subir .45s var(--suave) both; animation-delay: calc(var(--i, 0) * 90ms + .2s);
}
.redes-aviso__red:active { background: var(--papel-2); }
@media (hover: hover) { .redes-aviso__red:hover { background: var(--papel); } }
.redes-aviso__nombre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.redes-aviso__nombre b { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.redes-aviso__nombre small { overflow: hidden; color: var(--gris); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.redes-aviso__red > svg { flex: none; color: var(--oro); transform: rotate(180deg); }

.pie__redes { margin: 18px 0 14px; }
.pie .pie__siguenos { margin: 0 0 8px; font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; color: var(--tinta); line-height: 1; }
.pie__redes-fila { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.red {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px; border-radius: 99px;
  background: var(--blanco); border: 1px solid var(--linea); color: var(--tinta); font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: transform .2s var(--rebote), box-shadow .2s;
}
.red .red__insignia { width: 32px; height: 32px; border-radius: 10px; }
.red .red__insignia--fb { border-radius: 50%; }
.red:active { transform: scale(.96); }
@media (hover: hover) { .red:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 19, 17, .1); } }
