/* Menú digital de Dulces Alba. Colores de la marca: turquesa y café del logo, crema de fondo y rosa de sus etiquetas de precio. */
:root {
  --turquesa: #6DB3C0; --turquesa-osc: #2C7684; --turquesa-claro: #E3F1F4;
  --cafe: #7E5F5C; --cafe-osc: #4B3533; --cafe-claro: #F1E7E2;
  --crema: #FBF6EF; --arena: #F3EADF; --rosa: #F4BED6; --rosa-osc: #B24D7A;
  --oro: #D69B2D; --guayaba: #D85C55; --menta: #DCEEE7;
  --tinta: #2B2120; --gris: #6E625F; --linea: #E8DDD2; --blanco: #fff;
  --verde: #1FA855; --verde-osc: #178a45;
  --radio: 18px; --radio-s: 12px;
  --sombra: 0 1px 2px rgba(75, 53, 51, .06), 0 6px 18px rgba(75, 53, 51, .08);
  --sombra-alta: 0 18px 50px rgba(43, 33, 32, .22);
  --display: 'Fraunces', Georgia, serif;
  --texto: 'DM Sans', system-ui, -apple-system, sans-serif;
  --suave: cubic-bezier(.22, 1, .36, 1);
  --resorte: cubic-bezier(.34, 1.56, .64, 1);
  --barra-alto: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background:
  linear-gradient(180deg, rgba(255,255,255,.4), transparent 280px),
  repeating-linear-gradient(90deg, rgba(126,95,92,.025) 0 1px, transparent 1px 18px),
  var(--crema); color: var(--tinta); font: 400 16px/1.5 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0; color: var(--cafe-osc); }
svg { width: 22px; height: 22px; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--turquesa-osc); outline-offset: 2px; border-radius: 8px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--cafe-osc); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.saltar:focus { left: 8px; }
[hidden] { display: none !important; }

/* ——— Botones base ——— */
.icono { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blanco); color: var(--cafe-osc); display: grid; place-items: center; box-shadow: var(--sombra); position: relative; transition: transform .2s var(--suave); }
.icono:active { transform: scale(.92); }
.icono-claro { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.burbuja { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rosa-osc); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.texto-boton { border: 0; background: none; color: var(--turquesa-osc); font-weight: 600; padding: 10px 6px; min-height: 44px; }
.boton { border: 0; border-radius: 999px; min-height: 52px; padding: 0 22px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; transition: transform .18s var(--suave), background .2s, opacity .2s; }
.boton:active { transform: scale(.97); }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
.boton-primario { background: var(--cafe-osc); color: #fff; }
.boton-verde { background: var(--verde); color: #fff; box-shadow: 0 8px 22px rgba(31, 168, 85, .32); }
.boton-verde:hover { background: var(--verde-osc); }
.boton-suave { background: var(--arena); color: var(--cafe-osc); }
.boton-ancho { width: 100%; }

/* ——— Barra superior compacta (aparece al bajar) ——— */
.barra { position: fixed; inset: 0 0 auto; height: var(--barra-alto); padding: 0 12px 0 14px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; background: rgba(251, 246, 239, .9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--linea); z-index: 30; transform: translateY(-100%); transition: transform .35s var(--suave); }
.barra.visible { transform: none; }
.barra-marca { display: flex; align-items: center; gap: 10px; color: var(--cafe-osc); text-decoration: none; font: 600 18px var(--display); }
.barra-marca img { width: 36px; height: 36px; object-fit: contain; }
.barra-acciones { display: flex; gap: 8px; }
.barra .icono { width: 42px; height: 42px; box-shadow: none; background: var(--arena); }

/* ——— Portada ——— */
.hero { position: relative; color: #fff; text-align: center; min-height: min(680px, 86svh); padding: calc(34px + env(safe-area-inset-top)) 20px 72px; overflow: hidden; isolation: isolate; display: grid; place-items: center; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(43, 33, 32, .36), rgba(43, 33, 32, .62)),
  linear-gradient(115deg, rgba(44, 118, 132, .78), rgba(126, 95, 92, .45) 52%, rgba(216, 92, 85, .34)),
  url('/img/fotos/fachada.webp') center 43% / cover no-repeat; transform: scale(1.02); }
.hero-fondo::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .20) 0 2px, transparent 3px) 0 0 / 30px 30px,
  linear-gradient(90deg, rgba(255,255,255,.10), transparent 28%, transparent 72%, rgba(255,255,255,.08)); mix-blend-mode: screen; opacity: .72; }
