/* tienda/tienda.css — Página pública de Festive Topper Co.
   Estilo editorial al estilo Apple: mucho aire, tipografía grande, animación suave al desplazarse.
   Pensada primero para celular. Modo claro y oscuro automático. Sin librerías. */

:root {
    --bg: #F6F2EA; --bg2: #EDE7D9; --ink: #1D1D1F; --sub: #6A6A70; --linea: rgba(29,29,31,.12);
    --acc: #2F4A33; --acc-soft: #E3EDDB; --on: #FFFFFF; --salvia: #8CC594;
    --pincel: #D6E6C4; --profundo: #1F3323; --glass: rgba(246,242,234,.74);
    --warn: #9A5B00; --err: #C0392B;
    --t0: #DCE9D2; --t1: #F2E2D4; --t2: #F0DADA; --t3: #F1EACB; --t4: #DCE7EA;
    --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
    --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
    --sombra: 0 1px 2px rgba(30,40,25,.06), 0 22px 44px -22px rgba(30,50,30,.32);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
    overflow-x: hidden; touch-action: manipulation; padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #0A84FF; outline-offset: 3px; border-radius: 6px; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.saltar { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--acc); color: var(--on); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.saltar:focus { top: 12px; }
.t0 { --tono: var(--t0); } .t1 { --tono: var(--t1); } .t2 { --tono: var(--t2); } .t3 { --tono: var(--t3); } .t4 { --tono: var(--t4); }

/* Aparecer al desplazarse (solo con JavaScript) */
.js .rev { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) calc(var(--d, 0) * 1ms), transform .9s var(--ease) calc(var(--d, 0) * 1ms); }
.js .rev.visto { opacity: 1; transform: none; }

