/* =========================================================
   Lazo de Lúcuma · estilos
   Pastelería de obrador: crema de mantequilla, rosa empolvado, pistacho,
   chocolate amargo y frambuesa (solo para acciones).
   ========================================================= */

@font-face { font-family: "Young Serif"; src: url(../assets/fonts/young-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../assets/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Sacramento"; src: url(../assets/fonts/sacramento.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --crema: #fbf1dc;
  --crema-2: #f5e5c4;
  --papel: #fffaf0;
  --rosa: #f3d5d3;
  --rosa-2: #ecc0bd;
  --pistacho: #e0e9cb;
  --pistacho-2: #c3d3a4;
  --pistacho-osc: #4b6330;
  --choco: #2b1a14;
  --choco-2: #3b261d;
  --choco-suave: #5b4136;
  --frambuesa: #b8235a;
  --frambuesa-osc: #941b48;
  --kraft: #d8b386;
  --crema-txt: #fbf1dc;
  --crema-suave: rgba(251, 241, 220, .82);
  --serif: "Young Serif", "Georgia", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --manga: "Sacramento", "Snell Roundhand", cursive;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --resorte: cubic-bezier(.34, 1.56, .64, 1);
  --cab: 70px;
  --radio: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + 12px); overflow-x: clip; }
