/* =============================================================
   Essencial — styles.css
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --purple:     #583FAF;
  --purple-700: #4630A0;
  --ink:        #22174A;
  --ink-2:      #2E2163;
  --lilac:      #A69BE4;
  --lilac-300:  #C9C1F2;
  --lilac-200:  #DED8F8;
  --lilac-100:  #EFEBFC;
  --cream:      #FDF3EA;
  --cream-2:    #F8E8D8;
  --paper:      #FFFBF6;
  --orange:     #F5873A;

  --text:       #2A2150;
  --text-soft:  #5B5280;
  --line:       rgba(88, 63, 175, .16);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 14px;
  --r:    24px;
  --r-lg: 36px;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec-y:  clamp(5rem, 11vw, 9rem);
  --nav-h:  76px;

  --shadow-sm: 0 2px 8px rgba(34, 23, 74, .06);
  --shadow:    0 18px 50px -18px rgba(34, 23, 74, .28);
  --shadow-lg: 0 40px 90px -30px rgba(70, 48, 160, .45);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
::selection { background: var(--purple); color: var(--cream); }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream); border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.section { position: relative; padding-block: var(--sec-y); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Typography
   ============================================================= */
.h2, .h3, .hero-title, .switch-cta-t, .historia-quote {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-title em, .h2 em, .h3 em, .historia-quote em, .soon-copy em {
  font-style: italic; font-weight: 400; color: var(--purple);
}
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 500; color: var(--ink); max-width: 18ch; }
.h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--ink); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 52ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.section-head.center .h2, .section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1.2rem; }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  --bg: var(--purple); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1;
  background: var(--bg); color: var(--fg); isolation: isolate; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(70, 48, 160, .55); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --bg: var(--purple); --fg: var(--cream); }
.btn-ghost { --bg: transparent; --fg: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.btn-ghost:hover { --bg: var(--purple); --fg: var(--cream); }
.btn-cream { --bg: var(--cream); --fg: var(--purple); }
.btn-wa { --bg: #1FAF5A; --fg: #fff; }
.btn-wa svg { width: 22px; height: 22px; }
.btn-sm { padding: .7rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* Placeholder de imagen */
.ph {
  position: relative; display: grid; place-items: center; align-content: center; gap: .8rem;
  width: 100%; height: 100%; min-height: 120px; overflow: hidden; text-align: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(140deg, var(--lilac-200), var(--lilac-300) 60%, var(--lilac));
  color: var(--purple-700);
}
.ph::before {
  content: "FOTO · " attr(data-ph);
  position: absolute; top: .8rem; left: .9rem; padding: .3rem .6rem; border-radius: 999px;
  font-size: .64rem; font-weight: 800; letter-spacing: .12em; background: rgba(255,251,246,.75); color: var(--purple);
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  background-size: 250% 100%; animation: phShine 5s var(--ease-soft) infinite;
}
.ph-ico { width: 34%; max-width: 120px; aspect-ratio: 230/165; fill: currentColor; opacity: .35; }
.ph > span { font-size: .85rem; font-weight: 600; max-width: 24ch; padding-inline: 1rem; opacity: .8; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ph.has-img { background: var(--lilac-100); }
.ph.has-img::before, .ph.has-img::after { display: none; }
.ing:hover .ph.has-img img { transform: scale(1.06); }

/* Chips */
.chip {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1.05rem; border-radius: 18px; font-size: .9rem; line-height: 1.2;
  background: rgba(255, 251, 246, .9); color: var(--ink); box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(10px)) {
  .chip { background: rgba(255, 251, 246, .72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.chip b { font-weight: 800; color: var(--purple); }
.chip-a { flex-direction: column; align-items: flex-start; gap: .1rem; }
.chip-a b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.chip-a span { font-size: .78rem; color: var(--text-soft); }
.chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lilac-100); color: var(--purple); font-size: 1rem; }
.chip-ico-heart svg { width: 20px; height: 15px; fill: var(--purple); }

/* Switch (tabs) */
.switch {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 100%;
}
.switch button {
  position: relative; z-index: 1; padding: .9rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  color: var(--text-soft); transition: color .4s var(--ease-out); white-space: nowrap;
}
.switch button[aria-selected="true"] { color: var(--cream); }
.switch-pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--purple); box-shadow: 0 8px 20px -8px rgba(70,48,160,.6);
  transition: transform .55s var(--ease-bounce);
}
.switch[data-active="1"] .switch-pill { transform: translateX(100%); }
.switch-sm button { padding: .75rem 1.2rem; font-size: .92rem; }

/* Qty */
.qty {
  display: inline-flex; align-items: center; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.qty button { width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; font-weight: 600; color: var(--purple); transition: background .25s; }
.qty button:hover { background: var(--lilac-100); }
.qty output { min-width: 2.2ch; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.qty-lg button { width: 48px; height: 48px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--purple);
  transition: clip-path 1s var(--ease-out) .05s, visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; }
.splash-ico { width: 120px; height: 86px; fill: var(--cream); animation: splashBeat 1.4s var(--ease-soft) infinite; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem; padding-inline: var(--gutter);
  transition: background .4s, box-shadow .4s, height .4s var(--ease-out), transform .5s var(--ease-out);
}
.nav.is-solid { background: rgba(253, 243, 234, .92); box-shadow: 0 1px 0 var(--line); height: 66px; }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(253, 243, 234, .72); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo svg { width: 150px; height: 26px; fill: var(--purple); }
.nav-links { display: none; gap: 2rem; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav-links a { position: relative; padding-block: .3rem; color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--purple);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cart { margin-left: auto; }
.cart-count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px;
  background: var(--cream); color: var(--purple); font-size: .75rem; font-weight: 800;
}
.cart-count.bump { animation: bump .5s var(--ease-bounce); }
.nav-burger { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
  padding: var(--gutter); background: var(--cream);
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease-out); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); }
.mobile-menu .btn { margin-top: 1rem; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; gap: 3rem; align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 5rem;
  max-width: 1440px; margin-inline: auto;
}
.hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .75; pointer-events: none; }
.hero-blob-1 { width: 46vw; height: 46vw; right: -8vw; top: 6vh; background: var(--lilac-300); animation: blobA 18s var(--ease-soft) infinite alternate; }
.hero-blob-2 { width: 30vw; height: 30vw; left: -10vw; bottom: 0; background: #FBD9BF; opacity: .6; animation: blobB 22s var(--ease-soft) infinite alternate; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem .5rem .75rem; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; font-weight: 600; color: var(--purple);
  margin-bottom: 1.6rem;
}
.kicker .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1FAF5A; }
.kicker .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1FAF5A; animation: pulse 2s var(--ease-out) infinite; }
.hero-title {
  font-size: clamp(2.9rem, 7.2vw, 6.4rem); line-height: .98; font-weight: 500; color: var(--ink);
  letter-spacing: -0.035em; max-width: 13ch;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + .2s); }