.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sub); }
h2 { font: 500 clamp(2.1rem, 6.4vw, 3.7rem)/1.04 var(--serif); letter-spacing: -.03em; margin-top: .4em; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
    background: transparent; font: 600 1rem var(--sans); text-decoration: none; transition: transform .2s var(--spring), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.boton:active { transform: scale(.96); }
.boton svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.boton:hover svg { transform: translateX(3px); }
.boton.lleno { background: var(--acc); color: var(--on); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
.boton.texto { padding: 0 8px; color: var(--acc); }
.boton.contorno { border-color: var(--acc); color: var(--acc); }
.boton.claro { background: #F6F2EA; color: #1F3323; }
.boton.wa { background: #25D366; color: #06240F; }
.boton:disabled { opacity: .55; cursor: default; }

/* ---------- Barra superior ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: env(safe-area-inset-top); transition: background .4s, box-shadow .4s; }
.nav.scrolled { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 1px 0 var(--linea); }
.nav-in { width: min(100% - 32px, 1180px); margin-inline: auto; height: 60px; display: flex; align-items: center; gap: 20px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.08rem var(--serif); letter-spacing: -.01em; min-width: 0; margin-right: auto; }
.marca img { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.14); flex: none; }
.marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: none; gap: 30px; }
.nav-links a { font-size: .86rem; text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-acc { display: flex; align-items: center; gap: 6px; }
.btn-equipo, .btn-bolsa { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; border-radius: 999px; border: 0; background: transparent; text-decoration: none; transition: background .2s, transform .2s var(--spring); }
.btn-equipo { padding: 0 12px; font-size: .84rem; font-weight: 600; opacity: .8; }
.btn-equipo span { display: none; }
.btn-equipo:hover, .btn-bolsa:hover { background: var(--acc-soft); opacity: 1; }
.btn-equipo svg, .btn-bolsa svg { width: 22px; height: 22px; }
.btn-bolsa:active { transform: scale(.9); }
.bolsa-n { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--acc); color: var(--on); font: 700 .72rem/19px var(--sans); text-align: center; transform: scale(0); transition: transform .35s var(--spring); }
.bolsa-n.hay { transform: scale(1); }
@media (min-width: 900px) { .nav-links { display: flex; margin-inline: auto; } .marca { margin-right: 0; } .btn-equipo span { display: inline; } }

/* ---------- Portada ---------- */
.hero { position: relative; overflow-x: clip; width: min(100% - 40px, 1180px); margin-inline: auto; min-height: 100svh; display: grid; align-content: center; gap: 28px;
    padding: calc(96px + env(safe-area-inset-top)) 0 80px; }
.hero-texto { transform: translateY(calc(var(--p, 0) * -50px)); opacity: calc(1 - var(--p, 0) * 1.3); will-change: transform, opacity; }
.hero h1 { font: 500 clamp(2.75rem, 9.6vw, 6.6rem)/1.02 var(--serif); letter-spacing: -.04em; margin: .35em 0 .5em; }
.hero h1 em { font-style: italic; color: var(--acc); }
.linea { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.linea > span { display: inline-block; white-space: nowrap; }
.js .linea > span { transform: translateY(112%); transition: transform 1.1s var(--ease) calc(var(--i) * .13s + .2s); }
.js.listo .linea > span { transform: none; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--sub); max-width: 34em; }
.js .lead, .js .hero-cta, .js .hero .eyebrow { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s; }
.js.listo .lead, .js.listo .hero-cta, .js.listo .hero .eyebrow { opacity: 1; transform: none; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }

.hero-escena { position: relative; width: min(74vw, 440px); aspect-ratio: 1; justify-self: center;
    transform: translateY(calc(var(--p, 0) * -80px)) scale(calc(1 - var(--p, 0) * .1)); will-change: transform; }
.pincel { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; fill: var(--pincel); transform: rotate(calc(var(--p, 0) * 10deg)); }
.hero-logo { position: absolute; inset: 15%; width: 70%; height: 70%; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px -24px rgba(20,40,25,.5); animation: flota 9s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.js .hero-escena { opacity: 0; transition: opacity 1.4s var(--ease) .5s; }
.js.listo .hero-escena { opacity: 1; }
@keyframes baja { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }
@media (min-width: 900px) {
    .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-bottom: 110px; }
    .hero h1 { font-size: clamp(3rem, 6.4vw, 5.8rem); }
    .hero-escena { width: min(100%, 520px); }
}

/* ---------- Cinta ---------- */
.cinta-caja { overflow: hidden; padding: 28px 0 6px; }
.cinta { background: var(--acc-soft); color: var(--acc); overflow: hidden; padding: 16px 0; border-block: 1px solid var(--linea); }
.cinta-fila { display: flex; align-items: center; gap: 30px; width: max-content; animation: cinta 46s linear infinite; font: italic 400 clamp(1.15rem, 2.6vw, 1.55rem)/1 var(--serif); white-space: nowrap; }
.cinta i { width: 9px; height: 9px; border-radius: 50%; background: var(--salvia); flex: none; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Bloques ---------- */
.bloque { width: min(100% - 40px, 1180px); margin: clamp(80px, 13vw, 160px) auto 0; }
.cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(26px, 4.5vw, 50px); }
.cuenta { color: var(--sub); font-size: .95rem; }
.flechas { display: none; gap: 8px; }
.flechas button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); background: transparent; font-size: 1.15rem; transition: background .2s, color .2s, transform .2s var(--spring); }
.flechas button:hover { background: var(--acc); color: var(--on); border-color: var(--acc); }
.flechas button:active { transform: scale(.9); }
@media (min-width: 900px) { .flechas { display: flex; } }

/* Categorías */
.tiles, .carrusel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 20px 26px; margin-inline: -20px; overscroll-behavior-x: contain; }
.tiles::-webkit-scrollbar, .carrusel::-webkit-scrollbar { display: none; }
.tile { position: relative; flex: 0 0 clamp(236px, 70vw, 292px); aspect-ratio: 4/5; border: 0; border-radius: 30px; overflow: hidden; scroll-snap-align: start; padding: 0; text-align: left; background: var(--tono); isolation: isolate; box-shadow: var(--sombra); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: -1; }
.tile .ph { position: absolute; right: -.04em; top: -.14em; font: italic 500 11rem/1 var(--serif); color: var(--acc); opacity: .17; transition: transform 1s var(--ease); }
.tile.con-foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,18,10,.7), rgba(8,18,10,0) 58%); }
.tile-t { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 4px; }
.tile-t b { font: 500 1.7rem/1.05 var(--serif); letter-spacing: -.02em; }
.tile-t small { font-size: .88rem; opacity: .7; }
.tile.con-foto .tile-t { color: #fff; }
.tile-flecha { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.82); color: #1F3323; transition: transform .5s var(--spring), background .3s; }
.tile-flecha svg { width: 18px; height: 18px; }
@media (hover: hover) { .tile:hover img, .tile:hover .ph { transform: scale(1.07); } .tile:hover .tile-flecha { transform: rotate(45deg); background: #fff; } }

/* ---------- Productos ---------- */
.prod { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.prod-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--tono); box-shadow: var(--sombra); transition: transform .6s var(--ease); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prod .ph { font: italic 500 clamp(4.2rem, 15vw, 6.4rem)/1 var(--serif); color: var(--acc); opacity: .32; }
@media (hover: hover) { .prod-media:hover { transform: translateY(-5px); } .prod-media:hover img { transform: scale(1.06); } }
.etiqueta { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.9); color: #7A4A00; font: 700 .72rem var(--sans); }
.prod-info { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.prod-cat { font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.prod-nombre { font: 600 1rem/1.28 var(--sans); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.56em; }
.prod-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 42px; }
.precio { font: 650 1.15rem var(--sans); letter-spacing: -.02em; }
.precio.grande { font-size: 1.7rem; }
.ctrl { display: flex; align-items: center; }
.mas { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--acc); color: var(--on); transition: transform .25s var(--spring), box-shadow .25s; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--acc) 80%, transparent); }
.mas svg { width: 18px; height: 18px; }
.mas:active { transform: scale(.86); }
.paso { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--acc-soft); }
.paso button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--acc); font-size: 1.3rem; font-weight: 600; line-height: 1; transition: background .2s, transform .2s var(--spring); }
.paso button:active { transform: scale(.85); background: var(--bg); }
.paso output { min-width: 26px; text-align: center; font-weight: 700; }
.en-pedido .mas { display: none; }
.en-pedido .paso { display: flex; animation: pop .4s var(--spring); }
.en-pedido .agregar-vista { display: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
@media (min-width: 720px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; } }
@media (min-width: 1000px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod[hidden] { display: none; }
.carrusel .prod { flex: 0 0 clamp(210px, 62vw, 280px); scroll-snap-align: start; }
.vacio { text-align: center; color: var(--sub); padding: 48px 12px; }
.aviso-cerrado { width: min(100% - 40px, 1180px); margin: 30px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--acc-soft); }