[hidden], .js [hidden] { display: none !important; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--choco); background: var(--crema); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--foco, var(--frambuesa)); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--papel); border-radius: 999px; }
.saltar:focus { top: 12px; }
.solo-js { display: none !important; }
.js .solo-js { display: revert !important; }
.js .nojs { display: none !important; }
.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }
.nota { font-size: .875rem; color: var(--choco-suave); }
.sec { position: relative; padding: clamp(96px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); overflow-x: clip; }
.sec-crema { background: var(--crema); }
.sec-rosa { background: var(--rosa); }
.sec-pistacho { background: var(--pistacho); }
.sec-choco { background: var(--choco); color: var(--crema-txt); --foco: var(--rosa); }
.sec-choco .nota { color: var(--crema-suave); }
.h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.sec-cab { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-cab .h2 { margin-bottom: 16px; }
.sec-cab p { font-size: 1.125rem; margin: 0; color: var(--choco-suave); }
.goteo { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(54px, 7vw, 100px); pointer-events: none; transform-origin: top; }

/* ---------- Botones de crema: se aplastan al presionar y gotean al pasar ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 28px; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .35s var(--resorte), background-color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn::after { /* gota de glaseado */
  content: ""; position: absolute; left: 50%; top: calc(100% - 4px); width: 12px; height: 16px; margin-left: -6px;
  border-radius: 0 0 8px 8px / 0 0 10px 10px; background: inherit; transform: scaleY(0); transform-origin: top; transition: transform .45s var(--resorte); pointer-events: none;
}
.btn:active { transform: scale(1.04, .9); transition-duration: .08s; }
.btn-accion { background: var(--frambuesa); color: #fff; box-shadow: 0 10px 22px -12px rgba(148, 27, 72, .9), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn-accion:hover { background: var(--frambuesa-osc); }
.btn-suave { border-color: var(--choco); color: var(--choco); background: transparent; }
.btn-suave:hover { background: rgba(43, 26, 20, .06); }
.btn-suave::after { display: none; }
.btn-claro { background: var(--crema); color: var(--choco); }
.btn-claro:hover { background: #fff; }
@media (hover: hover) { .btn-accion:hover::after, .btn-claro:hover::after { transform: scaleY(1); } }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: .9375rem; }
.btn-bloque { width: 100%; }
.btn-texto { padding: 8px 2px; border: 0; background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; color: var(--frambuesa-osc); }

/* ---------- Barra de demo y cabecera ---------- */
.demo-bar { position: relative; z-index: 60; background: var(--choco); color: var(--crema-txt); text-align: center; font-size: .8125rem; line-height: 1.4; padding: 7px 16px; }
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--rosa); text-underline-offset: 3px; }
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--crema); }
.cabecera::after { /* borde ondulado, como el papel de un pirotín */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, var(--crema) 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x;
  filter: drop-shadow(0 2px 1px rgba(43, 26, 20, .08));
}
.cabecera-in { display: flex; align-items: center; gap: 18px; width: min(1280px, 100% - 32px); height: var(--cab); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-lazo { width: 46px; height: 30px; fill: var(--frambuesa); }
.logo-txt { font: 400 1.3rem/1 var(--serif); }
.logo-txt small { display: block; margin-top: 4px; font: 600 .75rem/1 var(--sans); color: var(--pistacho-osc); }
.proxima { display: flex; flex-direction: column; margin: 0 0 0 6px; padding: 5px 14px; border-radius: 14px; background: var(--pistacho); font-size: .8125rem; line-height: 1.25; }
.proxima-et { color: var(--pistacho-osc); font-weight: 700; }
.proxima-dato { font-weight: 600; }
.menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.menu a { position: relative; text-decoration: none; font-weight: 600; font-size: .9688rem; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--rosa-2); transform: scaleX(0); transition: transform .35s var(--resorte); }
.menu a:hover::after { transform: scaleX(1); }
.caja-btn { position: relative; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px; border: 2px solid var(--choco); border-radius: 999px; background: var(--papel); font-weight: 700; }
.js .caja-btn { display: inline-flex !important; }
.caja-ic { width: 26px; height: 26px; fill: var(--kraft); stroke: var(--choco); stroke-width: 2.2; stroke-linejoin: round; overflow: visible; }
.caja-n { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--frambuesa); color: #fff; font-size: .8125rem; display: grid; place-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--choco); border-radius: 50%; background: transparent; position: relative; flex: none; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--choco); transition: transform .3s var(--ease), background-color .2s; }
.menu-btn i { top: 50%; margin-top: -1px; }
.menu-btn i::before, .menu-btn i::after { content: ""; left: 0; right: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1060px) {
  :root { --cab: 64px; }
  .js .menu-btn { display: block !important; }
  .js .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 16px 22px; background: var(--crema); box-shadow: 0 20px 30px -20px rgba(43, 26, 20, .4); }
  .js .menu.is-open { display: flex; }
  .js .menu a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px dashed rgba(43, 26, 20, .2); }
  .caja-btn { margin-left: auto; }
  html:not(.js) .cabecera-in { flex-wrap: wrap; height: auto; padding: 10px 0; }
  html:not(.js) .menu { flex-wrap: wrap; gap: 14px; margin-left: 0; }
}
@media (max-width: 600px) {
  .proxima { display: none; }
  .logo-txt small { display: none; }
  .caja-txt { display: none; }
  .caja-btn { padding: 0 10px; }
  .cabecera-in { gap: 10px; }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr minmax(300px, 430px) 1fr; grid-template-areas: "t t t" "m c a" "l c a";
  column-gap: clamp(20px, 3vw, 48px); align-items: end; width: min(1280px, 100% - 32px); margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0 0;
}
.hero::before { /* fondo de crema batida */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 100vw; margin-left: -50vw;
  background: radial-gradient(60% 55% at 50% 72%, var(--rosa) 0%, rgba(243, 213, 211, 0) 70%), var(--crema);
}
.hero-txt { display: contents; }
.hero h1 { grid-area: t; text-align: center; font-size: clamp(2.9rem, 6.8vw, 6.3rem); line-height: .98; max-width: 13em; margin: 0 auto clamp(12px, 2vw, 24px); }
.manga { grid-area: m; margin: 0 0 6px; font: 400 clamp(2.4rem, 3.6vw, 3.3rem)/1.05 var(--manga); color: var(--frambuesa); transform: rotate(-4deg); justify-self: end; text-align: right; }
.mp { display: inline-block; white-space: nowrap; }
.ml { display: inline-block; }
@media (min-width: 1061px) { .js .menu-btn { display: none !important; } }
.hero-lead { grid-area: l; max-width: 22em; justify-self: end; text-align: right; font-size: 1.0625rem; color: var(--choco-suave); margin-bottom: clamp(40px, 7vw, 90px); }
.hero .acciones { grid-area: a; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: clamp(40px, 7vw, 90px); }
.hero-torta { grid-area: c; margin: 0 0 -6px; }
.torta-svg { width: 100%; height: auto; overflow: visible; }
.t-plato { fill: #fffdf8; }
.t-plato-borde { fill: #f7efe2; }
.t-pie { fill: #efe3d1; }
.t-sombra { fill: rgba(43, 26, 20, .14); }
.t-perlas { fill: #fff8ee; }
.t-glaseado { fill: #4a2a1f; }
.t-topper { fill: var(--frambuesa); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "t" "m" "c" "l" "a"; text-align: center; padding-top: 28px; }
  .manga, .hero-lead { justify-self: center; text-align: center; }
  .manga { margin-bottom: 4px; }
  .hero-torta { width: min(360px, 92%); justify-self: center; margin: 8px 0 18px; }
  .hero-lead { margin-bottom: 18px; }
  .hero .acciones { flex-direction: row; justify-content: center; align-items: center; margin-bottom: 56px; }
  .hero .acciones .btn { flex: 1 1 auto; }
}

/* =========================================================
   2. OBRADOR
   ========================================================= */
.obrador-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.obrador-foto { margin: 0; position: relative; }
.obrador-foto img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 200px 200px var(--radio) var(--radio); }
.obrador-foto::after { /* sello de papel con el lazo */
  content: ""; position: absolute; right: -14px; bottom: 28px; width: 92px; height: 92px; border-radius: 50%; background: var(--crema) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 52'%3E%3Cg fill='%23b8235a'%3E%3Cpath d='M40 24C30 8 8 2 6 14s16 18 34 10Z'/%3E%3Cpath d='M40 24C50 8 72 2 74 14s-16 18-34 10Z'/%3E%3Cpath d='M36 26 24 50l9-3 5 5 2-26Z'/%3E%3Cpath d='M44 26 56 50l-9-3-5 5-2-26Z'/%3E%3Cellipse cx='40' cy='25' rx='7' ry='6'/%3E%3C/g%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 0 0 6px var(--pistacho), 0 0 0 7px var(--pistacho-osc);
}
.obrador-txt .h2 { margin-bottom: 22px; }
.obrador-txt > p { max-width: 34em; color: var(--choco-suave); font-size: 1.0938rem; }
.datos-obrador { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.datos-obrador li { padding: 10px 16px; border-radius: 16px; background: var(--papel); font-size: .9375rem; box-shadow: 0 8px 18px -14px rgba(43, 26, 20, .5); }
.datos-obrador b { font: 400 1.4rem/1 var(--serif); color: var(--frambuesa-osc); margin-right: 4px; }

/* =========================================================
   3. VITRINA: pedestal giratorio
   ========================================================= */
.vitrina-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.postre { background: var(--papel); border-radius: var(--radio); padding: 14px; box-shadow: 0 16px 30px -24px rgba(43, 26, 20, .6); }
.postre figure { margin: 0; }
.postre img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.etiqueta h3 { font-size: 1.4rem; margin: 14px 0 2px; }
.postre-det { margin: 0; color: var(--choco-suave); font-size: .9375rem; }
.postre-precio { margin: 4px 0 12px; font: 400 1.5rem/1 var(--serif); color: var(--frambuesa-osc); }
/* Con JS: pedestal */
.pedestal.is-giratorio { position: relative; display: grid; justify-items: center; }
.is-giratorio .vitrina-lista { display: block; position: relative; width: min(560px, 100%); height: clamp(470px, 62vw, 560px); }
.is-giratorio .postre { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; justify-items: center; align-content: start; padding: 0; background: none; box-shadow: none; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .5s; }
.is-giratorio .postre.is-actual { opacity: 1; visibility: visible; transition: opacity .45s ease .15s, visibility 0s; }
.is-giratorio .postre figure { position: relative; width: clamp(240px, 52vw, 330px); z-index: 2; }
.is-giratorio .postre img { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 18px 30px -18px rgba(43, 26, 20, .7); }
.is-giratorio .postre figure::after { /* campana de vidrio */
  content: ""; position: absolute; left: -9%; right: -9%; top: -16%; bottom: -3%; border-radius: 50% 50% 10px 10px / 62% 62% 10px 10px;
  border: 2px solid rgba(255, 255, 255, .85); background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0 8%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, .25)); box-shadow: inset 0 0 30px rgba(255, 255, 255, .45);
}
.is-giratorio .postre figure::before { /* perilla de la campana */
  content: ""; position: absolute; z-index: 3; left: 50%; top: -22%; width: 22px; height: 16px; margin-left: -11px; border-radius: 50% 50% 4px 4px; background: rgba(255, 255, 255, .9);
}
.pedestal.is-giratorio::before { /* plato del pedestal */
  content: ""; position: absolute; z-index: 1; top: clamp(250px, 52vw, 330px); left: 50%; width: clamp(300px, 64vw, 420px); height: 34px; margin-left: calc(clamp(300px, 64vw, 420px) / -2);
  border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #fffefa, #efe3d1 70%); box-shadow: 0 14px 20px -12px rgba(43, 26, 20, .5);
}
.pedestal.is-giratorio::after { /* pie */
  content: ""; position: absolute; z-index: 0; top: calc(clamp(250px, 52vw, 330px) + 26px); left: 50%; width: 60px; height: 46px; margin-left: -30px; border-radius: 0 0 40% 40%; background: linear-gradient(90deg, #e6d7c1, #fbf5ea, #e2d1b9);
}
.is-giratorio .etiqueta {
  position: relative; z-index: 3; margin-top: clamp(64px, 10vw, 86px); min-width: 230px; padding: 14px 22px 12px; text-align: center; background: var(--papel);
  border-radius: 6px; box-shadow: 0 12px 24px -16px rgba(43, 26, 20, .7); transform-origin: 50% -40px;
}
.is-giratorio .etiqueta::before { /* hilo */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 40px; background: var(--choco-suave); }
.is-giratorio .etiqueta::after { /* ojal */
  content: ""; position: absolute; left: 50%; top: 7px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--rosa); box-shadow: inset 0 0 0 1.5px var(--choco-suave);
}
.is-giratorio .etiqueta h3 { margin-top: 10px; }
.is-giratorio .postre-precio { margin-bottom: 0; }
.is-giratorio .postre .btn { position: relative; z-index: 3; margin-top: 16px; }
.js .pedestal-nav { display: flex !important; align-items: center; gap: 18px; margin-top: 10px; }
.pedestal-cont { margin: 0; font-weight: 700; min-width: 4.5em; text-align: center; }
.btn-giro { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--choco); background: var(--papel); display: grid; place-items: center; transition: transform .35s var(--resorte), background-color .2s; }
.btn-giro svg { width: 22px; height: 22px; fill: none; stroke: var(--choco); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-giro:hover { background: var(--crema); }
.btn-giro:active { transform: scale(.9); }
.vitrina .nota { text-align: center; margin-top: 24px; }

/* =========================================================
   4. CORTA UNA TAJADA
   ========================================================= */
.tajada-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tajada-cab .h2 { margin-bottom: 16px; }
.tajada-cab > p { color: var(--crema-suave); font-size: 1.125rem; }
.tajada-elige { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; border: 0; }
.tajada-elige label { position: relative; cursor: pointer; }
.tajada-elige input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tajada-elige span { display: block; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(251, 241, 220, .4); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.tajada-elige input:checked + span { background: var(--rosa); border-color: var(--rosa); color: var(--choco); }
.tajada-elige input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 3px; }
.tajada-escena { display: grid; gap: 18px; }
.tajada-svg { width: 100%; height: auto; overflow: visible; }
.tj-sombra { fill: rgba(0, 0, 0, .35); }
.c-sombra { fill: url(#g-luz); opacity: .5; }
.tj-hoja { fill: #d9dde0; stroke: #9aa2a8; stroke-width: 1; }
.tj-mango { fill: #6b4430; }
.tj-cuchillo { transition: opacity .3s; }
.tj-cuchillo.is-fuera { opacity: 0; }
.tj-et path { fill: none; stroke: var(--rosa); stroke-width: 1.5; stroke-dasharray: 3 4; }
.tj-et text { fill: var(--crema-txt); font: 600 15px var(--sans); }
.tj-et { opacity: 0; transition: opacity .35s; }
.tj-et.is-on { opacity: 1; }
html:not(.js) .tj-tajada, html:not(.js) .tj-cuchillo { display: none; }
html:not(.js) .tj-et { opacity: 1; }
.js .tajada-rango { display: grid !important; gap: 8px; font-weight: 700; }
.tajada-rango input { width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.tajada-rango input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--rosa), var(--pistacho-2)); }
.tajada-rango input::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--rosa), var(--pistacho-2)); }
.tajada-rango input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--frambuesa); border: 4px solid var(--crema); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.tajada-rango input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--frambuesa); border: 4px solid var(--crema); }
.tajada-rango input:focus-visible { outline: 3px solid var(--rosa); outline-offset: 4px; }
.tajada-capas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.tajada-capas div { padding: 12px 14px; border-radius: 14px; background: var(--choco-2); }
.tajada-capas dt { font: 400 1.0625rem var(--serif); color: var(--rosa); }
.tajada-capas dd { margin: 2px 0 0; font-size: .9375rem; color: var(--crema-suave); }