.is-ready .hero-title .w > span { transform: none; }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 44ch; }
.hero-sub strong { color: var(--purple); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--purple); line-height: 1; }
.hero-proof span { font-size: .85rem; color: var(--text-soft); margin-top: .35rem; }
[data-hero-in] { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-hero-in]:nth-of-type(1) { transition-delay: .15s; }
.hero-sub[data-hero-in] { transition-delay: .65s; }
.hero-ctas[data-hero-in] { transition-delay: .8s; }
.hero-proof[data-hero-in] { transition-delay: .95s; }
.is-ready [data-hero-in], .no-js [data-hero-in] { opacity: 1; transform: none; }

.hero-visual { position: relative; width: min(100%, 560px); margin-inline: auto; aspect-ratio: 1 / 1.08; }
.hero-frame {
  position: absolute; inset: 13%; border-radius: 48% 52% 46% 54% / 55% 50% 50% 45%; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: morph 14s var(--ease-soft) infinite alternate;
  transform: scale(.85); opacity: 0; transition: transform 1.4s var(--ease-out) .35s, opacity 1s var(--ease-out) .35s;
}
.is-ready .hero-frame, .no-js .hero-frame { transform: none; opacity: 1; }
.ph-hero { border-radius: 0; }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; pointer-events: none; }
.hero-ring text { font-family: var(--sans); font-size: 7.2px; font-weight: 800; fill: var(--purple); opacity: .85; }
.ph-hero::before { top: 16%; left: 50%; transform: translateX(-50%); }
.chip-a { top: 9%; right: -2%; }
.chip-b { bottom: 18%; left: -6%; }
.chip-c { bottom: 2%; right: 4%; }
.chip { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease-out), translate .9s var(--ease-bounce); }
.is-ready .chip, .no-js .chip { opacity: 1; translate: 0 0; }
.is-ready .chip-a { transition-delay: 1.1s; } .is-ready .chip-b { transition-delay: 1.25s; } .is-ready .chip-c { transition-delay: 1.4s; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px;
  border-radius: 999px; box-shadow: inset 0 0 0 2px var(--lilac); display: none;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--purple); animation: scrollDot 1.8s var(--ease-out) infinite; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--purple); color: var(--cream); padding-block: 1.15rem; transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; white-space: nowrap; }