/* Buscador y categorías (se quedan pegados arriba al desplazarse) */
.filtros { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 30; padding: 12px 0 10px; margin-bottom: 26px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.buscador { position: relative; }
.buscador svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--sub); pointer-events: none; }
.buscador input { width: 100%; height: 52px; padding: 0 18px 0 48px; border-radius: 999px; border: 1px solid var(--linea); background: color-mix(in srgb, var(--bg2) 70%, var(--bg)); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.buscador input:focus { outline: none; border-color: var(--acc); background: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; font: 600 .9rem var(--sans); transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--acc); }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on); }

/* ---------- Qué hacemos ---------- */
.servicios { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.servicio { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 4vw, 52px); width: 100%; padding: clamp(24px, 3.6vw, 42px) 4px; border: 0; border-bottom: 1px solid var(--linea); background: transparent; color: inherit; text-align: left; transition: padding .6s var(--ease); }
button.servicio { cursor: pointer; }
.s-n { font: italic 400 1rem var(--serif); color: var(--sub); }
.s-t b { display: block; font: 500 clamp(1.6rem, 4.8vw, 2.8rem)/1.08 var(--serif); letter-spacing: -.025em; }
.s-t small { display: block; margin-top: 10px; color: var(--sub); font-size: 1rem; max-width: 52ch; }
.s-f { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); transition: transform .5s var(--spring), background .3s, color .3s; }
.s-f svg { width: 18px; height: 18px; }
@media (hover: hover) { button.servicio:hover { padding-left: 18px; } button.servicio:hover .s-f { background: var(--acc); color: var(--on); border-color: var(--acc); transform: rotate(45deg); } }

