/* Catalogo publico: paginas 9:16 (se ajustan al ancho) + cuadricula. Portado del artefacto de Conypuntadas. */
:root{--crema:#F6EBDD;--madera:#5A3B2A;--fondo:#2b1d15;--blanco:#fff;--magenta:#D63384;--turq:#1FA5B8;--mandarina:#F27A21;--wa:#25D366;--acento:var(--turq);
  --vh:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
*{box-sizing:border-box;margin:0}
html,body{background:var(--fondo);color-scheme:light}
body{font-family:Nunito,system-ui,sans-serif;color:var(--madera)}
.pagina{container-type:inline-size;aspect-ratio:9/16;position:relative;overflow:hidden;background:var(--crema);scroll-snap-align:start}
.in{height:100%;display:flex;flex-direction:column;align-items:center;padding:17cqw 7cqw 5cqw}
.pagina[data-color=magenta]{--acento:var(--magenta)}.pagina[data-color=mandarina]{--acento:var(--mandarina)}.pagina[data-color=turq]{--acento:var(--turq)}
.fotos{margin-top:auto;display:grid;gap:2cqw;align-items:center;width:100%;justify-content:center}
.fotos.uno{grid-template-columns:72cqw}.fotos.dos{grid-template-columns:1fr 1fr;gap:3cqw;width:92cqw}
.fotos .f{position:relative;border-radius:4cqw;overflow:hidden;box-shadow:0 1.5cqw 4cqw rgba(90,59,42,.25);background:#4a2f20}
.fotos img{width:100%;height:auto;display:block}
.sinfoto{aspect-ratio:4/5;display:grid;place-items:center;color:var(--crema);font:700 4cqw Nunito;text-align:center;padding:4cqw}
.sello{position:absolute;top:2.5cqw;left:2.5cqw;width:19cqw;height:19cqw;border-radius:50%;background:var(--magenta);color:var(--crema);display:grid;place-items:center;text-align:center;font:800 3.1cqw/1.1 Nunito;transform:rotate(-10deg);box-shadow:0 1cqw 2cqw rgba(0,0,0,.3)}
.sello b{display:block;font-size:6cqw}
.info{text-align:center;margin:5cqw 0 auto;width:100%}
h1,h2{font-family:Fraunces,Georgia,serif;font-weight:800;line-height:1.05;text-wrap:balance}
h2{font-size:8cqw}.seccion{font:800 3.4cqw Nunito;letter-spacing:.25em;text-transform:uppercase;color:var(--acento)}
.desc{font-size:4cqw;line-height:1.35;margin:2.5cqw auto 0;max-width:84cqw}
.alerg{font-size:3.4cqw;line-height:1.3;margin:2cqw auto 0;max-width:84cqw;opacity:.85}.alerg b{font-weight:800}
.precio{font:800 10cqw Nunito;margin-top:3cqw}.precio small{font-size:3.5cqw;font-weight:700;opacity:.7;margin-left:1cqw}
.wa{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:2.5cqw;width:100%;height:12cqw;border-radius:6cqw;background:var(--wa);color:#fff;text-decoration:none;font:800 4.6cqw Nunito;box-shadow:0 1cqw 3cqw rgba(37,211,102,.4)}
.wa:focus-visible,.nav a:focus-visible,.redes a:focus-visible,button:focus-visible{outline:3px solid var(--magenta);outline-offset:3px}
.wa svg{width:6cqw;height:6cqw;fill:#fff}
.portada{background:var(--madera);color:var(--crema)}.portada .in{justify-content:center;text-align:center;padding-top:7cqw}
.portada .fotos{margin-top:0}.portada .fotos .f{border-radius:6cqw}.portada h1{font-size:13cqw;margin-top:7cqw}.portada p{font-size:4.6cqw;margin-top:2.5cqw;opacity:.9}
.portada .wa{margin-top:7cqw}
.porque .in{justify-content:center;text-align:center}.porque h2{margin-bottom:6cqw}
.razon{display:flex;gap:4cqw;align-items:center;text-align:left;margin:2.5cqw 0;background:var(--blanco);border-radius:4cqw;padding:4cqw 5cqw;width:100%}
.razon span{font-size:9cqw}.razon b{font:800 5cqw Fraunces,serif;display:block}.razon p{font-size:3.7cqw;line-height:1.3}
.cierre{background:var(--madera);color:var(--crema)}.cierre .in{justify-content:center;text-align:center}
.cierre h2{font-size:11cqw}.pasos{margin:6cqw 0;font-size:5cqw;line-height:1.7}
.redes{display:flex;flex-direction:column;gap:2cqw;margin-top:6cqw;font:800 4.6cqw Nunito}.redes a{color:var(--crema)}
.cierre .wa{margin-top:3cqw}

/* barra superior: secciones + selector Paginas/Cuadricula */
.nav{position:fixed;z-index:5;top:env(safe-area-inset-top,0px);left:50%;transform:translateX(-50%);width:min(100%,calc(var(--vh)*9/16));
  display:flex;gap:6px;overflow-x:auto;padding:10px 12px;background:linear-gradient(var(--crema) 65%,transparent);scrollbar-width:none;align-items:center}
.nav::-webkit-scrollbar{display:none}
.nav a,.nav button{flex:none;font:800 13px Nunito;padding:6px 14px;border-radius:20px;color:var(--madera);text-decoration:none;background:#fff;box-shadow:0 1px 3px rgba(90,59,42,.25);border:0;cursor:pointer}
.nav .vista{margin-left:auto;background:var(--magenta);color:#fff}

/* vista Paginas (telefono: una pagina por pantalla, deslizando) */
.app{height:var(--vh);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
.app::-webkit-scrollbar{display:none}
.app .pagina{width:min(100%,calc(var(--vh)*9/16));margin:0 auto}
@media (min-width:820px){
  .app{height:auto;overflow:visible;scroll-snap-type:none;max-width:1280px;margin:0 auto;padding:84px 28px 48px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
  .app .pagina{width:100%;border-radius:22px;box-shadow:0 12px 40px rgba(0,0,0,.45);scroll-margin-top:76px}
  .nav{width:100%;justify-content:center;background:linear-gradient(var(--fondo) 70%,transparent)}.nav .vista{margin-left:0}
}

/* vista Cuadricula: tarjetas compactas agrupadas por categoria */
.grid-view{display:none;max-width:1180px;margin:0 auto;padding:76px 16px 48px;color:var(--crema)}
body.cuadricula .app{display:none}body.cuadricula .grid-view{display:block}
.grid-view h2{font-size:26px;margin:28px 0 4px;color:var(--crema)}.grid-view .cat-desc{opacity:.85;font-size:15px;margin-bottom:14px;max-width:60ch}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.tarjeta{background:var(--crema);color:var(--madera);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;position:relative}
.tarjeta img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;background:#4a2f20}
.tarjeta .sello{width:62px;height:62px;font-size:10px;top:8px;left:8px}.tarjeta .sello b{font-size:18px}
.tarjeta .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.tarjeta h3{font:800 17px/1.15 Fraunces,Georgia,serif}.tarjeta p{font-size:13.5px;line-height:1.35}.tarjeta .al{font-size:12px;opacity:.85}
.tarjeta .pr{font:800 20px Nunito}.tarjeta .pr small{font-size:11px;opacity:.7}
.tarjeta a.wa2{margin-top:auto;display:flex;justify-content:center;align-items:center;gap:6px;height:38px;border-radius:19px;background:var(--wa);color:#fff;text-decoration:none;font:800 14px Nunito}
.tarjeta a.wa2 svg{width:18px;height:18px;fill:#fff}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