.ticker-track i {
  width: 26px; height: 19px; flex: none; background: var(--lilac);
  -webkit-mask: url("assets/img/favicon.svg") center / contain no-repeat; mask: url("assets/img/favicon.svg") center / contain no-repeat;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- ¿Ya das BARF? ---------- */
.yb { background: var(--lilac-100); }
.yb .section-head { display: flex; flex-direction: column; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: panelIn .7s var(--ease-out); }
.yb-grid { display: grid; gap: 2.5rem; }
.yb-intro .lead { margin-top: 1.2rem; }
.yb-intro p:not(.lead) { margin-top: 1rem; color: var(--text-soft); }
.yb-score { margin-top: 2rem; display: grid; gap: .9rem; padding: 1.4rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm); }
.score-row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: 1rem; font-size: .92rem; font-weight: 600; }
.score-row b { text-align: right; font-variant-numeric: tabular-nums; }
.score-bar { height: 12px; border-radius: 99px; background: var(--lilac-100); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lilac); transition: width .8s var(--ease-bounce); }
.score-row.is-us { color: var(--purple); }
.score-row.is-us .score-bar i { background: linear-gradient(90deg, var(--purple), #7B62D6); }

.checklist { display: grid; gap: .75rem; }
.checklist label {
  display: grid; grid-template-columns: 30px 1fr; gap: 1rem; align-items: start; cursor: pointer;
  padding: 1.15rem 1.25rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px transparent, var(--shadow-sm);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.checklist label:hover { transform: translateX(6px); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { position: relative; width: 30px; height: 30px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--lilac); transition: background .3s, box-shadow .3s; }
.check-box::after {
  content: ""; position: absolute; left: 10px; top: 5px; width: 8px; height: 15px; border: solid var(--cream); border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0); transition: transform .4s var(--ease-bounce);
}
.checklist input:checked + .check-box { background: var(--purple); box-shadow: none; }
.checklist input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.checklist input:focus-visible + .check-box { outline: 2.5px solid var(--orange); outline-offset: 3px; }
.checklist label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--purple), var(--shadow-sm); }
.check-text { font-size: .98rem; color: var(--text-soft); }
.check-text b { display: block; color: var(--ink); font-weight: 700; margin-bottom: .15rem; }

.switch-cta {
  display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; margin-top: 3rem;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, #7B62D6, var(--purple) 50%, var(--purple-700)); color: var(--cream);
  box-shadow: var(--shadow-lg);
}
.switch-cta-k { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac-300); }
.switch-cta-t { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; margin-top: .5rem; max-width: 40ch; }
.switch-cta-t strong { font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }

.versus { display: grid; gap: 1rem; }
.versus-col { padding: 1.8rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm); }
.versus-col.is-us { background: var(--purple); color: var(--cream); box-shadow: var(--shadow-lg); }
.versus-h { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; }
.versus-h svg { width: 30px; height: 22px; fill: currentColor; }
.versus-col li { position: relative; padding: .6rem 0 .6rem 1.8rem; border-top: 1px solid var(--line); }
.versus-col.is-us li { border-color: rgba(253,243,234,.18); }
.versus-col li::before { content: "–"; position: absolute; left: 0; font-weight: 800; color: var(--text-soft); }
.versus-col.is-us li::before { content: "✓"; color: var(--lilac-300); }

/* ---------- Receta ---------- */
.receta-top { display: grid; gap: 3rem; align-items: center; }
.receta-ring-wrap { position: relative; width: min(78vw, 400px); aspect-ratio: 1; margin-inline: auto; }
.receta-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.receta-ring circle { fill: none; stroke-width: 18; }
.ring-bg { stroke: var(--lilac-200); }
.ring-fg {
  stroke: var(--purple); stroke-linecap: round; stroke-dasharray: 628.32; stroke-dashoffset: calc(628.32 * (1 - var(--p)));
  transition: --p 2s var(--ease-out);
}
.receta-ring-wrap:not(.is-visible) .ring-fg { --p: 0 !important; }
.receta-ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.receta-ring-num b { font-family: var(--serif); font-size: clamp(5rem, 14vw, 8.5rem); font-weight: 600; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.receta-ring-num > span { position: absolute; top: 28%; right: 17%; font-family: var(--serif); font-size: 2.2rem; color: var(--purple); }
.receta-ring-num p { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--purple); margin-top: .6rem; }
.receta-copy .lead { margin-top: 1.4rem; }

.ingredients { margin-block: clamp(3rem, 6vw, 5rem); }
.ing-track {
  display: flex; gap: 1rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding: 1rem var(--gutter) 2rem; scrollbar-width: none;
}
.ing-track::-webkit-scrollbar { display: none; }
.ing {
  position: relative; flex: 0 0 min(72vw, 290px); scroll-snap-align: start;
  padding: 1rem 1rem 1.5rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ing:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
.ing .ph-ing { height: auto; aspect-ratio: 1; border-radius: 18px; margin-bottom: 1.2rem; }
.ing-head { display: flex; align-items: center; gap: 1.5rem; }
.ing-head-t { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--ink); white-space: nowrap; }
.ing-head-t em { color: var(--purple); }
.ing-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--lilac-200); overflow: hidden; }
.ing-progress i { display: block; height: 100%; width: 10%; border-radius: inherit; background: var(--purple); }
.ing-head-hint { font-size: .85rem; font-weight: 700; color: var(--purple); white-space: nowrap; }
.ing-n { position: absolute; z-index: 2; top: 1.6rem; right: 1.6rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--purple); background: var(--paper); border-radius: 999px; padding: .15rem .6rem; }
.ing h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.ing p { margin-top: .4rem; font-size: .95rem; color: var(--text-soft); }
.ing:first-child { background: var(--purple); color: var(--cream); }
.ing:first-child h3 { color: var(--cream); }
.ing:first-child p { color: var(--lilac-200); }