/* ---------- Sobre nosotros ---------- */
.manifiesto { font: 500 clamp(1.55rem, 4.4vw, 2.7rem)/1.26 var(--serif); letter-spacing: -.02em; max-width: 27em; }
.js .manifiesto .pal { opacity: .16; transition: opacity .5s; }
.js .manifiesto .pal.on { opacity: 1; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: clamp(40px, 7vw, 80px) 0 0; padding-top: 28px; border-top: 1px solid var(--linea); }
.cifras dt { order: 2; font-size: .86rem; color: var(--sub); margin-top: 6px; }
.cifras dd { margin: 0; font: 500 clamp(2.6rem, 9vw, 5rem)/1 var(--serif); letter-spacing: -.04em; color: var(--acc); }
.cifras div { display: flex; flex-direction: column; }

/* ---------- Cómo pedir ---------- */
.pasos { list-style: none; margin: 0; padding: 0; }
.pasos li { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 6vw, 70px); align-items: start; padding: clamp(26px, 4.4vw, 46px) 0; border-top: 1px solid var(--linea); }
.pasos li:last-child { border-bottom: 1px solid var(--linea); }
.num { font: italic 400 clamp(4rem, 13vw, 7.6rem)/.85 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--acc); min-width: .7em; }
.pasos h3 { font: 500 clamp(1.5rem, 3.6vw, 2.2rem)/1.15 var(--serif); letter-spacing: -.02em; margin: .15em 0 .45em; }
.pasos p { color: var(--sub); max-width: 50ch; }

/* ---------- Invitación ---------- */
.invita { position: relative; overflow: hidden; isolation: isolate; width: min(100% - 24px, 1180px); margin: clamp(80px, 13vw, 160px) auto 0; padding: clamp(56px, 10vw, 120px) clamp(24px, 6vw, 80px);
    border-radius: clamp(30px, 5vw, 52px); background: var(--profundo); color: #F3EFE4; text-align: center; }
.invita h2 { color: #F6F2EA; font-size: clamp(2.4rem, 8vw, 5.4rem); margin: 0; }
.invita p { max-width: 38ch; margin: 1.1em auto 1.8em; opacity: .78; font-size: 1.1rem; }
.invita-pincel { position: absolute; z-index: -1; width: min(640px, 110%); right: -12%; bottom: -34%; fill: #3F6444; opacity: .5; }

/* ---------- Contacto ---------- */
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 28px; margin: 0; padding-top: 30px; border-top: 1px solid var(--linea); }
.datos dt { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px; }
.datos dd { margin: 0; font: 400 1.35rem/1.35 var(--serif); }
.enlace { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font: 600 1rem var(--sans); text-decoration: none; margin-top: 6px; }
.enlace svg { width: 16px; height: 16px; }
.enlace:hover { text-decoration: underline; }
.redes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pie { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--linea); }
.pie-in { width: min(100% - 40px, 1180px); margin-inline: auto; padding: 26px 0 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .86rem; color: var(--sub); }
.pie a { margin-left: 18px; text-decoration: none; }
.pie a:first-child { margin-left: 0; }
.pie a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Barra flotante del pedido ---------- */
.barra-pedido { position: fixed; left: 50%; translate: -50% 0; bottom: calc(env(safe-area-inset-bottom) + 14px); width: min(100% - 24px, 460px); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--linea); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 18px 44px -12px rgba(0,0,0,.35); transition: transform .55s var(--spring), opacity .25s; }
.barra-pedido[hidden] { display: flex; transform: translateY(170%); opacity: 0; pointer-events: none; }
.barra-pedido small { display: block; color: var(--sub); font-size: .8rem; line-height: 1.1; }
.barra-pedido strong { font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em; }
.barra-pedido .boton { margin-left: auto; min-height: 46px; }