.hero-fondo::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background: radial-gradient(circle at 14px 0, transparent 13px, var(--crema) 14px) 0 0 / 28px 28px repeat-x; }
.hero-contenido { max-width: 660px; margin: 0 auto; transform: translateY(-2px); }
.hero-sello { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 12px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.hero-logo { width: 174px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 16px 26px rgba(43, 33, 32, .42)); animation: flotar 6s ease-in-out infinite; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
.hero-titulo { color: #fff; font-size: clamp(42px, 12vw, 74px); text-shadow: 0 3px 24px rgba(43, 33, 32, .36); }
.hero-eslogan { margin: 8px 0 18px; font-size: clamp(17px, 3.8vw, 22px); opacity: .98; text-shadow: 0 2px 14px rgba(43, 33, 32, .28); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); }
.hero-chips svg { width: 17px; height: 17px; }
.hero-botones { display: flex; gap: 10px; justify-content: center; }
.boton-buscar { flex: 1; max-width: 430px; min-height: 54px; border: 0; border-radius: 999px; background: #fff; color: var(--gris); display: flex; align-items: center; gap: 10px; padding: 0 20px; box-shadow: 0 16px 34px rgba(43, 33, 32, .26); text-align: left; }
.boton-buscar svg { color: var(--turquesa-osc); }
.hero .icono-claro { width: 50px; height: 50px; }

/* ——— Aviso del día ——— */
.aviso { max-width: 1100px; margin: -28px auto 8px; padding: 0 16px; position: relative; z-index: 2; }
.aviso-caja { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--cafe-osc); color: #fff; border-radius: var(--radio-s); padding: 12px 16px; font-weight: 600; font-size: 15px; box-shadow: var(--sombra); }
.aviso-caja svg { display: block; color: var(--rosa); }

/* ——— Servicio y confianza ——— */
.servicio { max-width: 1100px; margin: 10px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.servicio-pista { display: grid; grid-template-columns: 1fr; gap: 10px; }
.servicio-item { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radio-s); background: rgba(255,255,255,.84); color: var(--tinta); text-decoration: none; border: 1px solid rgba(232,221,210,.9); box-shadow: var(--sombra); backdrop-filter: blur(10px); }
.servicio-item svg { width: 24px; height: 24px; color: var(--turquesa-osc); }
.servicio-item b { display: block; color: var(--cafe-osc); font-size: 14px; }
.servicio-item small { display: block; color: var(--gris); line-height: 1.32; font-size: 13px; }

/* ——— Promociones ——— */
.promos { max-width: 1100px; margin: 18px auto 0; position: relative; z-index: 2; }
.promos-pista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.promos-pista::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 min(88%, 520px); scroll-snap-align: center; border-radius: var(--radio); min-height: 160px; display: grid; grid-template-columns: 1fr 42%; overflow: hidden; box-shadow: var(--sombra); border: 1px solid rgba(255,255,255,.42); padding: 0; text-align: left; position: relative; color: #fff; transition: transform .25s var(--suave), box-shadow .25s var(--suave); }
.promo:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(75, 53, 51, .16); }
.promo:active { transform: scale(.985); }
.promo-turquesa { background: linear-gradient(135deg, var(--turquesa-osc), #3f93a2); }
.promo-cafe { background: linear-gradient(135deg, var(--cafe-osc), var(--cafe)); }
.promo-rosa { background: linear-gradient(135deg, #c25b89, #e48db3); }
.promo-crema { background: var(--arena); color: var(--cafe-osc); }
.promo-texto { padding: 16px 6px 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; z-index: 1; }
.promo-etiqueta { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .22); padding: 3px 9px; border-radius: 999px; }
.promo-crema .promo-etiqueta { background: var(--cafe-osc); color: #fff; }
.promo h3 { color: inherit; font-size: 21px; }
.promo p { margin: 0; font-size: 13.5px; line-height: 1.4; opacity: .92; }
.promo-precio { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-weight: 700; font-size: 19px; }
.promo-precio s { font-weight: 500; font-size: 14px; opacity: .75; }
.promo-foto { position: relative; }
.promo-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-foto::before { content: ''; position: absolute; inset: 0 auto 0 -1px; width: 38px; z-index: 1; background: inherit; }
.promo-turquesa .promo-foto::before { background: linear-gradient(90deg, #3f93a2, transparent); }
.promo-cafe .promo-foto::before { background: linear-gradient(90deg, var(--cafe), transparent); }
.promo-rosa .promo-foto::before { background: linear-gradient(90deg, #e48db3, transparent); }
.promo-crema .promo-foto::before { background: linear-gradient(90deg, var(--arena), transparent); }
.promos-puntos { display: flex; justify-content: center; gap: 6px; padding: 6px 0 0; }
.promos-puntos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--linea); transition: width .3s var(--suave), background .3s; position: relative; }
.promos-puntos button::after { content: ''; position: absolute; inset: -12px -4px; }
.promos-puntos button[aria-selected="true"] { width: 22px; background: var(--cafe); }

/* ——— Historia ——— */
.historia { max-width: 1100px; margin: 26px auto 8px; padding: 0 16px; display: grid; gap: 14px; }
.historia-media { min-height: 220px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); background: var(--arena); position: relative; }
.historia-media::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(0deg, rgba(43,33,32,.28), transparent); pointer-events: none; }
.historia-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; filter: saturate(1.08) contrast(1.03); }
.historia-texto { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.historia-eyebrow { display: inline-block; margin-bottom: 8px; color: var(--guayaba); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.historia-texto h2 { font-size: clamp(25px, 6vw, 38px); }
.historia-texto p { margin: 10px 0 0; color: var(--gris); }
.historia-firma { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--linea); color: var(--cafe-osc); font-weight: 700; }
.historia-firma img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; box-shadow: var(--sombra); }

/* ——— Títulos de sección ——— */
.seccion-titulo { padding: 0 16px; margin: 26px auto 12px; max-width: 1100px; }
.seccion-titulo h2 { font-size: 25px; }
.seccion-titulo p { margin: 3px 0 0; color: var(--gris); font-size: 14.5px; }

/* ——— Favoritos ——— */
.favoritos-pista { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; max-width: 1100px; margin: 0 auto; }
.favoritos-pista::-webkit-scrollbar { display: none; }
.fav { flex: 0 0 172px; scroll-snap-align: start; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; border: 1px solid rgba(232,221,210,.95); padding: 0; text-align: left; position: relative; transition: transform .25s var(--suave), box-shadow .25s var(--suave); }
.fav:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(75, 53, 51, .14); }
.fav:active { transform: scale(.97); }
.fav-foto { aspect-ratio: 1 / .92; background: var(--arena); position: relative; }
.fav-foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.03); transition: transform .45s var(--suave); }
.fav:hover .fav-foto img { transform: scale(1.045); }
.fav-info { padding: 9px 11px 12px; }
.fav-info b { display: block; font-size: 14.5px; line-height: 1.25; min-height: 2.5em; color: var(--tinta); }
.fav-info span { display: block; margin-top: 4px; font-weight: 700; color: var(--cafe-osc); font-size: 15px; }

/* ——— Categorías fijas ——— */
.cats { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 239, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: top .35s var(--suave), border-color .3s; margin-top: 18px; }
.cats.pegada { border-bottom-color: var(--linea); }
body.con-barra .cats { top: var(--barra-alto); }
.cats-pista { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: 1100px; margin: 0 auto; }
.cats-pista::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--linea); background: var(--blanco); color: var(--cafe-osc); border-radius: 999px; padding: 0 15px; min-height: 40px; font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s, border-color .25s, transform .2s var(--suave); white-space: nowrap; }
.cat:active { transform: scale(.95); }
.cat.activa { background: var(--cafe-osc); border-color: var(--cafe-osc); color: #fff; box-shadow: 0 8px 18px rgba(75,53,51,.18); }

/* ——— Lista de productos ——— */
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 140px; outline: none; }
.categoria { padding-top: 26px; }
.categoria h2 { font-size: 25px; display: flex; align-items: baseline; gap: 8px; position: relative; }
.categoria h2::before { content: ''; width: 34px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--turquesa), var(--oro)); align-self: center; }
.categoria h2 small { font: 600 13px var(--texto); color: var(--gris); }
.categoria > p { margin: 4px 0 12px; color: var(--gris); font-size: 14.5px; }
.lista { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lista { grid-template-columns: 1fr 1fr 1fr; } }
.prod { display: grid; grid-template-columns: 1fr 116px; gap: 13px; align-items: center; background: rgba(255,255,255,.96); border-radius: var(--radio); padding: 13px 13px 13px 15px; box-shadow: var(--sombra); border: 1px solid rgba(232,221,210,.92); text-align: left; width: 100%; position: relative; overflow: hidden; transition: transform .25s var(--suave), box-shadow .25s, border-color .25s; }
.prod::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(130deg, rgba(255,255,255,.72), transparent 32%, transparent 78%, rgba(109,179,192,.10)); opacity: .8; }
.prod:hover { transform: translateY(-2px); border-color: rgba(109,179,192,.45); box-shadow: 0 2px 4px rgba(75, 53, 51, .06), 0 16px 34px rgba(75, 53, 51, .13); }
.prod:active { transform: scale(.985); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }
.prod-info { min-width: 0; position: relative; z-index: 1; }
.prod-nombre { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--tinta); }
.prod-desc { margin: 4px 0 0; color: var(--gris); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-precio { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; color: var(--cafe-osc); font-size: 16px; }
.prod-precio small { font-weight: 500; color: var(--gris); font-size: 12.5px; }
.prod-precio s { color: var(--gris); font-weight: 500; font-size: 13.5px; }
.prod-precio .rebaja { color: var(--rosa-osc); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.chip { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--turquesa-claro); color: var(--turquesa-osc); }
.chip-promo { background: #FBE3EE; color: var(--rosa-osc); }
.chip-agotado { background: var(--cafe-claro); color: var(--cafe); }
.prod-foto { position: relative; width: 116px; height: 116px; border-radius: 16px; background: var(--arena); z-index: 1; overflow: visible; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; filter: saturate(1.08) contrast(1.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); transition: transform .45s var(--suave); }
.prod:hover .prod-foto img { transform: scale(1.035); }
.agregar { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--blanco); background: var(--cafe-osc); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(43, 33, 32, .25); transition: transform .25s var(--resorte), background .2s; }
.agregar svg { width: 20px; height: 20px; }
.agregar:active { transform: scale(.85); }
.agregar.en-pedido { background: var(--turquesa-osc); font-weight: 700; font-size: 15px; }
.agregar.pulso { animation: pulso .45s var(--resorte); }
@keyframes pulso { 50% { transform: scale(1.25); } }
.prod.agotado .prod-foto img, .fav.agotado img { filter: grayscale(.85) opacity(.6); }
.prod.agotado .prod-nombre, .prod.agotado .prod-precio { color: var(--gris); }
.prod.agotado .agregar { display: none; }
.vacio { text-align: center; color: var(--gris); padding: 34px 10px; }
.vacio b { display: block; color: var(--cafe-osc); font: 600 20px var(--display); margin-bottom: 6px; }

.revelar { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--suave), transform .55s var(--suave), box-shadow .25s, border-color .25s; }
.revelar.visible { opacity: 1; transform: none; }
/* El efecto de "presionar" sigue funcionando después de la animación de entrada. */
.prod.revelar.visible:active, .promo.revelar.visible:active { transform: scale(.985); transition-duration: .15s; }
.fav.revelar.visible:active { transform: scale(.97); transition-duration: .15s; }
/* Pedido guardado durante una pausa de WhatsApp */
.pendiente { margin: 12px max(16px, calc((100% - 1068px) / 2)) 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px 16px; border-radius: var(--radio-s); background: #E6F6EC; color: #145c32; font-weight: 600; box-shadow: var(--sombra); position: relative; z-index: 2; }
.pendiente svg { color: var(--verde); }
.pendiente-botones { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.pendiente .boton { min-height: 44px; padding: 0 18px; }

/* ——— Cargando ——— */
.cargando { display: grid; gap: 12px; padding-top: 24px; }
.esqueleto { height: 136px; border-radius: var(--radio); background: linear-gradient(90deg, #f1e9df 0%, #faf5ee 50%, #f1e9df 100%) 0 0 / 200% 100%; animation: brillo 1.3s linear infinite; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ——— Pie ——— */
.pie { text-align: center; padding: 40px 20px calc(120px + env(safe-area-inset-bottom)); background: var(--arena); color: var(--gris); position: relative; }
.pie::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: radial-gradient(circle at 14px 14px, var(--arena) 13px, transparent 14px) 0 0 / 28px 14px repeat-x; }
.pie img { margin: 0 auto 8px; width: 84px; height: auto; }
.pie-nombre { font: 600 22px var(--display); color: var(--cafe-osc); margin: 0; }
.pie-eslogan { margin: 2px 0 18px; }
.pie-datos { list-style: none; padding: 0; margin: 0 auto 18px; display: grid; gap: 10px; max-width: 420px; }
.pie-datos li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pie-datos a { color: var(--cafe-osc); font-weight: 600; }
.pie-datos svg { color: var(--turquesa-osc); }
.pie-redes { display: flex; justify-content: center; gap: 10px; }
.pie-redes a { width: 46px; height: 46px; border-radius: 50%; background: var(--blanco); color: var(--cafe-osc); display: grid; place-items: center; box-shadow: var(--sombra); }
.pie-credito { margin: 22px 0 0; font-size: 12.5px; opacity: .8; }

/* ——— Barra del carrito ——— */
.carrito-barra { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); min-height: 60px; border: 0; border-radius: 999px; background: var(--cafe-osc); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 22px 0 9px; box-shadow: 0 14px 34px rgba(43, 33, 32, .35); z-index: 25; animation: subir .5s var(--resorte); }
@keyframes subir { from { transform: translate(-50%, 140%); } }
.carrito-barra.salto { animation: salto .5s var(--resorte); }
@keyframes salto { 40% { transform: translateX(-50%) scale(1.05); } }
.cb-cantidad { min-width: 42px; height: 42px; border-radius: 21px; padding: 0 8px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 700; }
.cb-texto { flex: 1; text-align: left; font-weight: 700; font-size: 16px; }
.cb-total { font-weight: 700; font-size: 16.5px; }

/* ——— Hojas (ventanas que suben desde abajo) ——— */
.velo { position: fixed; inset: 0; background: rgba(43, 33, 32, .45); z-index: 40; opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.velo.abierto { opacity: 1; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--crema); border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .42s var(--suave); box-shadow: var(--sombra-alta); padding-bottom: env(safe-area-inset-bottom); }
.hoja.abierta { transform: none; }
.hoja.arrastrando { transition: none; }
@media (min-width: 760px) {
  .hoja { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; border-radius: 24px; max-height: 88vh; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .35s var(--suave), opacity .25s; }
  .hoja.abierta { transform: translate(-50%, -50%); opacity: 1; }
  .hoja-asa { display: none; }
}
.hoja-asa { width: 44px; height: 5px; border-radius: 3px; background: rgba(43, 33, 32, .22); position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hoja-cerrar { position: absolute; top: 12px; right: 12px; z-index: 3; }
.hoja-cuerpo { overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.hoja-pie { padding: 12px 16px 14px; border-top: 1px solid var(--linea); background: var(--crema); display: flex; gap: 10px; align-items: center; border-radius: 0 0 24px 24px; }
.hoja-pie:empty { display: none; }
.hoja-cabeza { display: flex; align-items: center; gap: 8px; padding: 22px 14px 6px 16px; }
.hoja-cabeza h2 { flex: 1; font-size: 23px; }
.hoja-cabeza .icono { box-shadow: none; background: var(--arena); width: 42px; height: 42px; }

/* Producto */
.hp-foto { aspect-ratio: 4 / 3; max-height: 44vh; width: 100%; background: var(--arena); overflow: hidden; border-radius: 24px 24px 0 0; }
.hp-foto img { width: 100%; height: 100%; object-fit: cover; animation: acercar .8s var(--suave); }
@keyframes acercar { from { transform: scale(1.06); } }
.hp-info { padding: 16px 18px 4px; }
.hp-info h2 { font-size: 27px; }
.hp-detalle { color: var(--turquesa-osc); font-weight: 600; font-size: 14px; margin-top: 4px; }
.hp-desc { color: var(--gris); margin: 8px 0 0; }
.hp-precio { margin-top: 10px; font-size: 20px; font-weight: 700; color: var(--cafe-osc); display: flex; gap: 8px; align-items: baseline; }
.hp-precio s { font-size: 15px; color: var(--gris); font-weight: 500; }
.grupo { padding: 14px 18px 4px; border: 0; margin: 0; }
.grupo legend, .grupo-titulo { font-weight: 700; font-size: 16px; color: var(--cafe-osc); display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; margin-bottom: 10px; }
.grupo legend small, .grupo-titulo small { font: 600 12px var(--texto); color: var(--turquesa-osc); background: var(--turquesa-claro); padding: 3px 9px; border-radius: 999px; }
.grupo.error legend small { background: #FBE3EE; color: var(--rosa-osc); }
.grupo.error { animation: sacudir .4s; }
@keyframes sacudir { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.opciones { display: grid; gap: 8px; }
.opcion { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; border-radius: 14px; background: var(--blanco); border: 2px solid var(--linea); cursor: pointer; transition: border-color .2s, background .2s; }
.opcion:has(input:checked) { border-color: var(--cafe-osc); background: #fffdfb; }
.opcion input { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linea); margin: 0; flex: none; display: grid; place-items: center; transition: border-color .2s; }
.opcion input:checked { border-color: var(--cafe-osc); }
.opcion input:checked::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--cafe-osc); animation: pulso .3s var(--resorte); }
.opcion input:focus-visible { outline: 3px solid var(--turquesa-osc); outline-offset: 2px; }
.opcion span { flex: 1; font-weight: 600; }
.opcion b { font-weight: 700; color: var(--cafe-osc); }
.opcion s { color: var(--gris); font-size: 13px; margin-right: 6px; font-weight: 500; }
.sabores { display: flex; flex-wrap: wrap; gap: 8px; }
.sabor { position: relative; }
.sabor input { position: absolute; opacity: 0; inset: 0; }
.sabor span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 2px solid var(--linea); background: var(--blanco); font-weight: 600; font-size: 14.5px; transition: all .2s; cursor: pointer; }
.sabor input:checked + span { background: var(--cafe-osc); border-color: var(--cafe-osc); color: #fff; }
.sabor input:focus-visible + span { outline: 3px solid var(--turquesa-osc); outline-offset: 2px; }
.nota-abrir { border: 0; background: none; color: var(--turquesa-osc); font-weight: 700; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo > span { font-weight: 600; font-size: 14.5px; color: var(--cafe-osc); }
.campo > span small { font-weight: 500; color: var(--gris); }
.campo input, .campo textarea, .campo select { width: 100%; border: 2px solid var(--linea); border-radius: 14px; background: var(--blanco); padding: 12px 14px; min-height: 50px; font-size: 16px; transition: border-color .2s; }
.campo textarea { min-height: 76px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--turquesa); outline: none; }
.campo.error input, .campo.error textarea { border-color: var(--rosa-osc); }
.campo .error-texto { color: var(--rosa-osc); font-size: 13px; font-weight: 600; }
.cantidad { display: flex; align-items: center; background: var(--blanco); border: 2px solid var(--linea); border-radius: 999px; height: 52px; flex: none; }
.cantidad button { width: 46px; height: 48px; border: 0; background: none; display: grid; place-items: center; color: var(--cafe-osc); border-radius: 50%; }
.cantidad button:disabled { opacity: .3; }
.cantidad output { min-width: 24px; text-align: center; font-weight: 700; font-size: 17px; }
.hoja-pie .boton { flex: 1; }

/* Carrito */
.pasos { display: flex; gap: 6px; padding: 0 16px 8px; }
.pasos span { flex: 1; height: 4px; border-radius: 2px; background: var(--linea); transition: background .4s; }
.pasos span.on { background: var(--turquesa); }
.linea { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--linea); animation: aparecer .35s var(--suave) both; }
.linea img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--arena); }
.linea b { display: block; font-size: 15px; line-height: 1.25; }
.linea small { display: block; color: var(--gris); font-size: 13px; margin-top: 2px; }
.linea .linea-precio { font-weight: 700; color: var(--cafe-osc); margin-top: 4px; }
.linea .cantidad { height: 40px; border-width: 1.5px; }
.linea .cantidad button { width: 36px; height: 36px; }
.linea .cantidad svg { width: 18px; height: 18px; }
.linea.agotada { opacity: .65; }
.linea.agotada .linea-precio { color: var(--rosa-osc); }
.quitar { border: 0; background: none; color: var(--rosa-osc); font-weight: 700; min-height: 40px; padding: 0 8px; }
.resumen { margin: 14px 16px; padding: 14px 16px; background: var(--blanco); border-radius: var(--radio-s); display: grid; gap: 6px; }
.resumen div { display: flex; justify-content: space-between; color: var(--gris); }
.resumen .total { color: var(--tinta); font-weight: 700; font-size: 18px; border-top: 1px dashed var(--linea); padding-top: 8px; margin-top: 2px; }
.nota-suave { margin: 0 16px 14px; padding: 12px 14px; border-radius: var(--radio-s); background: var(--turquesa-claro); color: var(--turquesa-osc); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.nota-suave svg { width: 20px; height: 20px; margin-top: 1px; }
.nota-alerta { background: #FBE3EE; color: var(--rosa-osc); }
.formulario { padding: 8px 16px 4px; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.segmento label { position: relative; }
.segmento input { position: absolute; opacity: 0; inset: 0; }
.segmento span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; border-radius: 14px; border: 2px solid var(--linea); background: var(--blanco); font-weight: 700; color: var(--cafe-osc); cursor: pointer; transition: all .2s; text-align: center; padding: 8px; font-size: 14.5px; }
.segmento input:checked + span { border-color: var(--cafe-osc); background: var(--cafe-osc); color: #fff; }
.segmento input:focus-visible + span { outline: 3px solid var(--turquesa-osc); outline-offset: 2px; }
.recordar { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--gris); min-height: 44px; }
.recordar input { width: 20px; height: 20px; accent-color: var(--cafe-osc); }
.listo { text-align: center; padding: 18px 22px 8px; }
.listo-icono { width: 86px; height: 86px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; margin: 4px auto 16px; animation: aparecer-check .6s var(--resorte); box-shadow: 0 12px 30px rgba(31, 168, 85, .35); }
.listo-icono svg { width: 46px; height: 46px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo .5s .25s forwards; }
@keyframes aparecer-check { from { transform: scale(.3); opacity: 0; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.listo h3 { font-size: 26px; }
.listo p { color: var(--gris); margin: 8px 0 0; }
.listo .codigo { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--arena); font-weight: 700; color: var(--cafe-osc); letter-spacing: .04em; }
.confeti { position: fixed; top: 40%; left: 50%; width: 9px; height: 14px; z-index: 60; pointer-events: none; border-radius: 2px; }
.repetir { margin: 0 16px 16px; }

/* ——— Buscador ——— */
.buscador { position: fixed; inset: 0; z-index: 45; background: var(--crema); display: flex; flex-direction: column; animation: entrar-buscador .3s var(--suave); }
@keyframes entrar-buscador { from { opacity: 0; transform: translateY(12px); } }
.buscador-cabeza { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; border-bottom: 1px solid var(--linea); }
.buscador-cabeza svg { color: var(--turquesa-osc); }
.buscador-cabeza input { flex: 1; border: 0; background: var(--blanco); border-radius: 999px; min-height: 48px; padding: 0 18px; font-size: 16px; box-shadow: inset 0 0 0 2px var(--linea); }
.buscador-cabeza input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--turquesa); }
.buscador-sugerencias { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.buscador-sugerencias button { border: 1px solid var(--linea); background: var(--blanco); border-radius: 999px; min-height: 40px; padding: 0 14px; font-weight: 600; color: var(--cafe-osc); }
.buscador-resultados { overflow-y: auto; padding: 12px 16px 40px; display: grid; gap: 12px; align-content: start; max-width: 1100px; width: 100%; margin: 0 auto; }

/* ——— Avisos flotantes y animación al agregar ——— */
.aviso-flotante { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .3s var(--suave); z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }
.volador { position: fixed; z-index: 80; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 8px 20px rgba(43, 33, 32, .3); border: 3px solid #fff; }
.sin-js { padding: 20px; text-align: center; }

@media (min-width: 760px) {
  .hero { padding-top: 54px; padding-bottom: 80px; }
  .hero-logo { width: 200px; }
  .servicio-pista { grid-template-columns: repeat(4, 1fr); }
  .promo { flex-basis: 480px; min-height: 176px; }
  .fav { flex-basis: 190px; }
  .historia { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: stretch; }
  .historia-media { min-height: 360px; }
  .historia-media img { height: 100%; aspect-ratio: auto; }
  .historia-texto { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}

/* ——— Para acompañar el pedido (sugerencias en el carrito) ——— */
.sugeridos { margin: 4px 0 14px; }
.sugeridos h4 { margin: 0 16px 8px; font: 600 17px var(--display); color: var(--cafe-osc); }
.sugeridos-fila { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sugeridos-fila::-webkit-scrollbar { display: none; }
.sugerido { position: relative; flex: 0 0 132px; scroll-snap-align: start; background: var(--blanco); border-radius: var(--radio-s); box-shadow: var(--sombra); padding: 8px 8px 10px; cursor: pointer; }
.sugerido img, .sugerido-sin { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--arena); display: block; margin-bottom: 6px; }
.sugerido b { display: block; font-size: 13.5px; line-height: 1.25; color: var(--tinta); min-height: 34px; }
.sugerido span.tnum { font-size: 13px; color: var(--gris); font-weight: 600; }
.sugerido-mas { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cafe-osc); color: #fff; }
.sugerido-mas svg { width: 18px; height: 18px; }
.sugerido-mas:active { transform: scale(.92); }

/* ——— Recomendar después del pedido ——— */
.recomendar { margin: 18px 16px 4px; padding: 14px; border-radius: var(--radio-s); background: var(--arena); text-align: center; }
.recomendar p { margin: 0 0 10px; color: var(--cafe-osc); font-size: 14.5px; }