.product {
  display: grid; gap: 2rem; padding: clamp(1rem, 2vw, 1.5rem); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow);
}
.product-media { position: relative; }
.ph-product { aspect-ratio: 4/3.4; border-radius: calc(var(--r-lg) - 10px); }
.product-badge {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; align-content: center;
  width: 108px; height: 108px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1;
  box-shadow: 0 14px 30px -10px rgba(245,135,58,.7); animation: wobble 6s var(--ease-soft) infinite;
}
.product-badge small { font-family: var(--sans); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }
.product-info { padding: .5rem clamp(.5rem, 2vw, 2rem) 1rem; align-self: center; }
.product-meta { color: var(--text-soft); margin-top: .6rem; }
.product-price { margin-top: 1.4rem; display: flex; align-items: baseline; gap: .6rem; }
.product-price b { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--purple); line-height: 1; }
.product-price span { color: var(--text-soft); font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.product-hint { margin-top: 1.2rem; font-size: .92rem; color: var(--text-soft); }
.product-hint a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; align-items: center; }
.soon-card {
  position: relative; display: grid; place-items: center; align-content: center; gap: .5rem; aspect-ratio: 1.5; border-radius: var(--r);
  background: repeating-linear-gradient(-45deg, var(--cream-2) 0 12px, var(--cream) 12px 24px); box-shadow: inset 0 0 0 1.5px dashed var(--line);
  border: 1.5px dashed var(--lilac); color: var(--text-soft); font-weight: 700;
}
.soon-tag { padding: .3rem .7rem; border-radius: 999px; background: var(--lilac-200); color: var(--purple); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.soon-copy { grid-column: 1 / -1; color: var(--text-soft); }
.soon-copy em { font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Beneficios ---------- */
.beneficios { background: var(--cream-2); }
.bento { display: grid; gap: 1rem; }
.b {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r);
  background: var(--paper); box-shadow: var(--shadow-sm); min-height: 220px;
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease-out);
}
.b:hover { box-shadow: var(--shadow-lg); }
.b .ph-b { flex: 1; min-height: 220px; }
.b-copy { position: relative; padding: 1.6rem; margin-top: auto; }
.b-n { font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--purple); }
.b h3 { font-family: var(--serif); font-size: 1.65rem; color: var(--ink); margin-top: .4rem; }
.b p { margin-top: .5rem; color: var(--text-soft); font-size: .98rem; }
.b-2 { background: var(--purple); }
.b-2 h3, .b-2 p, .b-2 .b-n { color: var(--cream); }
.b-2 p { color: var(--lilac-200); }
.b-5 { background: var(--lilac-200); }
.b-6 { background: var(--ink); }
.b-6 h3 { color: var(--cream); } .b-6 p { color: var(--lilac-300); } .b-6 .b-n { color: var(--orange); }
.b-2::before, .b-6::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 150px; opacity: .14; background: var(--cream);
  -webkit-mask: url("assets/img/favicon.svg") center / contain no-repeat; mask: url("assets/img/favicon.svg") center / contain no-repeat;
  transition: transform 1s var(--ease-out);
}
.b:hover::before { transform: rotate(-12deg) scale(1.1); }
.disclaimer { margin-top: 2rem; font-size: .85rem; color: var(--text-soft); max-width: 70ch; }

/* ---------- Seguridad ---------- */
.seguridad { background: var(--ink); color: var(--cream); overflow: clip; }
.seguridad .h2 { color: var(--cream); }
.seguridad .h2 em { color: var(--lilac); }
.seguridad .eyebrow { color: var(--lilac); }
.seguridad .lead { color: var(--lilac-300); }
.seg-grid { display: grid; gap: 3rem; align-items: start; }
.seg-temp {
  position: relative; overflow: hidden; display: grid; place-content: center; text-align: center; aspect-ratio: 1;
  border-radius: var(--r-lg); background: radial-gradient(90% 90% at 30% 20%, #3E2E8A, var(--ink-2) 60%, #1A1240);
  box-shadow: inset 0 0 0 1px rgba(201,193,242,.15);
}
.frost {
  position: absolute; inset: -20%; pointer-events: none; opacity: .5;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
    radial-gradient(2px 2px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 70%, #fff, transparent), radial-gradient(2px 2px at 60% 50%, #fff, transparent),
    radial-gradient(1px 1px at 30% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 90%, #fff, transparent);
  background-size: 260px 260px; animation: snow 14s linear infinite;
}
.seg-temp-num { position: relative; font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); font-weight: 500; line-height: .9; color: var(--cream); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.seg-temp-num small { font-size: .35em; color: var(--lilac); vertical-align: top; margin-left: .1em; }
.seg-temp-cap { position: relative; margin-top: 1rem; color: var(--lilac-300); max-width: 24ch; margin-inline: auto; }
.steps { margin-top: 2.4rem; display: grid; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid rgba(201,193,242,.18); }
.steps li > span { font-family: var(--serif); font-size: 1.4rem; color: var(--lilac); }
.steps h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--sans); letter-spacing: 0; color: var(--cream); }
.steps p { color: var(--lilac-300); margin-top: .25rem; font-size: .98rem; }
.home-tips { margin-top: 3.5rem; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: rgba(201,193,242,.08); box-shadow: inset 0 0 0 1px rgba(201,193,242,.15); }
.home-tips-h { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 1.2rem; }
.home-tips ul { display: grid; gap: 1rem; }
.home-tips li { position: relative; padding-left: 2.2rem; color: var(--lilac-200); }
.home-tips li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1rem; background: var(--orange); -webkit-mask: url("assets/img/favicon.svg") center / contain no-repeat; mask: url("assets/img/favicon.svg") center / contain no-repeat; }
.home-tips b { color: var(--cream); }