/* ---------- Ventanas (vista rápida y pedido) ---------- */
.fondo { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.fondo.visible { opacity: 1; pointer-events: auto; }
.cerrar { position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--bg2) 90%, transparent); font-size: 1.05rem; transition: transform .25s var(--spring); }
.cerrar:active { transform: scale(.88); }

.vista { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; border-radius: 32px 32px 0 0; background: var(--bg); box-shadow: 0 -24px 60px rgba(0,0,0,.35);
    display: grid; transform: translateY(105%); visibility: hidden; transition: transform .55s var(--spring), visibility .55s; padding-bottom: env(safe-area-inset-bottom); }
.vista.abierto { transform: none; visibility: visible; }
.vista > .cerrar { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.85); color: #1D1D1F; }
.vista-img { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1 / .82; background: var(--tono); }
.vista-img img { width: 100%; height: 100%; object-fit: cover; }
.vista-img .ph { font: italic 500 9rem/1 var(--serif); color: var(--acc); opacity: .3; }
.vista-info { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 30px; }
.vista-info h2 { font: 500 clamp(1.7rem, 5vw, 2.4rem)/1.1 var(--serif); margin: 0; letter-spacing: -.025em; }
.pocas { color: var(--warn); font-weight: 600; font-size: .92rem; }
.vista-acc { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.vista-acc .boton { flex: 1; min-height: 54px; }
.vista-acc .paso { padding: 5px; }
.vista-acc .paso button { width: 44px; height: 44px; }
@media (min-width: 760px) {
    .vista { inset: 0; margin: auto; width: min(900px, calc(100% - 48px)); height: min(540px, calc(100dvh - 48px)); max-height: none; grid-template-columns: 1fr 1fr; border-radius: 36px; transform: scale(.94); opacity: 0; transition: transform .5s var(--spring), opacity .3s, visibility .5s; overflow: hidden; }
    .vista.abierto { transform: none; opacity: 1; }
    .vista-img { aspect-ratio: auto; }
    .vista-info { justify-content: center; padding: 40px; }
}

.panel { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 32px 32px 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,.35);
    padding: 8px 22px calc(env(safe-area-inset-bottom) + 24px); transform: translateY(105%); visibility: hidden; transition: transform .55s var(--spring), visibility .55s; }
