/* ==========================================================================
   HGW — Health Green World · Design system
   ========================================================================== */

:root {
  --bg: #f5f4ef;
  --bg-2: #ecebe4;
  --surface: #ffffff;
  --ink: #0c1310;
  --ink-2: #26302b;
  --muted: #66716b;
  --line: rgba(12, 19, 16, 0.09);
  --line-2: rgba(12, 19, 16, 0.16);

  --green: #12a150;
  --green-2: #0b7a3c;
  --green-deep: #06281c;
  --lime: #c6f36b;
  --berry: #4338ca;
  --berry-2: #2b2380;
  --berry-deep: #120d33;
  --lilac: #b8a6ff;
  --gold: #c8923a;
  --wa: #25d366;

  --night: #050807;
  --night-2: #0b1411;
  --on-night: #f1f5f2;
  --on-night-muted: rgba(241, 245, 242, 0.62);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(12, 19, 16, .06), 0 2px 8px rgba(12, 19, 16, .04);
  --shadow: 0 10px 30px -10px rgba(12, 19, 16, .18), 0 2px 6px rgba(12, 19, 16, .05);
  --shadow-lg: 0 40px 80px -30px rgba(12, 19, 16, .35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,161,80,.15); }
.on-night .eyebrow { color: var(--on-night-muted); }
.on-night .eyebrow::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(198,243,107,.15); }

.display {
  font-size: clamp(3rem, 8.4vw, 8.4rem);
  line-height: .9; letter-spacing: -0.055em; font-weight: 600; margin: 0;
}
.display .serif { letter-spacing: -0.035em; font-size: 1.04em; }
.h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -0.05em; font-weight: 600; margin: 0; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; letter-spacing: -0.01em; }
.on-night .lead { color: var(--on-night-muted); }