/* ---------- Cómo funciona ---------- */
.como-grid { display: grid; gap: 1.2rem; counter-reset: c; }
.como-card { position: relative; padding: 1rem 1rem 1.8rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.como-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.ph-como { aspect-ratio: 4/3; border-radius: 18px; }
/* Recuadros con proporción fija: la altura la da el aspect-ratio, no el contenedor */
.ph-como, .ph-cierre, .ph-contacto, .ph-historia, .ph-product { height: auto; }
.como-n {
  position: absolute; z-index: 2; top: 1.8rem; right: 1.8rem;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); color: var(--cream); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; box-shadow: var(--shadow);
}
.como-card h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); margin: 1.4rem .6rem 0; }
.como-card p { margin: .5rem .6rem 0; color: var(--text-soft); }

/* ---------- Calculadora ---------- */
.calc { background: var(--lilac-100); }
.calc-grid { display: grid; gap: 3rem; align-items: center; }
.calc-copy .lead { margin-top: 1.4rem; }
.calc-card { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); }
.calc-field + .calc-field { margin-top: 2rem; }
.calc-field > label, .calc-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.calc-weight { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .8rem; }
.calc-weight output { font-family: var(--serif); font-size: 4rem; font-weight: 600; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; }
.calc-weight span { font-weight: 700; color: var(--text-soft); }
input[type="range"] {
  --fill: 17%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--purple) var(--fill), var(--lilac-200) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cream);
  box-shadow: 0 0 0 6px var(--purple), 0 8px 18px rgba(70,48,160,.4); transition: transform .3s var(--ease-bounce);
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 6px solid var(--purple); border-radius: 50%; background: var(--cream); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.range-scale { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .8rem; color: var(--text-soft); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .85rem .5rem; border-radius: 14px; font-weight: 700; font-size: .92rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .3s var(--ease-out); }
.seg input:checked + span { background: var(--purple); color: var(--cream); box-shadow: 0 10px 20px -10px rgba(70,48,160,.7); }
.seg input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 2rem; }
.calc-out > div { padding: 1rem .6rem; border-radius: 18px; background: var(--lilac-100); text-align: center; }
.calc-out b { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-out span { font-size: .78rem; color: var(--text-soft); font-weight: 600; }
.calc-month { margin: 1.2rem 0 1.2rem; text-align: center; color: var(--text-soft); }
.calc-month b { color: var(--purple); }

/* ---------- Transición ---------- */
.plan { display: grid; gap: 1rem; max-width: 900px; }
.plan[hidden] { display: none; }
.plan.is-active { animation: panelIn .7s var(--ease-out); }
.plan-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: .4rem 1rem; align-items: center; }
.plan-day { font-weight: 800; color: var(--ink); font-size: .95rem; }
.plan-bar { height: 46px; border-radius: 14px; background: repeating-linear-gradient(-45deg, var(--cream-2) 0 10px, #F3DFCB 10px 20px); overflow: hidden; }
.plan-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #7B62D6); transition: width 1.3s var(--ease-out) .15s; }
.plan-row.is-visible .plan-bar i { width: var(--w); }
.plan-pct { grid-column: 2; font-size: .88rem; font-weight: 700; color: var(--purple); }
.plan-note { margin-top: 1rem; color: var(--text-soft); max-width: 60ch; }

/* ---------- Testimonios ---------- */
.testi { background: var(--cream-2); }
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.testi-nav { display: flex; gap: .6rem; }
.testi-nav button { width: 56px; height: 56px; border-radius: 50%; font-size: 1.3rem; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, transform .3s var(--ease-out); }
.testi-nav button:hover { background: var(--purple); color: var(--cream); transform: scale(1.06); }
.testi-track {
  display: flex; gap: 1.2rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 1rem max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))) 2.5rem; scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.t {
  flex: 0 0 min(84vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.4rem;
  padding: 2rem; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.t:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.t:nth-child(3n+2) { background: var(--purple); color: var(--cream); }
.t:nth-child(3n+2) .t-tag { background: rgba(253,243,234,.15); color: var(--cream); }
.t:nth-child(3n+2) figcaption span { color: var(--lilac-300); }
.t-tag { align-self: flex-start; padding: .35rem .8rem; border-radius: 999px; background: var(--lilac-100); color: var(--purple); font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.t blockquote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.4; font-variation-settings: "SOFT" 100; flex: 1; }
.t figcaption { display: flex; align-items: center; gap: .9rem; }
.ph-av { width: 54px; height: 54px; min-height: 0; border-radius: 50%; flex: none; }
.ph-av::before, .ph-av::after { display: none; }
.t figcaption b { display: block; }
.t figcaption span { font-size: .88rem; color: var(--text-soft); }

/* ---------- Historia ---------- */
.historia { background: var(--purple); color: var(--cream); overflow: clip; }
.historia::before {
  content: ""; position: absolute; right: -10vw; top: 10%; width: 60vw; height: 44vw; opacity: .06; background: var(--cream);
  -webkit-mask: url("assets/img/favicon.svg") center / contain no-repeat; mask: url("assets/img/favicon.svg") center / contain no-repeat;
}
.historia .h2 { color: var(--cream); }
.historia .h2 em { color: var(--lilac-300); }
.historia .eyebrow { color: var(--lilac-300); }
.historia-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.ph-historia { aspect-ratio: 4/5; border-radius: 200px 200px var(--r-lg) var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.historia-media { order: 2; }
@media (min-width: 960px) { .historia-media { order: 0; } }
.historia-cap { margin-top: 1rem; font-family: var(--serif); font-style: italic; color: var(--lilac-300); text-align: center; }
.historia-text { margin-top: 2rem; display: grid; gap: 1.2rem; font-size: 1.12rem; color: var(--lilac-200); max-width: 54ch; }
.historia-text strong { color: var(--cream); font-weight: 600; }
.historia-quote { margin-top: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(253,243,234,.2); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--cream); }
.historia-quote em { color: var(--lilac-300); }

/* ---------- Comunidad ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 2.5rem; }
.ph-g { aspect-ratio: 1; border-radius: var(--r); transition: transform .6s var(--ease-out); }
.ph-g:hover { transform: scale(1.03) rotate(-1deg); }
.gallery .ph-g:nth-child(5) { display: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--lilac-100); }
.faq-grid { display: grid; gap: 3rem; }
.faq-grid > div:first-child .lead { margin-block: 1.4rem 1.8rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-list details { border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); transition: box-shadow .4s; }
.faq-list details[open] { box-shadow: inset 0 0 0 1.5px var(--purple), var(--shadow-sm); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 1.3rem 3.6rem 1.3rem 1.5rem; font-weight: 700; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--lilac-100); color: var(--purple); font-size: 1.3rem; font-weight: 600;
  transition: transform .45s var(--ease-bounce), background .3s, color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--purple); color: var(--cream); }
.faq-list details p { padding: 0 1.5rem 1.4rem; color: var(--text-soft); }
.faq-list details[open] p { animation: panelIn .5s var(--ease-out); }
.faq-list a { color: var(--purple); font-weight: 700; text-decoration: underline; }

/* ---------- Pedido ---------- */
.pedido { background: linear-gradient(180deg, var(--purple), var(--purple-700)); color: var(--cream); overflow: clip; }
.pedido-blob { position: absolute; width: 60vw; height: 60vw; left: -20vw; bottom: -30vw; border-radius: 50%; background: #7B62D6; filter: blur(90px); opacity: .6; pointer-events: none; }
.pedido .h2 { color: var(--cream); }
.pedido .h2 em { color: var(--lilac-300); }
.pedido .eyebrow { color: var(--lilac-300); }
.pedido .lead { color: var(--lilac-200); margin-top: 1.4rem; }
.pedido-grid { position: relative; display: grid; gap: 3rem; align-items: start; }
.ph-cierre { aspect-ratio: 16/10; border-radius: var(--r-lg); margin-top: 2.2rem; }
.contact-list { margin-top: 2rem; display: grid; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(253,243,234,.18); }
.contact-list span { color: var(--lilac-300); }
.contact-list a { font-weight: 700; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.order { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: var(--paper); color: var(--text); box-shadow: 0 50px 100px -30px rgba(10,5,40,.55); }
.order-head { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.order-head .qty { grid-column: 1 / -1; justify-self: start; }
.ph-thumb { width: 64px; height: 64px; min-height: 0; border-radius: 16px; }
.ph-thumb::before, .ph-thumb::after { display: none; }
.ph-thumb .ph-ico { width: 60%; }
.order-name { font-weight: 800; color: var(--ink); }
.order-unit { font-size: .9rem; color: var(--text-soft); }
.order-fields { display: grid; gap: 1rem; padding-block: 1.4rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; padding: .95rem 1rem; border: 0; border-radius: 14px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%), linear-gradient(135deg, var(--purple) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field input:focus, .field select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--purple); }
.field.is-invalid input, .field.is-invalid select { box-shadow: inset 0 0 0 2px #D9534F; }
.order-lines { display: grid; gap: .45rem; padding-top: 1.2rem; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.order-lines p { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--text-soft); }
.order-lines b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.ship-list { display: grid; gap: .5rem; margin: 0 1.5rem 1rem; }
.ship-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: 12px; background: var(--lilac-100); color: var(--text-soft); font-size: .95rem; }
.ship-list b { color: var(--purple); white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.order-total span { font-weight: 700; color: var(--ink); }
.order-total b { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.order-note { font-size: .85rem; color: var(--text-soft); margin-top: .3rem; }
.order-actions { display: grid; gap: .7rem; margin-top: 1.4rem; }
.order-msg { margin-top: 1rem; font-size: .92rem; font-weight: 600; color: var(--purple); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--lilac-200); padding-block: 4.5rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-logo { width: 190px; height: 32px; fill: var(--cream); }
.footer-brand p { margin-top: 1.2rem; max-width: 36ch; color: var(--lilac-300); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; align-content: start; }
.footer-links a:hover { color: var(--cream); }
.footer-h { font-weight: 800; color: var(--cream); margin-bottom: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(201,193,242,.15); font-size: .88rem; color: var(--lilac-300); }
.footer-bottom p { display: flex; align-items: center; gap: .4rem; }
.footer-heart { width: 22px; height: 16px; fill: var(--orange); animation: splashBeat 1.6s var(--ease-soft) infinite; }

/* ---------- Multipágina ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtIn .6s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

.no-splash .splash { display: none; }
.section.page-first { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.mobile-menu a[aria-current="page"] { color: var(--purple); font-style: italic; }

/* Menú claro sobre la portada morada (Nuestra historia) */
.nav-dark .nav:not(.is-solid) .nav-logo svg { fill: var(--cream); }
.nav-dark .nav:not(.is-solid) .nav-links a { color: var(--cream); }
.nav-dark .nav:not(.is-solid) .nav-links a::after { background: var(--cream); }
.nav-dark .nav:not(.is-solid) .nav-cart { --bg: var(--cream); --fg: var(--purple); }
.nav-dark .nav:not(.is-solid) .nav-cart .cart-count { background: var(--purple); color: var(--cream); }

/* ---------- Contacto ---------- */
.contacto { overflow: clip; min-height: 100vh; min-height: 100svh; }
.contacto .hero-blob-1 { right: -18vw; top: -10vh; }
.contacto-grid { position: relative; display: grid; gap: 3rem; align-items: start; }
.contacto-copy .lead { margin-top: 1.4rem; }
.ph-contacto { aspect-ratio: 4/3.2; border-radius: var(--r-lg); margin-top: 2.4rem; }
.contacto-cards { display: grid; gap: .9rem; }
.c-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--lilac-100); color: var(--purple); }
.c-ico svg { width: 26px; height: 26px; }
.c-k { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--text-soft); }
.c-v { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.c-arrow { font-size: 1.3rem; color: var(--purple); transition: transform .4s var(--ease-out); }
.c-card:hover .c-arrow { transform: translateX(5px); }
.c-wa { background: #1FAF5A; box-shadow: 0 20px 40px -18px rgba(31,175,90,.7); }
.c-wa .c-ico { background: rgba(255,255,255,.18); color: #fff; }
.c-wa .c-k { color: rgba(255,255,255,.85); }
.c-wa .c-v, .c-wa .c-arrow { color: #fff; }
.c-zones { padding: 1.6rem 1.5rem; border-radius: var(--r); background: var(--purple); color: var(--cream); }
.c-zones-h { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1rem; }
.c-zones-grid { display: grid; gap: 1.1rem; }
.c-zone-t { font-weight: 800; color: var(--lilac-300); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.c-zones-grid p:not(.c-zone-t) { color: var(--lilac-200); font-size: .95rem; }
.contacto-cards .btn { margin-top: .4rem; }

/* ---------- Gracias ---------- */
.gracias { overflow: clip; min-height: 100vh; min-height: 100svh; text-align: center; }
.gracias-wrap { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.gracias-wrap .h2, .gracias-wrap .lead { margin-inline: auto; }
.gracias-wrap .lead { margin-top: 1.2rem; }
.gracias-ico { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--purple); box-shadow: var(--shadow-lg); margin-bottom: 1.8rem; animation: splashBeat 1.6s var(--ease-soft) infinite; }
.gracias-ico svg { width: 60px; height: 44px; fill: var(--cream); }
.gracias-card { width: 100%; max-width: 460px; margin-top: 2rem; padding: 1.2rem 1.5rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); text-align: left; }
.gracias-card[hidden] { display: none; }
.gracias-card p { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.gracias-card p:last-child { border-bottom: 0; }
.gracias-card b { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.gracias-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.gracias-ctas .btn-wa { --bg: #1FAF5A; --fg: #fff; }
.gracias-note { margin-top: 1.6rem; font-size: .92rem; color: var(--text-soft); max-width: 48ch; }

/* Toast con enlace */
.toast a { margin-left: .6rem; color: var(--lilac-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #1FAF5A; color: #fff; box-shadow: 0 14px 30px -8px rgba(31,175,90,.6); transition: transform .4s var(--ease-bounce);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 150; translate: -50% 160%; max-width: calc(100vw - 2rem);
  padding: .95rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; box-shadow: var(--shadow-lg);
  transition: translate .6s var(--ease-bounce);
}
.toast.is-on { translate: -50% 0; }

/* =============================================================
   7. Effects (keyframes)
   ============================================================= */
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
@keyframes splashBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
@keyframes phShine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blobA { to { transform: translate(-6vw, 8vh) scale(1.15); } }
@keyframes blobB { to { transform: translate(8vw, -6vh) scale(1.2); } }
@keyframes morph {
  0%   { border-radius: 48% 52% 46% 54% / 55% 50% 50% 45%; }
  50%  { border-radius: 56% 44% 52% 48% / 46% 56% 44% 54%; }
  100% { border-radius: 44% 56% 58% 42% / 52% 44% 56% 48%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg) scale(1.04); } }
@keyframes snow { to { background-position: 0 260px, 30px 260px, -20px 260px, 10px 260px, 0 260px, 0 260px, 0 260px, 0 260px; } }

/* =============================================================
   8. Responsive
   ============================================================= */
.contacto-grid, .yb-grid, .receta-top, .bento, .seg-grid, .como-grid, .calc-grid, .historia-grid, .faq-grid, .pedido-grid, .product, .footer-grid, .versus, .order-fields { grid-template-columns: minmax(0, 1fr); }
.ph { min-width: 0; }

@media (max-width: 539px) {
  .ing-head { flex-wrap: wrap; gap: .6rem 1rem; }
  .ing-head-t { white-space: normal; flex-basis: 100%; }
  .switch { display: grid; width: 100%; }
  .switch button { white-space: normal; padding: .8rem .6rem; font-size: .88rem; line-height: 1.2; }
  .hero-proof { gap: 1.4rem; justify-content: space-between; }
  .hero-proof b { font-size: 1.5rem; }
  .hero-proof span { font-size: .78rem; }
  .chip { font-size: .8rem; padding: .6rem .8rem; }
  .chip-a { right: 0; }
  .chip-b { left: 0; }
  .chip-c { right: 0; }
  .hero-ctas .btn { width: 100%; }
}
@media (min-width: 540px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .ph-g:nth-child(5) { display: block; }
  .gallery .ph-g:nth-child(4), .gallery .ph-g:nth-child(5) { display: none; }
  .order-fields { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .order-head { grid-template-columns: 64px 1fr auto; }
  .order-head .qty { grid-column: auto; }
}

@media (min-width: 720px) {
  .switch-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .versus { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .como-grid { grid-template-columns: repeat(3, 1fr); }
  .soon { grid-template-columns: 1fr 1fr 1.4fr; }
  .soon-copy { grid-column: auto; padding-left: 1rem; }
  .hero-scroll { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr .8fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cart { margin-left: 1rem; }
  .nav-burger, .mobile-menu { display: none; }

  .hero { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .yb-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .yb-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .receta-top { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .product { grid-template-columns: 1fr 1fr; }
  .seg-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .seg-temp { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .home-tips ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .historia-grid { grid-template-columns: .8fr 1.2fr; gap: 6rem; }
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery .ph-g:nth-child(n) { display: block; aspect-ratio: auto; min-height: 210px; }
  .gallery .ph-g:first-child { grid-row: span 2; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .faq-grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
  .pedido-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; }
  .contacto-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .c-zones-grid { grid-template-columns: 1fr 1fr; }

  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); }
  .b-1 { grid-column: span 2; grid-row: span 2; }
  .b-4 { grid-column: span 2; grid-row: span 2; }

  /* Ingredientes: scroll horizontal fijado (solo si JS lo activa) */
  .ingredients.is-pinned { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; overflow: hidden; margin-block: 0; background: var(--cream); }
  .ingredients.is-pinned .ing-head-hint { display: none; }
  .ingredients.is-pinned .ing-track { overflow: visible; scroll-snap-type: none; padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
  .ingredients.is-pinned .ing { flex-basis: 300px; }
}

@media (min-width: 1280px) {
  .hero { padding-top: calc(var(--nav-h) + 1rem); }
  .chip-b { left: -12%; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-blob, .hero-ring, .frost, .ph::after, .product-badge { animation: none; }
  .ticker-track { animation-duration: 90s; }
}