.panel.abierto { transform: none; visibility: visible; }
@media (min-width: 760px) { .panel { left: auto; top: 0; width: 460px; max-height: none; border-radius: 36px 0 0 36px; transform: translateX(105%); } .panel.abierto { transform: none; } }
.agarre { width: 44px; height: 5px; border-radius: 3px; background: var(--sub); opacity: .35; margin: 6px auto 12px; }
@media (min-width: 760px) { .agarre { display: none; } .panel { padding-top: 24px; } }
.panel-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.panel-cab h2 { font: 500 1.8rem/1 var(--serif); margin: 0; letter-spacing: -.02em; }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea-p { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); animation: entra .4s var(--ease); }
.linea-p b { font-weight: 600; overflow-wrap: anywhere; }
.linea-p .sub-linea { font-weight: 700; color: var(--acc); }
.linea-p .paso { display: flex; grid-column: 1 / -1; justify-self: start; }
.linea-p .quitar { margin-left: 12px; background: none; border: 0; color: var(--err); font-weight: 600; font-size: .9rem; padding: 0 8px; width: auto; height: 36px; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; font-size: 1.15rem; }
.total-fila strong { font: 500 2rem var(--serif); letter-spacing: -.03em; color: var(--acc); }
.campo { display: grid; gap: 7px; margin: 16px 0 0; }
.campo label, .campo legend { font-weight: 600; font-size: .9rem; }
.campo input[type=text], .campo input[type=tel], .campo textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--linea); background: color-mix(in srgb, var(--bg2) 70%, var(--bg)); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); }
.campo textarea { min-height: 84px; resize: vertical; }
.campo fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion span { display: grid; place-items: center; text-align: center; min-height: 54px; padding: 6px 10px; border-radius: 16px; border: 1.5px solid var(--linea); font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s, color .2s; }
.opcion input:checked + span { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.opcion input:focus-visible + span { outline: 3px solid #0A84FF; outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--sub); margin: 18px 0; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--acc); flex: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); padding: 11px 15px; border-radius: 14px; font-weight: 600; margin-bottom: 14px; }
.enviar { width: 100%; min-height: 56px; font-size: 1.05rem; }
.exito { text-align: center; padding: 22px 4px 6px; }
.check { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font-size: 2.3rem; animation: pop .55s var(--spring); }
.exito h2 { font: 500 2rem var(--serif); margin: 0 0 8px; }
.exito p { color: var(--sub); margin: 0 0 18px; }
.codigo { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-weight: 800; margin-bottom: 14px; }
.exito .boton { width: 100%; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; translate: -50% 0; top: calc(env(safe-area-inset-top) + 74px); z-index: 120; max-width: min(92vw, 420px); padding: 13px 20px; border-radius: 18px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 14px 34px rgba(0,0,0,.32); animation: entra .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .rev, .js .linea > span, .js .lead, .js .hero-cta, .js .hero .eyebrow, .js .hero-escena { opacity: 1 !important; transform: none !important; }
    .hero-texto, .hero-escena, .pincel { transform: none !important; opacity: 1 !important; }
    .js .manifiesto .pal { opacity: 1 !important; }
}

.vaciar { display: block; margin: 4px 0 14px auto; background: none; border: 0; color: var(--err); font: 600 .9rem var(--sans, inherit); padding: 8px 0; width: auto; height: auto; cursor: pointer; }
.vaciar.seguro { background: var(--err); color: #fff; padding: 8px 14px; border-radius: 980px; }

.pie-cols { width: min(100% - 40px, 1180px); margin-inline: auto; padding: 44px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pie-cols h3 { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin: 0 0 14px; }
.pie-cols a { display: block; margin: 0 0 11px; font-size: .92rem; color: var(--sub); text-decoration: none; }
.pie-cols a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .pie-cols { grid-template-columns: repeat(2, 1fr); } }
.pie-in { margin-top: 18px; border-top: 1px solid var(--linea); }
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 520px; margin-inline: auto 0; background: var(--bg); color: var(--ink); border: 1px solid var(--linea); border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.18); font-size: .9rem; line-height: 1.5; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 14px; } .cookies a { color: var(--acc); }
.cookies-bt { display: flex; gap: 10px; justify-content: flex-end; }
.cookies-bt .boton { padding: 10px 20px; }
@media (max-width: 560px) { .cookies { margin-inline: 0; } .cookies-bt .boton { flex: 1; } }
/* Valores (reemplaza la cinta) */
.valores { width: min(100% - 40px, 1180px); margin: clamp(26px, 4vw, 44px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.valor { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: var(--bg2); border: 1px solid var(--linea); }
.v-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); }
.v-i svg { width: 22px; height: 22px; }
.valor b { display: block; font-size: .98rem; }
.valor small { display: block; color: var(--sub); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
@media (max-width: 760px) { .valores { grid-template-columns: 1fr; gap: 10px; } .valor { padding: 14px 16px; } }

/* Catálogo: orden, chips con cantidades y filtro animado */
.orden { display: flex; align-items: center; gap: 10px; margin: 14px 0; justify-content: flex-end; font-size: .88rem; color: var(--sub); }
.orden select { appearance: none; -webkit-appearance: none; background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236A6A70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--linea); border-radius: 999px; padding: 10px 38px 10px 16px; color: var(--ink); font: inherit; font-size: .9rem; min-height: 42px; cursor: pointer; }
.chip em { font-style: normal; opacity: .55; font-size: .8em; margin-left: 4px; }
.chip[aria-pressed="true"] em { opacity: .8; }
.prod.entra { animation: entraProd .55s var(--ease) both; animation-delay: var(--e, 0ms); }
@keyframes entraProd { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .prod.entra { animation: none; } }
/* Asistente virtual */
.chat-fab { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 55; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--acc); color: var(--on); font: 600 .95rem var(--sans, inherit); box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--acc) 70%, transparent), 0 2px 6px rgba(0,0,0,.18); cursor: pointer; transition: transform .3s var(--spring), bottom .35s var(--ease); }
.chat-fab:hover { transform: translateY(-3px); } .chat-fab:active { transform: scale(.95); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--acc); opacity: 0; animation: chatPulso 2.8s ease-out 3; }
@keyframes chatPulso { 0% { transform: scale(.94); opacity: .55; } 100% { transform: scale(1.18); opacity: 0; } }
body.con-barra .chat-fab { bottom: calc(env(safe-area-inset-bottom) + 90px); }
#chat.activo .chat-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
#chat.invita .chat-fab-txt { animation: chatTexto .6s var(--spring); }
@keyframes chatTexto { 0% { transform: scale(.7); } 100% { transform: none; } }
@media (max-width: 560px) { .chat-fab { height: 50px; padding: 0 16px 0 14px; } }