/* =========================================================
   5. DISEÑA TU TORTA
   ========================================================= */
.disena-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.vista { position: sticky; top: calc(var(--cab) + 20px); padding: 22px; border-radius: 28px; background: radial-gradient(70% 60% at 50% 60%, var(--rosa) 0, rgba(243, 213, 211, 0) 70%), var(--crema-2); }
.vista-escena { position: relative; }
.vista-svg { width: min(100%, 440px); height: auto; margin: 0 auto; overflow: visible; }
.vista-svg .t-piso { transform-box: fill-box; }
.vista-mensaje { position: absolute; left: 50%; top: 70%; margin: 0; width: 64%; transform: translate(-50%, -50%) rotate(-3deg); text-align: center; font: 400 clamp(1.7rem, 3vw, 2.4rem)/1 var(--manga); color: var(--frambuesa-osc); pointer-events: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.vista-mensaje.is-alto { top: 74%; }
.vista-mensaje.is-oscuro { color: var(--crema-txt); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.vista-precio { position: absolute; top: 16px; right: 16px; padding: 12px 16px; border-radius: 8px; background: var(--papel); box-shadow: 0 12px 24px -16px rgba(43, 26, 20, .7); transform-origin: 50% -30px; }
.vista-precio::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 20px; background: var(--choco-suave); }
.vista-precio p { margin: 0; font-size: .8125rem; color: var(--choco-suave); }
.vista-precio p:first-child { display: grid; }
.vista-precio b { font: 400 1.6rem/1.1 var(--serif); color: var(--frambuesa-osc); }
.vista-precio .vista-adelanto b { font: 700 .875rem var(--sans); color: var(--choco); }
.vista-corte { display: flex; justify-content: center; gap: 0; margin: 4px auto 0; width: 120px; height: 34px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .5); flex-direction: column; }
.vista-corte i { flex: 1; }
.vista-corte i:nth-child(2) { flex: .45; }
.vc-biz-vainilla { background: #f2d9a6; } .vc-biz-chocolate { background: #5a3426; } .vc-biz-redvelvet { background: #a3283a; } .vc-biz-lucuma { background: #e2a85c; }
.vc-rel-manjar { background: #c98a4b; } .vc-rel-fudge { background: #3b2018; } .vc-rel-fresa { background: #d9465f; } .vc-rel-lucuma { background: #e9b46c; } .vc-rel-maracuya { background: #f2c230; }
#vc-biz:not([class]) { background: #f2d9a6; } #vc-biz2:not([class]) { background: #f2d9a6; } #vc-rel:not([class]) { background: #c98a4b; }
.config { padding: clamp(20px, 3vw, 34px); border-radius: 28px; background: var(--papel); box-shadow: 0 24px 50px -36px rgba(43, 26, 20, .7); min-width: 0; }
.js .boquillas { display: flex !important; gap: 6px; margin: 0 0 26px; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.boquillas li { flex: 1 1 0; min-width: 52px; }
.boquillas button {
  position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; min-width: 0; padding: 34px 2px 2px; font-size: .75rem; border: 0; background: none; font-size: .8125rem; font-weight: 600; color: var(--choco-suave);
}
.boquillas button::before { /* boquilla de manga */
  content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 28px; margin-left: -13px; background: var(--crema-2);
  clip-path: polygon(20% 0, 80% 0, 100% 62%, 84% 100%, 68% 70%, 50% 100%, 32% 70%, 16% 100%, 0 62%); transition: background-color .25s, transform .35s var(--resorte);
}
.boquillas button.is-hecho::before { background: var(--pistacho-2); }
.boquillas button[aria-current="step"] { color: var(--choco); }
.boquillas button[aria-current="step"]::before { background: var(--frambuesa); transform: translateY(-2px) scale(1.1); }
.cfg-paso { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.js .cfg-paso { margin: 0; }
.cfg-paso legend { padding: 0; margin-bottom: 18px; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--serif); }
.cfg-paso legend small { font: 400 1rem var(--sans); color: var(--choco-suave); }
.cfg-paso legend:focus { outline: none; }
.cfg-n { display: block; margin-bottom: 6px; font: 700 .875rem var(--sans); color: var(--frambuesa-osc); }
.cfg-sub { margin: 18px 0 8px; font-weight: 700; }
.cfg-ayuda { margin: 12px 0 0; font-size: .9375rem; color: var(--choco-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 2px solid rgba(43, 26, 20, .18); border-radius: 999px; background: var(--papel); font-weight: 600; transition: border-color .2s, background-color .2s, transform .3s var(--resorte); }
.chip small { font-weight: 500; color: var(--choco-suave); }
.chip:hover > span { border-color: var(--choco); }
.chip input:checked + span { border-color: var(--frambuesa); background: var(--rosa); transform: scale(1.03); }
.chip input:checked + span::after { content: ""; width: 9px; height: 9px; margin-left: 2px; border-radius: 50%; background: var(--frambuesa); }
.chip input:focus-visible + span { outline: 3px solid var(--frambuesa); outline-offset: 2px; }
.chip.is-off { cursor: not-allowed; }
.chip.is-off input { cursor: not-allowed; }
.chip.is-off > span { opacity: .5; text-decoration: line-through; text-decoration-color: rgba(43, 26, 20, .4); }
.mues { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(43, 26, 20, .25); }
.mues-vainilla { background: #f2d9a6; } .mues-chocolate { background: #5a3426; } .mues-redvelvet { background: #a3283a; } .mues-lucuma { background: #e2a85c; }
.mues-manjar { background: #c98a4b; } .mues-fudge { background: #3b2018; } .mues-fresa { background: #d9465f; } .mues-crema-lucuma { background: #e9b46c; } .mues-maracuya { background: #f2c230; }
.mues-c-crema { background: #f7ead2; } .mues-c-rosa { background: #f0c6c6; } .mues-c-pistacho { background: #c9d8a8; } .mues-c-celeste { background: #c9dcea; } .mues-c-lila { background: #d9cbe8; }
.campo { display: grid; gap: 6px; margin-bottom: 12px; }
.campo > span { font-weight: 700; font-size: .9375rem; }
.campo small { font-weight: 500; color: var(--choco-suave); }
.campo input { width: 100%; min-height: 52px; padding: 12px 18px; border: 2px solid rgba(43, 26, 20, .2); border-radius: 16px; background: #fff; font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s; }
.campo input:focus { outline: none; border-color: var(--frambuesa); box-shadow: 0 0 0 4px rgba(184, 35, 90, .18); }
.campo input[aria-invalid="true"] { border-color: var(--frambuesa); }
.campo input::placeholder { color: #85706a; }
#mensaje { font: 400 1.6rem var(--manga); }
#mensaje::placeholder { font: 400 1.6rem var(--manga); }
.error { margin: 6px 0 0; color: var(--frambuesa-osc); font-weight: 700; font-size: .9375rem; }
.js .cfg-acciones { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 2px dashed rgba(43, 26, 20, .12); }
.cfg-acciones [data-cfg="sig"], .cfg-acciones [data-cfg="fin"] { margin-left: auto; }

/* ---------- Calendario mensual ---------- */
.calendario { max-width: 380px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-mes { margin: 0; font: 400 1.3rem var(--serif); }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--choco); background: transparent; display: grid; place-items: center; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--choco); stroke-width: 2.4; stroke-linecap: round; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-sem, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-sem span { font-size: .75rem; font-weight: 700; color: var(--choco-suave); padding: 4px 0; }
.cal-dia { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: var(--pistacho); font-weight: 700; font-size: .9375rem; transition: transform .3s var(--resorte), background-color .2s; }
.cal-dia:not(:disabled):hover { transform: scale(1.1); background: var(--pistacho-2); }
.cal-dia:disabled { background: transparent; color: #6f5e57; cursor: not-allowed; font-weight: 500; }
.cal-dia.is-lleno { background: repeating-linear-gradient(135deg, rgba(184, 35, 90, .12) 0 4px, transparent 4px 8px); color: #8d4a5f; text-decoration: line-through; }
.cal-dia.is-sel { background: var(--frambuesa); color: #fff; box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px var(--frambuesa); }
.cal-leyenda { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; font-size: .8125rem; color: var(--choco-suave); }
.ley::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.ley-libre::before { background: var(--pistacho-2); }
.ley-lleno::before { background: repeating-linear-gradient(135deg, rgba(184, 35, 90, .5) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px rgba(184, 35, 90, .5); }
.ley-no::before { box-shadow: inset 0 0 0 1.5px #b9a59d; }

/* =========================================================
   6. OCASIONES: acordeón de fotos
   ========================================================= */
.acordeon { display: flex; gap: 14px; height: clamp(420px, 44vw, 540px); margin: 0; padding: 0; list-style: none; }
.oc { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radio); cursor: pointer; transition: flex-grow .7s var(--ease); background: var(--choco); }
.oc.is-abierta { flex-grow: 3.2; cursor: default; }
.oc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.oc.is-abierta img { transform: scale(1.03); }
.oc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 26, 20, .92) 0%, rgba(43, 26, 20, .4) 40%, transparent 65%); pointer-events: none; }
.oc-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px; color: var(--crema-txt); }
.oc h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.oc p, .oc .btn { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease); }
.oc p { max-width: 26em; margin: 8px 0 14px; color: var(--crema-suave); }
.oc.is-abierta p, .oc.is-abierta .btn, .oc .btn:focus-visible { opacity: 1; transform: none; transition-delay: .25s; }
.oc:not(.is-abierta) h3 { writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 860px) {
  .acordeon { flex-direction: column; height: auto; }
  .oc, .oc.is-abierta { flex: none; height: 330px; }
  .oc p, .oc .btn { opacity: 1; transform: none; }
  .oc:not(.is-abierta) h3 { writing-mode: horizontal-tb; transform: none; }
}
html:not(.js) .oc p, html:not(.js) .oc .btn { opacity: 1; transform: none; }

/* =========================================================
   7. GALERÍA
   ========================================================= */
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 16px; }
.mosaico figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radio); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; }
.mosaico figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--papel); font-size: .875rem; font-weight: 600; }
.m-1 { grid-column: 1 / 6; grid-row: span 4; } .m-2 { grid-column: 6 / 9; grid-row: span 3; } .m-3 { grid-column: 9 / 13; grid-row: span 3; }
.m-4 { grid-column: 6 / 9; grid-row: span 3; } .m-5 { grid-column: 9 / 13; grid-row: span 3; } .m-6 { grid-column: 1 / 6; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaico { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .mosaico figure { grid-column: auto !important; grid-row: span 2 !important; }
  .m-1 { grid-column: 1 / 3 !important; }
}

/* =========================================================
   8. RECETA PARA PEDIR
   ========================================================= */
.receta-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.receta { position: relative; padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px) clamp(28px, 4vw, 44px) clamp(48px, 7vw, 92px); border-radius: 18px; background: var(--papel) repeating-linear-gradient(0deg, transparent 0 33px, rgba(184, 35, 90, .1) 33px 34px); box-shadow: 0 24px 40px -30px rgba(43, 26, 20, .7); }
.receta::before { /* margen rojo de la ficha */ content: ""; position: absolute; top: 0; bottom: 0; left: clamp(30px, 5vw, 64px); width: 2px; background: rgba(184, 35, 90, .35); }
.receta .h2 { margin-bottom: 8px; }
.receta-porciones { font-weight: 600; color: var(--pistacho-osc); margin-bottom: 26px; }
.receta-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.receta-pasos li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.tic { width: 34px; height: 34px; border-radius: 10px; border: 2.5px solid var(--choco); display: grid; place-items: center; background: #fff; transition: background-color .3s, border-color .3s; }
.tic svg { width: 24px; height: 24px; fill: none; stroke: var(--frambuesa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.receta-pasos h3 { font-size: 1.45rem; margin-top: 2px; }
.receta-pasos p { margin: 4px 0 0; color: var(--choco-suave); }
.tiempos { padding: 26px; border-radius: 18px; background: var(--choco); color: var(--crema-txt); }
.tiempos h3 { font-size: 1.5rem; margin-bottom: 14px; color: var(--rosa); }
.tiempos dl { margin: 0; }
.tiempos div { padding: 12px 0; border-bottom: 1px dashed rgba(251, 241, 220, .25); }
.tiempos div:last-child { border-bottom: 0; }
.tiempos dt { font-weight: 700; }
.tiempos dd { margin: 2px 0 0; color: var(--crema-suave); }

/* =========================================================
   9. HORARIO Y DELIVERY: tapa de caja de pastelería
   ========================================================= */
.entrega-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.entrega-grid > div > p { color: var(--crema-suave); font-size: 1.125rem; max-width: 26em; margin-top: 18px; }
.tapa { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: clamp(26px, 4vw, 44px); border-radius: 10px; color: var(--choco);
  background: linear-gradient(90deg, transparent calc(50% - 14px), var(--frambuesa) calc(50% - 14px), var(--frambuesa) calc(50% + 14px), transparent calc(50% + 14px)), var(--kraft);
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .05), 0 30px 50px -30px rgba(0, 0, 0, .9); }
.tapa-bloque { position: relative; z-index: 1; padding: 20px; border-radius: 12px; background: var(--papel); }
.tapa h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.tabla th, .tabla td { padding: 8px 0; border-bottom: 1px dashed rgba(43, 26, 20, .2); text-align: left; vertical-align: top; }
.tabla td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.tabla th { font-weight: 500; }
.tabla tr:last-child th, .tabla tr:last-child td { border-bottom: 0; }

/* =========================================================
   10. PREGUNTAS
   ========================================================= */
.preguntas-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq details { border-bottom: 2px dotted rgba(43, 26, 20, .2); }
.faq summary { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 4px; list-style: none; cursor: pointer; font: 400 1.3rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { /* gragea */ content: ""; flex: none; width: 18px; height: 8px; border-radius: 4px; background: var(--frambuesa); transform: rotate(-30deg); transition: transform .4s var(--resorte), background-color .2s; }
.faq details:nth-of-type(2) summary::before { background: var(--pistacho-osc); } .faq details:nth-of-type(3) summary::before { background: #d08b2f; } .faq details:nth-of-type(4) summary::before { background: #5c87b8; }
.faq details[open] summary::before { transform: rotate(60deg); }
.faq details p { margin: 0; padding: 0 4px 18px 36px; color: var(--choco-suave); max-width: 40em; }
.faq .nota { margin-top: 18px; }

/* =========================================================
   11. CIERRE: sopla la vela
   ========================================================= */
.cierre { position: relative; padding: clamp(120px, 14vw, 180px) 16px clamp(80px, 10vw, 120px); background: var(--choco); color: var(--crema-txt); text-align: center; overflow-x: clip; --foco: var(--rosa); }
.cierre-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cierre-titulo { font-size: clamp(3rem, 9vw, 7.4rem); max-width: 9em; }
.vela-escena { display: grid; justify-items: center; gap: 12px; margin: 10px 0 20px; }
.cupcake { width: clamp(150px, 20vw, 210px); height: auto; overflow: visible; cursor: pointer; }
.cup-crema { fill: var(--rosa); }
.cup-molde { fill: var(--frambuesa); }
.cup-lineas { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 2; }
.vela { fill: var(--pistacho-2); }
.llama-ext { fill: #f2a640; }
.llama-int { fill: #ffe9a8; }
.llama { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .3s, transform .3s; }
.humo { fill: none; stroke: rgba(251, 241, 220, .7); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.vela-escena.is-apagada .llama { opacity: 0; transform: scale(.2, .1); }
.deseo { min-height: 1.6em; margin: 0; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--manga); color: var(--rosa); }
html:not(.js) .deseo { display: none; }

/* ---------- Pie ---------- */
.pie { background: var(--choco-2); color: var(--crema-suave); padding: 64px 0 56px; font-size: .9375rem; }
.pie-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; }
.pie-logo { display: flex; align-items: center; gap: 10px; font: 400 1.6rem/1 var(--serif); color: var(--crema-txt); }
.pie-logo .logo-lazo { fill: var(--rosa); }
.pie-h { font: 700 1rem var(--sans); color: var(--rosa); margin-bottom: 10px; }
.pie a { color: var(--crema-txt); text-underline-offset: 3px; }
.pie .nota { color: var(--crema-suave); }
.creditos { line-height: 1.7; }

/* =========================================================
   Mi caja (diálogo lateral / hoja inferior en celular)
   ========================================================= */
.caja { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--crema); color: var(--choco); box-shadow: -30px 0 60px -30px rgba(43, 26, 20, .6); overflow-y: auto; overscroll-behavior: contain; }
.caja::backdrop { background: rgba(43, 26, 20, .55); }
.caja[open] { animation: caja-entra .45s var(--ease); }
@keyframes caja-entra { from { transform: translateX(100%); } }
.caja-in { min-height: 100%; padding: 0 22px 28px; }
.caja-cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; background: var(--crema); }
.caja-cab h2 { font-size: 2rem; }
.cerrar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--choco); background: transparent; display: grid; place-items: center; }
.cerrar svg { width: 18px; height: 18px; stroke: var(--choco); stroke-width: 2.4; stroke-linecap: round; }
.caja-pasos { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: c; }
.caja-pasos li { flex: 1; padding: 8px 6px; border-radius: 999px; background: var(--crema-2); text-align: center; font-size: .8125rem; font-weight: 700; color: var(--choco-suave); counter-increment: c; }
.caja-pasos li::before { content: counter(c) ". "; }
.caja-pasos li.is-hecho { background: var(--pistacho-2); color: var(--choco); }
.caja-pasos li[aria-current="step"] { background: var(--frambuesa); color: #fff; }
.caja-vista h3 { font-size: 1.6rem; margin-bottom: 14px; }
.caja-vista h3:focus, .caja-vista legend:focus { outline: none; }
.caja-items { list-style: none; margin: 0 0 14px; padding: 0; }
.item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img txt precio" "img cant cant"; gap: 6px 12px; padding: 14px 0; border-bottom: 2px dotted rgba(43, 26, 20, .15); align-items: center; }
.item img, .item-lazo { grid-area: img; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.item-lazo { padding: 12px; background: var(--rosa); fill: var(--frambuesa); }
.item-txt { grid-area: txt; display: grid; min-width: 0; }
.item-txt small { color: var(--choco-suave); font-size: .875rem; line-height: 1.4; }
.item-precio { grid-area: precio; font: 400 1.2rem var(--serif); }
.item-torta .item-txt { grid-column: txt / cant; grid-row: 1 / 3; }
.item-acc { display: flex; gap: 14px; }
.cant { grid-area: cant; display: inline-flex; align-items: center; gap: 4px; justify-self: start; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 2px rgba(43, 26, 20, .15); }
.cant button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.3rem; font-weight: 700; }
.cant button:hover { background: var(--rosa); }
.cant span { min-width: 22px; text-align: center; font-weight: 700; }
.caja-sub { display: flex; justify-content: space-between; margin: 0 0 16px; font-weight: 700; font-size: 1.125rem; }
.caja-sub b { font: 400 1.5rem var(--serif); }
.caja-vacia { text-align: center; padding: 30px 6px; }
.caja-vacia-ic { width: 90px; height: 90px; margin: 0 auto 14px; fill: var(--kraft); stroke: var(--choco); stroke-width: 1.6; stroke-linejoin: round; overflow: visible; }
.caja-vacia p { color: var(--choco-suave); }
.caja-vacia .acciones { justify-content: center; }
.ent-bloque { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ent-bloque legend { padding: 0; margin-bottom: 10px; font: 400 1.35rem var(--serif); }
.ent-bloque .chips { gap: 8px; }
.ent-bloque .chip > span { min-height: 42px; padding: 8px 14px; font-size: .9375rem; }
.caja-acc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 8px; }
.res-lineas { list-style: none; margin: 0 0 14px; padding: 0; }
.res-lineas li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(43, 26, 20, .2); }
.res-lineas small { display: block; color: var(--choco-suave); font-size: .8125rem; }
.res-lineas b { white-space: nowrap; }
.res-total { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; background: var(--papel); }
.res-total div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.res-total dt { color: var(--choco-suave); }
.res-total dd { margin: 0; font-weight: 800; }
.res-total div:first-child dd { font: 400 1.5rem var(--serif); color: var(--frambuesa-osc); }
.res-entrega { font-weight: 600; padding: 12px 16px; border-radius: 14px; background: var(--pistacho); }
.caja-final { text-align: center; padding: 10px 0; }
.caja-anim { width: min(260px, 80%); height: auto; margin: 0 auto 12px; overflow: visible; }
.ca-fondo { fill: #c99f70; }
.ca-frente { fill: var(--kraft); }
.ca-tapa path { fill: #e3c49b; }
.ca-tapa { transform-box: fill-box; transform-origin: 50% 100%; }
.ca-cinta { fill: none; stroke: var(--frambuesa); stroke-width: 10; }
.ca-lazo { fill: var(--frambuesa); }
.caja-final p { color: var(--choco-suave); }
@media (max-width: 600px) {
  .caja { inset: auto 0 0 0; width: 100vw; height: 92dvh; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 50px -20px rgba(43, 26, 20, .6); }
  .caja[open] { animation-name: caja-sube; }
  @keyframes caja-sube { from { transform: translateY(100%); } }
}

/* ---------- Aviso de demo ---------- */
.modal { width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 0; border-radius: 26px; background: var(--crema); color: var(--choco); box-shadow: 0 40px 80px -20px rgba(43, 26, 20, .7); }
.modal::backdrop { background: rgba(43, 26, 20, .6); }
.modal[open] { animation: pop .5s var(--resorte); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.modal-in { padding: clamp(22px, 5vw, 36px); }
.modal-titulo { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 12px; }
.modal-in > p { color: var(--choco-suave); font-size: 1rem; }
.modal-msg { margin: 0 0 20px; padding: 16px 18px; max-height: 38vh; overflow: auto; white-space: pre-wrap; word-break: break-word; background: #e2f2dc; border-radius: 16px 16px 16px 4px; font: 400 .9375rem/1.5 var(--sans); color: #12261a; }
.modal-acciones { display: flex; justify-content: space-between; margin-top: 10px; }
@media (max-width: 560px) { .modal-msg { max-height: 30vh; font-size: .875rem; } }

/* ---------- Aviso breve ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 300; max-width: min(92vw, 440px); margin: 0; padding: 12px 22px; border-radius: 999px; background: var(--choco); color: var(--crema-txt); font-weight: 700; font-size: .9375rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transform: translate(-50%, 180%); opacity: 0; transition: transform .5s var(--resorte), opacity .3s; pointer-events: none; }
.toast:empty { display: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive general
   ========================================================= */
@media (max-width: 900px) {
  .obrador-grid, .tajada-grid, .disena-grid, .receta-grid, .entrega-grid, .preguntas-grid { grid-template-columns: minmax(0, 1fr); }
  .obrador-foto { width: min(420px, 100%); margin-inline: auto; }
  .vista { position: relative; top: 0; padding: 14px; }
  .vista-svg { width: min(100%, 320px); }
  .vista-precio { top: 10px; right: 10px; padding: 8px 12px; }
  .vista-precio b { font-size: 1.3rem; }
  .tapa { grid-template-columns: 1fr; background: linear-gradient(0deg, transparent calc(50% - 12px), var(--frambuesa) calc(50% - 12px), var(--frambuesa) calc(50% + 12px), transparent calc(50% + 12px)), var(--kraft); }
  .tajada-capas { grid-template-columns: 1fr; }
  .pie-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .boquillas button { min-width: 56px; font-size: .75rem; }
  .chip > span { min-height: 44px; padding: 9px 14px; font-size: .9375rem; }
  .cfg-acciones .btn { flex: 1; }
  .receta-pasos li { grid-template-columns: 34px 1fr; gap: 12px; }
}

/* =========================================================
   EFECTOS (solo con .fx: hay JS y se permite movimiento)
   ========================================================= */
/* Hero: la torta se arma piso por piso, cae el glaseado y se posa el lazo */
.fx .hero .t-base { animation: sube-suave .7s var(--ease) .05s both; }
.fx .hero .t-piso { animation: cae-piso .8s cubic-bezier(.3, .9, .4, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
.fx .hero .t-piso-1 { animation-delay: .25s; } .fx .hero .t-piso-2 { animation-delay: .6s; } .fx .hero .t-piso-3 { animation-delay: .95s; }
.fx .hero .t-glaseado ellipse { animation: aparece .3s ease 1.45s both; }
.fx .hero .gota { transform-box: fill-box; transform-origin: 50% 0; animation: gotea .9s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(1.5s + var(--g, 0) * .08s); }
.fx .hero .gota:nth-of-type(2) { --g: 3; } .fx .hero .gota:nth-of-type(3) { --g: 1; } .fx .hero .gota:nth-of-type(4) { --g: 4; } .fx .hero .gota:nth-of-type(5) { --g: 2; } .fx .hero .gota:nth-of-type(6) { --g: 5; }
.fx .hero .t-topper use { transform-box: fill-box; transform-origin: 50% 100%; animation: lazo-cae .9s var(--resorte) 2.1s both; }
.fx .hero .t-flores circle { transform-box: fill-box; transform-origin: center; animation: pop .45s var(--resorte) both; animation-delay: 1.2s; }
@keyframes sube-suave { from { opacity: 0; transform: translateY(16px); } }
@keyframes cae-piso { 0% { opacity: 0; transform: translateY(-220px); } 55% { opacity: 1; transform: translateY(0) scale(1.05, .9); } 75% { transform: translateY(-6px) scale(.98, 1.03); } 100% { transform: none; } }
@keyframes gotea { from { transform: scaleY(0); } }
@keyframes lazo-cae { 0% { opacity: 0; transform: translateY(-120px) rotate(-20deg); } 60% { opacity: 1; transform: translateY(0) rotate(6deg) scale(1.1, .9); } 100% { transform: none; } }
@keyframes aparece { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }

/* Letra "de manga": cada letra sale como una gota de crema */
.fx .ml { animation: dollop .55s var(--resorte) both; animation-delay: calc(.5s + var(--i) * 45ms); transform-origin: 50% 90%; }
@keyframes dollop { 0% { opacity: 0; transform: translateY(-.35em) scale(.2); } 60% { opacity: 1; transform: translateY(0) scale(1.25, .8); } 100% { transform: none; } }

/* Títulos de sección: una línea de glaseado ondulado se dibuja debajo */
.sec .h2 { position: relative; }
.fx .sec .h2::after {
  content: ""; display: block; width: 150px; height: 14px; margin-top: 10px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--resorte) .15s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M2 7c9-8 16 8 25 0s16 8 25 0 16 8 25 0 16 8 25 0 16 8 25 0 16 8 21 0' fill='none' stroke='%23b8235a' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.fx .sec-choco .h2::after { filter: hue-rotate(-10deg) brightness(1.9) saturate(.5); }
.fx .carta-cab .h2::after, .fx .tajada-cab .h2::after { margin-inline: 0; }
.fx .sec .h2.is-visto::after { transform: scaleX(1); }

/* Goteos: crecen al aparecer */
.fx .goteo { transform: scaleY(.25); transition: transform 1.4s cubic-bezier(.5, 0, .2, 1); }
.fx .goteo.is-visto { transform: scaleY(1); }

/* Obrador: la foto sube como masa; el sello gira al llegar */
.fx .obrador-foto img { clip-path: inset(100% 0 0 0 round 200px 200px 22px 22px); transition: clip-path 1.2s var(--ease); }
.fx .obrador-foto.is-visto img { clip-path: inset(0 0 0 0 round 200px 200px 22px 22px); }
.fx .obrador-foto::after { transform: scale(0) rotate(-90deg); transition: transform .8s var(--resorte) .8s; }
.fx .obrador-foto.is-visto::after { transform: none; }
.fx .datos-obrador li { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--resorte); }
.fx .datos-obrador.is-visto li { opacity: 1; transform: none; }
.fx .datos-obrador.is-visto li:nth-child(2) { transition-delay: .12s; } .fx .datos-obrador.is-visto li:nth-child(3) { transition-delay: .24s; }

/* Vitrina: el postre entra girando bajo la campana y la etiqueta se balancea */
.fx .is-giratorio .postre.is-entra figure { animation: gira-entra .8s var(--ease) both; }
.fx .pedestal[data-dir="ant"] .postre.is-entra figure { animation-name: gira-entra-ant; }
.fx .is-giratorio .postre.is-entra figure::after, .fx .is-giratorio .postre.is-entra figure::before { animation: campana .9s var(--ease) both; }
.fx .is-giratorio .postre.is-entra .etiqueta { animation: balancea 1.6s cubic-bezier(.3, .6, .4, 1) .2s both; }
@keyframes gira-entra { from { opacity: 0; transform: perspective(700px) translateX(30%) rotateY(-55deg); } }
@keyframes gira-entra-ant { from { opacity: 0; transform: perspective(700px) translateX(-30%) rotateY(55deg); } }
@keyframes campana { 0% { transform: translateY(-46px); opacity: .4; } 60% { transform: translateY(-46px); opacity: 1; } 100% { transform: none; } }
@keyframes balancea { 0% { rotate: 0deg; } 15% { rotate: 9deg; } 35% { rotate: -6deg; } 55% { rotate: 3.5deg; } 75% { rotate: -1.5deg; } 100% { rotate: 0deg; } }

/* Caja del encabezado: la tapa salta al recibir algo */
.fx .caja-btn.is-salto .caja-ic { animation: tapa-salta .7s var(--resorte); }
.fx .caja-btn.is-salto .caja-n { animation: pop .5s var(--resorte); }
@keyframes tapa-salta { 0% { transform: none; } 30% { transform: translateY(-7px) rotate(-12deg) scale(1.15); } 60% { transform: translateY(1px) rotate(4deg) scale(.95); } 100% { transform: none; } }
.grageas { position: fixed; inset: 0; z-index: 400; width: 100vw; height: 100vh; pointer-events: none; }

/* Configurador: la torta se asienta al cambiar, el precio se balancea, el mensaje se escribe con manga */
.fx .vista-svg .t-piso { animation: asienta .55s var(--resorte) both; transform-origin: 50% 100%; }
.fx .vista-svg .t-piso:nth-of-type(3) { animation-delay: .06s; } .fx .vista-svg .t-piso:nth-of-type(4) { animation-delay: .12s; }
.fx .vista-svg .t-topper use, .fx .vista-svg .t-glaseado { transform-box: fill-box; transform-origin: 50% 0; animation: gotea .7s cubic-bezier(.5, 0, .3, 1) .15s both; }
@keyframes asienta { 0% { transform: scale(1.04, .9); } 100% { transform: none; } }
.fx .vista-precio.is-balancea { animation: balancea 1.2s cubic-bezier(.3, .6, .4, 1); }
.fx .vista-mensaje.is-pipetea { animation: pipetea .5s var(--resorte); }
@keyframes pipetea { 0% { transform: translate(-50%, -50%) rotate(-3deg) scale(.85, 1.15); } 100% { transform: translate(-50%, -50%) rotate(-3deg); } }

/* Galería: cada foto aparece como un remolino de crema */
.fx .mosaico figure { clip-path: circle(0% at 50% 100%); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(var(--i, 0) * .12s); }
.fx .mosaico figure.is-visto { clip-path: circle(150% at 50% 100%); }

/* Receta: el check se dibuja al pasar por cada paso */
.fx .tic svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s ease .15s; }
.fx .receta-pasos li.is-hecho .tic { background: var(--pistacho); border-color: var(--pistacho-osc); }
.fx .receta-pasos li.is-hecho .tic svg path { stroke-dashoffset: 0; }
.fx .receta-pasos li { opacity: .55; transition: opacity .5s; }
.fx .receta-pasos li.is-hecho { opacity: 1; }

/* Tapa de la caja: el lazo central se dibuja */
.fx .tapa { background-size: 100% 0%, auto; background-repeat: no-repeat; background-position: center top; transition: background-size 1.2s var(--ease); }
.fx .tapa.is-visto { background-size: 100% 100%, auto; }

/* Caja que se cierra y se amarra */
.fx .caja-anim .ca-tapa { transform: translateY(-70px) rotate(-18deg); opacity: 0; }
.fx .caja-anim .ca-cinta { stroke-dasharray: 200; stroke-dashoffset: 200; }
.fx .caja-anim .ca-lazo use { transform-box: fill-box; transform-origin: 50% 70%; transform: scale(0); }
.fx .caja-anim.is-cierra .ca-tapa { animation: tapa-cierra .7s var(--resorte) .1s forwards; }
.fx .caja-anim.is-cierra .ca-cinta { animation: cinta .6s ease .75s forwards; }
.fx .caja-anim.is-cierra .ca-cinta-h { animation-delay: 1s; }
.fx .caja-anim.is-cierra .ca-lazo use { animation: lazo-ata .7s var(--resorte) 1.3s forwards; }
@keyframes tapa-cierra { 0% { opacity: 1; transform: translateY(-70px) rotate(-18deg); } 70% { transform: translateY(4px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes cinta { to { stroke-dashoffset: 0; } }
@keyframes lazo-ata { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1); } }

/* La vela parpadea (solo en pantalla) y echa humo al soplarla */
.fx .vela-escena.is-visible .llama { animation: parpadeo 1.3s ease-in-out infinite alternate; }
.fx .vela-escena.is-apagada .llama { animation: none; }
@keyframes parpadeo { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.94, 1.06) rotate(1.5deg); } 100% { transform: scale(1.04, .96) rotate(-1deg); } }
.fx .vela-escena.is-humo .humo { animation: humo 1.8s ease-out both; }
@keyframes humo { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.fx .deseo:not(:empty) { animation: dollop .6s var(--resorte); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Página 404 ---------- */
.p404 { min-height: calc(100vh - 40px); display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 20px; text-align: center; background: radial-gradient(50% 40% at 50% 40%, var(--rosa), transparent 70%), var(--crema); }
.p404 h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); max-width: 10em; }
.p404 p { max-width: 30em; color: var(--choco-suave); }
.p404-torta { width: 180px; }
.fx .p404-torta { animation: cae-piso 1s cubic-bezier(.3, .9, .4, 1) both; }
.fx .p404-gota { transform-box: fill-box; transform-origin: 50% 0; animation: gotea 1.4s cubic-bezier(.5, 0, .3, 1) .8s both; }