/* Split text reveal */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 62px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lime); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.on-night .btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.on-night .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-wa:hover { background: #1fbe5a; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7); }
.btn-arrow svg { transition: transform .5s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-u { position: relative; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform .5s var(--ease); }
.link-u:hover::after { transform-origin: left; transform: scaleX(1); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  transition: background-color .25s, transform .4s var(--ease);
}
.icon-btn:hover { background: rgba(12,19,16,.06); }
.icon-btn svg { width: 20px; height: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  transition: all .3s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-size: 12px; opacity: .55; }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge-new { background: var(--ink); color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: center; padding: 0 12px; pointer-events: none;
  transition: transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.nav {
  pointer-events: auto;
  width: 100%; max-width: 1240px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(250, 250, 247, .72);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 32px -12px rgba(12,19,16,.18);
  transition: background-color .5s, color .5s, border-color .5s;
}
.site-header[data-theme='dark'] .nav { background: rgba(10, 16, 14, .55); color: #fff; border-color: rgba(255,255,255,.08); box-shadow: 0 8px 32px -12px rgba(0,0,0,.5); }
.site-header[data-theme='dark'] .icon-btn:hover { background: rgba(255,255,255,.1); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 19px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { font-weight: 500; font-size: 12px; opacity: .55; letter-spacing: 0; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: .78; transition: opacity .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { opacity: 1; background: rgba(12,19,16,.06); }
.site-header[data-theme='dark'] .nav-links a:hover, .site-header[data-theme='dark'] .nav-links a[aria-current='page'] { background: rgba(255,255,255,.1); }
.nav-actions { display: flex; align-items: center; gap: 2px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-cta { margin-left: 6px; }
.burger { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
  .nav { padding-left: 16px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 79; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 46px) 42px); transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.mobile-menu nav a { display: block; font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.12; }
.mobile-menu nav a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.mobile-menu nav a .serif { color: var(--lime); }
.mobile-menu nav div { overflow: hidden; }
.mobile-menu.is-open nav a span { transform: none; }
.mobile-menu-foot { display: grid; gap: 14px; opacity: 0; transition: opacity .6s .4s; }
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; }
.burger-lines { position: relative; width: 20px; height: 12px; }
.burger-lines i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger-lines i:nth-child(1) { top: 2px; }
.burger-lines i:nth-child(2) { top: 9px; }
.menu-open .burger-lines i:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.menu-open .burger-lines i:nth-child(2) { top: 5.5px; transform: rotate(-45deg); }
.menu-open .site-header .nav { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.08); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-sm { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .lead { margin: 18px 0 0; }
.on-night { background: var(--night); color: var(--on-night); }

/* Page hero (internal pages) */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .display { max-width: 12ch; }
.page-hero .lead { margin-top: 24px; }
.page-hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(184,166,255,.45), rgba(184,166,255,0) 60%); filter: blur(10px); pointer-events: none; z-index: -1; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- HOME · Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(60vw 50vw at 72% 42%, rgba(67, 56, 202, .55) 0%, rgba(67,56,202,0) 60%),
    radial-gradient(50vw 40vw at 12% 92%, rgba(18, 161, 80, .35) 0%, rgba(18,161,80,0) 60%),
    radial-gradient(40vw 30vw at 95% 100%, rgba(200, 146, 58, .18) 0%, rgba(200,146,58,0) 60%),
    var(--night);
  display: flex; flex-direction: column;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-fallback { position: absolute; right: 8%; top: 50%; width: min(40vw, 520px); transform: translateY(-50%); z-index: 1; filter: drop-shadow(0 50px 60px rgba(0,0,0,.5)); display: none; }
.no-webgl .hero-fallback { display: block; }
.hero-inner { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 140px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero .display { max-width: 9.5ch; }
.hero .display .serif { color: var(--lilac); }
.hero .lead { margin: 28px 0 36px; max-width: 34ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-spot {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 112px;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 10px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff; max-width: calc(100% - 2 * var(--gutter));
}
.hero-spot-img { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; overflow: hidden; flex: none; }
.hero-spot-img img { width: 82%; height: 82%; object-fit: contain; }
.hero-spot-txt { line-height: 1.2; min-width: 0; }
.hero-spot-txt small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.hero-spot-txt strong { font-size: 15px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-spot-txt span { font-size: 13px; opacity: .75; }
.hero-spot .btn { --h: 44px; padding: 0 18px; }
.hero-dots { display: flex; gap: 6px; padding: 0 6px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .4s var(--ease); }
.hero-dots i.on { width: 20px; border-radius: 6px; background: #fff; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid rgba(255,255,255,.08); }
.marquee { overflow: hidden; white-space: nowrap; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-right: 48px; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-size: 14px; font-weight: 500; letter-spacing: .02em; opacity: .7; }
.marquee-track span::after { content: '✦'; font-size: 10px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
.scroll-hint { position: absolute; left: 50%; bottom: 80px; z-index: 3; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; transform: translateX(-50%); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: scrollhint 2s var(--ease) infinite; }
@keyframes scrollhint { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
.grain::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  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");
}

@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-inner { justify-content: flex-end; padding-top: calc(52svh); padding-bottom: 176px; }
  .hero .eyebrow { font-size: 11px; }
  .hero .display { font-size: clamp(2.9rem, 13.5vw, 4.6rem); }
  .hero .lead { margin: 18px 0 26px; font-size: 1rem; }
  .hero-spot { left: var(--gutter); right: var(--gutter); bottom: 78px; }
  .hero-spot .hero-dots { display: none; }
  .scroll-hint { display: none; }
  .hero-fallback { right: 50%; top: 28%; width: 70vw; transform: translate(50%, -50%); }
}

/* ---------- Statement (scroll text reveal) ---------- */
.statement { font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; max-width: 22ch; margin: 0; }
.statement .w { opacity: .14; transition: opacity .2s; }
.statement .serif { color: var(--berry); }
.statement-pills { display: inline-flex; vertical-align: middle; gap: 0; margin: 0 .12em; }
.statement-pills img { width: 1.15em; height: 1.15em; border-radius: 50%; background: #fff; object-fit: contain; padding: .1em; box-shadow: var(--shadow-sm); margin-left: -.25em; border: 2px solid var(--bg); }
.statement-pills img:first-child { margin-left: 0; }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.p-card {
  --tint: #e6e6f5;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden; isolation: isolate;
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
  transform-style: preserve-3d;
}
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-card-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 62%, var(--tint) 0%, rgba(255,255,255,0) 72%),
    linear-gradient(180deg, #f7f6f2, #efeee8);
}
.p-card-media img {
  width: 74%; height: 74%; object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(20, 20, 40, .22));
  transition: transform .9s var(--ease);
}
.p-card:hover .p-card-media img { transform: translateY(-6px) scale(1.06) rotate(-2deg); }
.p-card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.p-card-quick {
  position: absolute; right: 14px; top: 14px; z-index: 2; height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: translateY(-6px); transition: all .4s var(--ease);
}
.p-card:hover .p-card-quick { opacity: 1; transform: none; }
.p-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card-cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.p-card-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.p-card-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.p-card-spec { font-size: 13px; color: var(--muted); }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; gap: 10px; }
.price { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.add-btn {
  position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: none; transition: transform .5s var(--ease), background-color .3s, width .5s var(--ease);
}
.add-btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.add-btn:hover { background: var(--green); transform: scale(1.06); }
.add-btn:hover svg { transform: rotate(90deg); }
.add-btn.added { background: var(--green); }
@media (max-width: 820px) {
  .p-card { border-radius: 22px; }
  .p-card-body { padding: 14px 14px 14px; }
  .p-card-name { font-size: 15px; }
  .p-card-spec { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .price { font-size: 15px; }
  .add-btn { width: 38px; height: 38px; }
  .p-card-quick { display: none; }
  .p-card-badges { top: 10px; left: 10px; }
  .badge { height: 22px; font-size: 10.5px; padding: 0 9px; }
}

/* Rail (horizontal scroller) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 23%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 820px) { .rail { grid-auto-columns: 72%; gap: 12px; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.rail-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-nav svg { width: 18px; height: 18px; }

/* ---------- Pillars (pinned story) ---------- */
.pillars { position: relative; background: var(--night); color: var(--on-night); }
.pillar-stage { position: relative; height: 100svh; overflow: hidden; }
.pillar {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: calc(var(--header-h) + 20px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 40px;
}
.pillar-bg { position: absolute; inset: 0; z-index: -1; }
.pillar { isolation: isolate; }
.pillar[data-p='0'] { z-index: 1; }
.pillar[data-p='1'] { z-index: 2; }
.pillar[data-p='2'] { z-index: 3; }
.pillar[data-p='0'] .pillar-bg { background: radial-gradient(60% 70% at 75% 50%, #3a2fb8 0%, #1a1350 45%, #07061a 100%); }
.pillar[data-p='1'] .pillar-bg { background: radial-gradient(60% 70% at 75% 50%, #b9782a 0%, #4b2a0c 45%, #120a03 100%); }
.pillar[data-p='2'] .pillar-bg { background: radial-gradient(60% 70% at 75% 50%, #138a55 0%, #083a26 45%, #020d08 100%); }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); opacity: .6; }
.pillar h3 { font-size: clamp(3rem, 8vw, 8rem); line-height: .9; letter-spacing: -0.055em; font-weight: 600; margin: 10px 0 22px; }
.pillar p { font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--on-night-muted); max-width: 40ch; margin: 0 0 30px; }
.pillar-visual { position: relative; height: min(70vh, 640px); display: grid; place-items: center; }
.pillar-visual img { position: absolute; width: 48%; object-fit: contain; filter: drop-shadow(0 50px 50px rgba(0,0,0,.55)); will-change: transform; }
.pillar-visual img:nth-child(1) { width: 56%; z-index: 2; }
.pillar-visual img:nth-child(2) { left: 0; top: 8%; width: 36%; z-index: 1; }
.pillar-visual img:nth-child(3) { right: 0; bottom: 6%; width: 36%; z-index: 3; }
.pillar-visual canvas { position: absolute; inset: -10%; width: 120%; height: 120%; }
.pillar-progress { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 36px; display: flex; gap: 8px; z-index: 5; }
.pillar-progress i { width: 44px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.pillar-progress i b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
@media (max-width: 820px) {
  .pillar-stage { height: auto; }
  .pillar { position: relative; grid-template-columns: 1fr; padding: 80px var(--gutter) 70px; gap: 10px; }
  .pillar-visual { height: 74vw; order: -1; }
  .pillar h3 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .pillar-progress { display: none; }
}

/* ---------- Bento categories ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(22px, 3vw, 36px); isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; background: var(--surface);
  transition: transform .8s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 8px; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); max-width: 30ch; font-size: 15px; }
.tile-imgs { position: absolute; right: -4%; bottom: -6%; width: 62%; height: 80%; z-index: -1; }
.tile-imgs img { position: absolute; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.2)); transition: transform 1.2s var(--ease); }
.tile:hover .tile-imgs img { transform: translateY(-10px) rotate(-3deg) scale(1.04); }
.tile-arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s; }
.tile:hover .tile-arrow { transform: rotate(-45deg); background: var(--green); }
.tile-arrow svg { width: 20px; height: 20px; }
.tile-a { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #e9e6ff 0%, #d2cbff 100%); }
.tile-b { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #f6e8ff 0%, #e7cdfc 100%); }
.tile-c { grid-column: span 3; background: linear-gradient(160deg, #eef3f6 0%, #dce7ee 100%); }
.tile-d { grid-column: span 3; background: linear-gradient(160deg, #e2f4ea 0%, #c6e8d4 100%); }
.tile-a .tile-imgs { width: 66%; height: 92%; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 12px; }
  .tile-a { grid-column: span 2; min-height: 420px; }
  .tile-b, .tile-c, .tile-d { grid-column: span 1; min-height: 300px; }
  .tile-d { grid-column: span 2; }
  .tile { border-radius: 28px; }
  .tile-imgs { width: 80%; height: 62%; }
  .tile p { font-size: 13.5px; }
}
@media (max-width: 520px) { .tile-b, .tile-c { grid-column: span 2; } }

/* ---------- Rituals ---------- */
.rituals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .rituals-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .rituals-grid { grid-template-columns: 1fr; } }
.ritual {
  position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; padding: 28px; min-height: 520px;
  display: flex; flex-direction: column; isolation: isolate;
}
.ritual-bg { position: absolute; inset: 0; z-index: -2; }
.ritual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 50% 40%, rgba(255,255,255,.14), transparent 70%); }
.ritual-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ritual-count { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.ritual h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1; margin: 6px 0 8px; font-weight: 600; }
.ritual p { margin: 0; opacity: .75; font-size: 15px; max-width: 34ch; }
.ritual-stack { position: relative; flex: 1; min-height: 220px; margin: 18px 0; }
.ritual-stack img { position: absolute; width: 44%; max-height: 100%; top: 50%; left: 50%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 1.1s var(--ease); }
.ritual:hover .ritual-stack img { transform: translate(-50%, -50%) translate(calc(var(--x) * 1.25), calc(var(--y) - 6%)) rotate(calc(var(--r) * 1.5)) scale(1.04); }
.ritual-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14px; }
.ritual-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ritual-list li span:last-child { opacity: .7; font-variant-numeric: tabular-nums; }
.ritual-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ritual-total small { display: block; font-size: 12px; opacity: .65; }
.ritual-total strong { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; }
.ritual-actions { display: flex; gap: 8px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 32px; border-radius: var(--r-lg); background: var(--surface); position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 5.5rem; line-height: .8; color: var(--berry); opacity: .9; }
.step h3 { margin: auto 0 8px; font-size: 1.45rem; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-ico { position: absolute; right: 24px; top: 24px; width: 54px; height: 54px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; }
.step-ico svg { width: 24px; height: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step { min-height: 210px; } }

/* ---------- Quiz band ---------- */
.quiz-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px);
  background: radial-gradient(70% 90% at 90% 10%, #5b4bff 0%, rgba(91,75,255,0) 60%), radial-gradient(60% 80% at 0% 100%, #12a150 0%, rgba(18,161,80,0) 60%), #0b0a1d;
  color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.quiz-band .lead { color: rgba(255,255,255,.7); }
.quiz-orbs { position: relative; height: 320px; }
.quiz-orbs img { position: absolute; width: 42%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); animation: float 6s var(--ease-in-out) infinite alternate; }
.quiz-orbs img:nth-child(1) { left: 6%; top: 10%; animation-delay: -1s; }
.quiz-orbs img:nth-child(2) { left: 34%; top: 30%; width: 48%; z-index: 2; animation-delay: -3s; }
.quiz-orbs img:nth-child(3) { right: 0; top: 0; animation-delay: -2s; }
@keyframes float { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(12px) rotate(3deg); } }
@media (max-width: 820px) { .quiz-band { grid-template-columns: 1fr; border-radius: 30px; } .quiz-orbs { height: 230px; order: -1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1310' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 56px 26px 0; color: var(--muted); max-width: 70ch; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 14vw, 200px) 0; }
.cta-final .display { margin: 0 auto; max-width: 11ch; }
.cta-final .lead { margin: 24px auto 40px; }
.cta-final-glow { position: absolute; inset: auto 50% -40% auto; width: 120vw; height: 80vw; transform: translateX(50%); background: radial-gradient(closest-side, rgba(37,211,102,.35), transparent); pointer-events: none; }
.cta-final .container { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding: 80px 0 32px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); margin: 0 0 18px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { opacity: .85; transition: opacity .2s; }
.footer-grid a:hover, .footer-grid button:hover { opacity: 1; color: var(--lime); }
.footer-grid button { font-weight: 400; opacity: .85; }
.footer-brand p { color: var(--on-night-muted); max-width: 36ch; margin: 18px 0 24px; }
.footer-word { font-size: min(10.4vw, 152px); font-weight: 700; letter-spacing: -0.07em; line-height: .78; margin: 70px 0 20px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-night-muted); border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer-legal p { margin: 0; max-width: 80ch; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { background: #fff; color: var(--ink) !important; }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 10px; }
.wa-float-btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(37,211,102,.65); transition: transform .5s var(--ease); position: relative;
}
.wa-float-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float-btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float-btn svg { width: 30px; height: 30px; }
.wa-bubble { background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); max-width: 230px; line-height: 1.35; opacity: 0; transform: translateX(10px) scale(.95); transition: all .6s var(--ease); pointer-events: none; }
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble b { display: block; font-size: 12px; color: var(--green-2); margin-bottom: 2px; }
@media (max-width: 820px) { .wa-float { right: 14px; bottom: 14px; } .wa-float-btn { width: 54px; height: 54px; } .has-sticky-bar .wa-float { bottom: 92px; } }

/* ---------- Drawer (cart) ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 7, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 95; width: min(460px, calc(100vw - 20px));
  background: var(--bg); border-radius: 30px; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 30px)); transition: transform .7s var(--ease), visibility 0s linear .7s; box-shadow: var(--shadow-lg); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px 26px; }
.drawer-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.drawer-head h2 span { color: var(--muted); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.ship-bar { font-size: 13px; padding: 12px 14px; background: var(--surface); border-radius: 16px; margin: 0 4px 12px; }
.ship-bar-track { height: 6px; border-radius: 6px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.ship-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); border-radius: 6px; transition: width .8s var(--ease); }
.line-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; border-radius: 20px; background: var(--surface); margin-bottom: 8px; align-items: center; }
.line-item-img { width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, var(--tint, #eee), #f4f3ef 75%); }
.line-item-img img { width: 78%; height: 78%; object-fit: contain; }
.line-item-top { display: flex; justify-content: space-between; gap: 8px; }
.line-item h4 { margin: 0; font-size: 15px; letter-spacing: -0.02em; line-height: 1.25; }
.line-item small { color: var(--muted); font-size: 12.5px; display: block; }
.line-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.remove-btn { color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: #c0392b; }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--bg); }
.qty button svg { width: 14px; height: 14px; }
.qty output, .qty input { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; border: 0; background: none; width: 30px; }
.qty-lg { height: 54px; }
.qty-lg button { width: 50px; height: 50px; }
.totals { display: flex; justify-content: space-between; align-items: baseline; }
.totals span { color: var(--muted); font-size: 14px; }
.totals strong { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.drawer-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.empty { text-align: center; padding: 50px 20px; display: grid; justify-items: center; gap: 14px; }
.empty-ico { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.empty-ico svg { width: 34px; height: 34px; }
.empty h3 { margin: 0; letter-spacing: -0.03em; font-size: 1.4rem; }
.empty p { margin: 0; color: var(--muted); max-width: 30ch; }
.upsell { margin: 16px 4px 0; }
.upsell h5 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.upsell-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.upsell-row::-webkit-scrollbar { display: none; }
.upsell-item { background: var(--surface); border-radius: 18px; padding: 10px; display: grid; gap: 4px; }
.upsell-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle at 50% 60%, var(--tint, #eee), #f4f3ef 75%); border-radius: 12px; padding: 10px; }
.upsell-item b { font-size: 13px; line-height: 1.2; letter-spacing: -0.01em; }
.upsell-item div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.upsell-item button { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.upsell-item button svg { width: 14px; height: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,7,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; width: min(980px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); border-radius: 34px; opacity: 0; transform: translateY(30px) scale(.97); transition: all .6s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); }
.modal-sm .modal-panel { width: min(520px, 100%); }
.modal-md .modal-panel { width: min(720px, 100%); }

.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { background: radial-gradient(70% 60% at 50% 60%, var(--tint), #f0efe9 75%); display: grid; place-items: center; min-height: 460px; }
.qv-media img { width: 72%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.22)); }
.qv-body { padding: 44px 38px; display: flex; flex-direction: column; gap: 14px; }
.qv-body h3 { margin: 0; font-size: 2rem; letter-spacing: -0.04em; line-height: 1.02; }
.qv-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
@media (max-width: 760px) { .qv { grid-template-columns: 1fr; } .qv-media { min-height: 300px; } .qv-body { padding: 26px 22px; } }

/* Popup (asesoría) */
.promo { display: grid; grid-template-columns: 1fr; text-align: center; }
.promo-top { position: relative; height: 210px; overflow: hidden; background: radial-gradient(60% 90% at 50% 100%, #5b4bff, #0b0a1d 75%); }
.promo-top img { position: absolute; bottom: -14px; width: 34%; filter: drop-shadow(0 20px 20px rgba(0,0,0,.4)); }
.promo-top img:nth-child(1) { left: 6%; transform: rotate(-10deg); }
.promo-top img:nth-child(2) { left: 33%; width: 38%; bottom: -8px; z-index: 2; }
.promo-top img:nth-child(3) { right: 6%; transform: rotate(10deg); }
.promo-body { padding: 30px 30px 32px; display: grid; gap: 12px; justify-items: center; }
.promo-body h3 { margin: 0; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.02; }
.promo-body p { margin: 0 0 6px; color: var(--muted); max-width: 36ch; }
.promo-body .btn { width: 100%; }
.promo-skip { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Quiz */
.quiz { padding: 40px 36px 32px; min-height: 520px; display: flex; flex-direction: column; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 28px; padding-right: 50px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.quiz-progress i.on { background: var(--ink); }
.quiz h3 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.04; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.quiz-opt { text-align: left; padding: 18px; border-radius: 20px; background: var(--surface); border: 1.5px solid transparent; display: flex; gap: 14px; align-items: center; transition: all .3s var(--ease); }
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.quiz-opt .e { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; flex: none; }
.quiz-opt b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.quiz-opt small { color: var(--muted); font-size: 13px; }
.quiz-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.quiz-res { background: var(--surface); border-radius: 20px; padding: 12px; text-align: center; display: grid; gap: 4px; }
.quiz-res img { aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle at 50% 60%, var(--tint), #f4f3ef 75%); border-radius: 14px; padding: 12px; width: 100%; }
.quiz-res b { font-size: 14px; letter-spacing: -0.01em; line-height: 1.2; }
.quiz-res span { font-size: 13px; color: var(--muted); }
.quiz-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .quiz { padding: 30px 18px 22px; } .quiz-opts { grid-template-columns: 1fr; } .quiz-results { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .quiz-res { padding: 8px; } .quiz-res b { font-size: 12px; } }

/* Search */
.search { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.search.is-open { visibility: visible; }
.search-panel { position: absolute; top: 0; left: 0; right: 0; background: var(--bg); padding: 90px var(--gutter) 36px; border-radius: 0 0 36px 36px; transform: translateY(-100%); transition: transform .7s var(--ease); max-height: 92svh; overflow: auto; }
.search.is-open .search-panel { transform: none; }
.search .modal-backdrop { opacity: 0; }
.search.is-open .modal-backdrop { opacity: 1; }
.search-input { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search-input svg { width: 28px; height: 28px; flex: none; }
.search-input input { flex: 1; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; border: 0; background: none; outline: none; min-width: 0; }
.search-results { max-width: var(--max); margin: 26px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.search-hit { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); transition: transform .3s var(--ease); }
.search-hit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.search-hit img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 50% 60%, var(--tint), #f4f3ef 75%); padding: 6px; }
.search-hit b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.search-hit span { font-size: 13px; color: var(--muted); }
.search-suggest { max-width: var(--max); margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; padding-right: 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .6s var(--ease); }
.toast img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.toast a { color: var(--lime); font-weight: 600; margin-left: 6px; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* Fly to cart */
.fly { position: fixed; z-index: 130; pointer-events: none; width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }

/* ---------- Shop ---------- */
.shop-bar { position: sticky; top: 84px; z-index: 20; display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px; margin-bottom: 28px; border-radius: 999px; background: rgba(245,244,239,.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); }
.shop-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.field-pill { height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font-size: 14px; outline: none; }
.field-pill:focus { border-color: var(--ink); }
.shop-search { width: 200px; }
.shop-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .shop-bar { flex-direction: column; align-items: stretch; border-radius: 26px; top: 80px; }
  .shop-tools { width: 100%; }
  .shop-search { flex: 1; width: auto; }
}
.no-results { text-align: center; padding: 60px 0; color: var(--muted); display: none; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp-media { position: sticky; top: 96px; border-radius: var(--r-xl); aspect-ratio: 1 / 1.02; display: grid; place-items: center; overflow: hidden; perspective: 1200px;
  background: radial-gradient(60% 55% at 50% 58%, var(--tint), rgba(255,255,255,0) 72%), linear-gradient(180deg, #faf9f6, #ecebe5); }
.pdp-media-inner { width: 72%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.pdp-media img { width: 100%; filter: drop-shadow(0 50px 40px rgba(20,20,40,.28)); }
.pdp-shadow { position: absolute; bottom: 12%; left: 50%; width: 46%; height: 26px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); filter: blur(4px); }
.pdp-rotate { position: absolute; left: 20px; bottom: 20px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pdp-info { padding-top: 10px; }
.pdp-info h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.05em; line-height: .96; margin: 14px 0 12px; font-weight: 600; }
.pdp-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--berry); margin: 0 0 22px; line-height: 1.1; }
.pdp-price { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.pdp-spec { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.pdp-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 28px 0 10px; }
.pdp-buy .btn-wa { grid-column: span 2; }
.pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 30px; }
.pdp-trust div { background: var(--surface); border-radius: 18px; padding: 14px; font-size: 13px; line-height: 1.3; }
.pdp-trust svg { width: 20px; height: 20px; margin-bottom: 8px; color: var(--green-2); }
.pdp-benefits { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.pdp-benefits li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.pdp-benefits li i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; flex: none; font-style: normal; }
.pdp-benefits li i svg { width: 14px; height: 14px; }
.pdp .faq summary { font-size: 1.05rem; padding: 20px 50px 20px 0; }
.disclaimer { font-size: 12.5px; color: var(--muted); padding: 14px 16px; background: var(--bg-2); border-radius: 14px; margin-top: 20px; }
.sticky-buy { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .6s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: var(--bg); padding: 4px; }
.sticky-buy div { flex: 1; min-width: 0; line-height: 1.2; }
.sticky-buy b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: relative; top: 0; border-radius: 30px; }
  .sticky-buy { display: flex; }
  .pdp-trust { grid-template-columns: 1fr 1fr 1fr; }
  .pdp-trust div { padding: 12px 10px; font-size: 12px; }
}

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: span 2; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 54px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 16px; font-size: 16px; outline: none; transition: border-color .2s, background-color .2s; width: 100%; }
.field textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field.invalid input, .field.invalid select { border-color: #d64545; }
.field .err { font-size: 12px; color: #d64545; display: none; }
.field.invalid .err { display: block; }
.pay-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-opts label { cursor: pointer; }
.pay-opts input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opts span { display: inline-flex; height: 42px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; transition: all .25s; }
.pay-opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pay-opts input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.summary { position: sticky; top: 96px; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-item img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: radial-gradient(circle at 50% 60%, var(--tint), #f4f3ef 75%); padding: 5px; }
.summary-item b { font-size: 14px; display: block; letter-spacing: -0.01em; line-height: 1.25; }
.summary-item small { color: var(--muted); font-size: 12.5px; }
.summary-item strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-rows { display: grid; gap: 8px; margin: 18px 0; font-size: 14.5px; }
.summary-rows div { display: flex; justify-content: space-between; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-2); }
.summary-total strong { font-size: 28px; letter-spacing: -0.04em; }
.success { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 14px; }
.success-ico { width: 90px; height: 90px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.success-ico svg { width: 40px; height: 40px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: relative; top: 0; order: -1; } .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.about-visual { position: relative; border-radius: var(--r-xl); aspect-ratio: 1 / 1.1; overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #3a2fb8, #0b0a1d 80%); }
.about-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-visual img { position: absolute; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.value .e { font-size: 34px; }
.value h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.03em; }
.value p { margin: 0; color: var(--muted); font-size: 14.5px; }
.big-quote { font-size: clamp(2rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; font-weight: 600; max-width: 18ch; margin: 0 auto; text-align: center; }
.big-quote .serif { color: var(--lime); }
.dist-band { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); background: var(--green-deep); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.dist-band::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(198,243,107,.25), transparent); }
.dist-band .lead { color: rgba(255,255,255,.7); }
.dist-band-actions { display: grid; gap: 10px; position: relative; }
@media (max-width: 900px) { .about-split, .dist-band { grid-template-columns: 1fr; } .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value { min-height: 180px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--surface); border-radius: 24px; transition: transform .4s var(--ease), box-shadow .4s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.contact-card span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal helpers (JS adds animations) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='scale'] { transform: scale(.94); }
.reduced-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Page transition */
.page-curtain { position: fixed; inset: 0; z-index: 200; background: var(--night); pointer-events: none; transform-origin: top; display: grid; place-items: center; }
.page-curtain svg { width: 54px; height: 54px; opacity: .9; }
.js .page-curtain { transform: scaleY(1); }
.page-curtain.out { transform: scaleY(0); transition: transform .9s var(--ease-in-out) .05s; transform-origin: top; }
.page-curtain.in { transform: scaleY(1); transition: transform .55s var(--ease-in-out); transform-origin: bottom; }
.page-curtain.out svg { opacity: 0; transition: opacity .3s; }
html:not(.js) .page-curtain { display: none; }

/* Not found */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.nf .display { font-size: clamp(6rem, 24vw, 18rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Overflow guards ---------- */
.checkout > *, .pdp > *, .contact-grid > *, .about-split > *, .faq-layout > *, .quiz-band > *, .dist-band > *, .form-grid > *, .shop-bar > *, .shop-tools > * { min-width: 0; }
.shop-search { min-width: 0; }
.shop-tools select { max-width: 48%; }
.line-item-top .price, .summary-item strong { white-space: nowrap; }
.line-item-top > div { min-width: 0; }
@media (max-width: 420px) {
  .pdp-trust { gap: 6px; }
  .summary .pdp-trust div { font-size: 11px; padding: 10px 8px; }
}
.modal, .search { transition: visibility 0s linear .6s; }
.modal.is-open, .search.is-open { transition: visibility 0s; }
.search .modal-backdrop { transition: opacity .5s var(--ease); }

/* ---------- Catálogo oficial ---------- */
.nav-official { display: inline-flex !important; align-items: center; gap: 4px; color: var(--green-2); opacity: 1 !important; }
.nav-official svg { width: 14px; height: 14px; }
.site-header[data-theme='dark'] .nav-official { color: var(--lime); }
@media (max-width: 1080px) { .nav-official { display: none !important; } }
.official-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(135deg, #ffffff 0%, #eef6f0 55%, #e3f1e8 100%);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; border: 1px solid var(--line);
}
.official-band > * { min-width: 0; }
.official-imgs { position: relative; height: 340px; }
.official-imgs img { position: absolute; width: 38%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0,0,0,.18)); animation: float 7s var(--ease-in-out) infinite alternate; }
.official-imgs img:nth-child(1) { left: 0; top: 30%; width: 46%; z-index: 3; animation-delay: -1s; }
.official-imgs img:nth-child(2) { left: 30%; top: 0; z-index: 1; animation-delay: -3s; }
.official-imgs img:nth-child(3) { right: 4%; top: 6%; width: 28%; z-index: 2; animation-delay: -2s; }
.official-imgs img:nth-child(4) { right: 0; bottom: 0; width: 34%; z-index: 4; animation-delay: -4s; }
.official-imgs img:nth-child(5) { left: 40%; bottom: 0; width: 26%; z-index: 5; animation-delay: -5s; }
@media (max-width: 860px) { .official-band { grid-template-columns: 1fr; border-radius: 30px; } .official-imgs { height: 240px; } }
.official-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.perk { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.perk strong { font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -0.05em; line-height: 1; font-weight: 700; color: var(--green-2); flex: none; }
.perk span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.perk span b { color: var(--ink); }
.perk-max { background: var(--ink); border-color: var(--ink); }
.perk-max strong { color: var(--lime); }
.perk-max span { color: rgba(255,255,255,.7); }
.perk-max span b { color: #fff; }
@media (max-width: 520px) { .official-perks { grid-template-columns: 1fr; } }

/* ---------- Logotipo Nesgana Saludable ---------- */
.logo-word { white-space: nowrap; font-weight: 700; letter-spacing: -0.035em; }
.logo-word i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.1em; color: var(--green-2); }
.site-header[data-theme='dark'] .logo-word i, .site-footer .logo-word i, .menu-open .logo-word i { color: var(--lime); }
@media (max-width: 380px) { .logo { font-size: 17px; gap: 8px; } .logo svg { width: 26px; height: 26px; } }