.chat-panel { position: fixed; z-index: 100; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); width: min(390px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border: 1px solid var(--linea); border-radius: 26px; box-shadow: 0 30px 80px -10px rgba(0,0,0,.35); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.96); transform-origin: bottom right; transition: opacity .28s var(--ease), transform .35s var(--spring); }
.chat-panel[hidden] { display: none; }
.chat-panel.abierto { opacity: 1; transform: none; }
@media (max-width: 560px) { .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(78dvh, 640px); border-radius: 28px 28px 0 0; } }
.chat-cab { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; background: var(--acc); color: var(--on); }
.chat-cab div { flex: 1; min-width: 0; } .chat-cab strong { display: block; font: 500 1.1rem/1.15 var(--serif); } .chat-cab small { opacity: .8; font-size: .78rem; }
.chat-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--on) 18%, transparent); font: italic 600 1rem var(--serif); }
.chat-cerrar { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); font-size: 1rem; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: .93rem; line-height: 1.45; animation: chatEntra .35s var(--spring); overflow-wrap: anywhere; }
@keyframes chatEntra { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.chat-msg.bot { align-self: flex-start; background: var(--bg2); border-bottom-left-radius: 6px; }
.chat-msg.yo { align-self: flex-end; background: var(--acc); color: var(--on); border-bottom-right-radius: 6px; }
.chat-msg.escribiendo { display: flex; gap: 5px; padding: 15px 16px; }
.chat-msg.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--sub); animation: chatPunto 1s infinite ease-in-out; }
.chat-msg.escribiendo i:nth-child(2) { animation-delay: .15s; } .chat-msg.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes chatPunto { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-acc { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 92%; animation: chatEntra .4s var(--spring); }
.chat-acc a, .chat-acc button, .chat-chips button, .chat-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--acc); background: transparent; color: var(--acc); font: 600 .86rem var(--sans, inherit); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; text-align: left; }
.chat-acc a:hover, .chat-acc button:hover, .chat-chips button:hover, .chat-chips a:hover { background: var(--acc); color: var(--on); }
.chat-acc .es-wa, .chat-chips .es-wa { background: #25A55F; border-color: #25A55F; color: #fff; }
.chat-acc .es-wa:hover, .chat-chips .es-wa:hover { filter: brightness(1.08); background: #25A55F; }
.chat-chips { display: flex; gap: 8px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat-chips::-webkit-scrollbar { display: none; } .chat-chips button, .chat-chips a { flex: none; white-space: nowrap; min-height: 34px; font-size: .8rem; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--linea); }
.chat-form input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--linea); background: var(--bg2); color: var(--ink); padding: 0 18px; font: inherit; font-size: 16px; }
.chat-form input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.chat-form button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--acc); color: var(--on); display: grid; place-items: center; cursor: pointer; }
.chat-form button svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-msg, .chat-acc, .chat-fab, .chat-fab::after { animation: none !important; transition: none !important; } }