/* ===================================================================
   Reusalia — landing (rediseño "estilo zeus" + tema claro/oscuro)
   Estática · sin build · mobile-first · AA en ambos temas
   =================================================================== */

/* ---------- Tema CLARO (por defecto) ---------- */
:root {
  --bg: #FBFCFA;
  --bg-soft: #F1F5EF;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #16241B;
  --text-muted: #54655A;
  --primary: #1F7A4D;
  --primary-700: #155C39;
  --on-primary: #FBFCFA;
  --accent: #84C318;
  --accent-ink: #5E8F10;
  --accent-text: #4A7A0C;        /* lima oscurecida, AA como texto sobre claro */
  --success: #2E9E5B;
  --border: #DCE5DA;
  --shadow: 0 18px 44px rgba(22, 36, 27, 0.10);
  --shadow-sm: 0 1px 2px rgba(22, 36, 27, 0.06);
  --glow: rgba(132, 195, 24, 0.30);
  --glow-2: rgba(31, 122, 77, 0.16);
  --particle: rgba(31, 122, 77, 0.55);
  --hero-grid: rgba(31, 122, 77, 0.05);
  --nav-bg: rgba(251, 252, 250, 0.82);
  --band-a: #1F7A4D;
  --band-b: #155C39;

  --font-head: "Albert Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --maxw-narrow: 760px;
  --pad-x: 24px;
  --section-y: 104px;
  --r-btn: 10px;
  --r-card: 18px;
  --r-pill: 999px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Tema OSCURO (premium verde) ---------- */
[data-theme="dark"] {
  --bg: #0B130E;
  --bg-soft: #101D15;
  --surface: #12211896;
  --surface-2: #15271B;
  --text: #ECF4ED;
  --text-muted: #A6BCAC;
  --primary: #38B873;            /* verde más brillante para fondo oscuro */
  --primary-700: #2A9C5F;
  --on-primary: #06160D;
  --accent: #9BE220;
  --accent-ink: #9BE220;
  --accent-text: #A9E84A;        /* lima clara, AA sobre oscuro */
  --success: #4FC07E;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --glow: rgba(155, 226, 32, 0.30);
  --glow-2: rgba(56, 184, 115, 0.22);
  --particle: rgba(155, 226, 32, 0.6);
  --hero-grid: rgba(255, 255, 255, 0.04);
  --nav-bg: rgba(11, 19, 14, 0.78);
}

/* ---------- 3 paletas de color (mismo diseño, distinto color) ---------- */
[data-palette="teal"] {
  --primary: #0F6E62; --primary-700: #0B524A; --accent: #22D3C0; --accent-text: #0C6157;
  --glow: rgba(34,211,192,0.26); --glow-2: rgba(15,110,98,0.16); --particle: rgba(15,110,98,0.55);
  --hero-grid: rgba(15,110,98,0.05); --band-a: #0C5E54; --band-b: #08443D;
}
[data-theme="dark"][data-palette="teal"] {
  --primary: #2DD4BF; --primary-700: #14B8A6; --accent: #5EEAD4; --accent-text: #5EEAD4;
  --glow: rgba(45,212,191,0.30); --glow-2: rgba(20,184,166,0.22); --particle: rgba(45,212,191,0.6);
}
[data-palette="tierra"] {
  --primary: #8A5320; --primary-700: #6B3F17; --accent: #E0A12B; --accent-text: #8A5320;
  --glow: rgba(224,161,43,0.26); --glow-2: rgba(138,83,32,0.16); --particle: rgba(138,83,32,0.55);
  --hero-grid: rgba(138,83,32,0.05); --band-a: #7A4720; --band-b: #52300F;
}
[data-theme="dark"][data-palette="tierra"] {
  --primary: #D98A3D; --primary-700: #BE7430; --accent: #F0BC5A; --accent-text: #F0BC5A;
  --glow: rgba(224,161,43,0.30); --glow-2: rgba(190,116,48,0.22); --particle: rgba(224,161,43,0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
img, svg, canvas { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.display { font-family: var(--font-head); font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 600; }

/* ---------- A11y ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 600; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }
:where(a, button, summary, input, textarea, [tabindex]):focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.impact :where(a, button, [tabindex]):focus-visible,
.finalcta :where(a, button, [tabindex]):focus-visible { outline-color: #fff; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); }
.section__sub { margin-top: 14px; font-size: 1.125rem; color: var(--text-muted); }
.section__head--center .section__sub { margin-inline: auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
[data-theme="dark"] .eyebrow { color: var(--accent-text); }
.eyebrow--onaccent { color: var(--accent) !important; }

.text-accent { color: var(--accent-text); }
.hl { color: var(--accent); }

/* ---------- Iconos ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Botones ---------- */
.btn { --bg-c: var(--primary); --fg-c: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1; padding: 13px 22px; border-radius: var(--r-btn); border: 1.5px solid transparent; background: var(--bg-c); color: var(--fg-c); white-space: nowrap; transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 6px 22px var(--glow-2); }
.btn--primary:hover { --bg-c: var(--primary-700); box-shadow: 0 10px 30px var(--glow-2); }
.btn--ghost { --bg-c: transparent; --fg-c: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); --fg-c: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
/* Verde oscuro fijo (no depende del tema) para legibilidad sobre blanco en claro y oscuro */
.btn--invert { --bg-c: #fff; --fg-c: #155C39; box-shadow: var(--shadow); }
.btn--invert:hover { --bg-c: #f1f7f1; }
.btn--whatsapp { --bg-c: #157A41; --fg-c: #fff; box-shadow: 0 6px 22px rgba(21,122,65,0.3); }
.btn--whatsapp:hover { --bg-c: #126534; }
.btn--lg { padding: 15px 28px; font-size: 1.0625rem; }
.btn--xl { padding: 18px 34px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn .icon--sm { transition: transform 0.2s var(--ease); }
.btn:hover .icon--sm { transform: translateX(3px); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); position: relative; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: transparent; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav.is-scrolled { background: var(--nav-bg); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav__links { display: none; gap: 28px; margin-inline: auto; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--text); padding: 6px 2px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }

/* Selector de paleta */
.pal { display: inline-flex; gap: 6px; align-items: center; }
.pal__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; transition: transform 0.15s var(--ease); }
.pal__dot:hover { transform: scale(1.12); }
.pal__dot[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); }

/* toggle de tema */
[data-theme="light"] .icon--moon, [data-theme="dark"] .icon--sun { display: none; }
.icon-btn .icon { width: 20px; height: 20px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 10, 0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; animation: fade-in 0.2s var(--ease) forwards; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--bg); padding: 18px var(--pad-x) 28px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transform: translateX(100%); animation: slide-in 0.26s var(--ease) forwards; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__panel > a:not(.btn) { padding: 14px 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; border-bottom: 1px solid var(--border); color: var(--text); }
.drawer__panel .btn { margin-top: 18px; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes slide-in { to { transform: translateX(0); } }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 92px; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 80% 0%, var(--glow), transparent 70%),
  radial-gradient(50% 50% at 0% 10%, var(--glow-2), transparent 70%);
  background-image: radial-gradient(60% 50% at 80% 0%, var(--glow), transparent 70%), radial-gradient(50% 50% at 0% 10%, var(--glow-2), transparent 70%), linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero__text { max-width: 660px; }

/* Móvil 3D que da vueltas */
.hero__device { display: flex; justify-content: center; perspective: 1300px; }
.phone { position: relative; width: clamp(190px, 56vw, 240px); aspect-ratio: 1 / 2; transform-style: preserve-3d; animation: phone-spin 12s linear infinite; will-change: transform; }
.phone__face { position: absolute; inset: 0; border-radius: 34px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border: 7px solid #0c1a11; box-shadow: 0 40px 70px rgba(0,0,0,0.32); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; }
.phone__front { background: radial-gradient(120% 90% at 50% 0%, var(--bg-soft), #fff 72%); }
.phone__back { background: linear-gradient(160deg, #1F7A4D, #123f28); transform: rotateY(180deg); }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 20px; background: #0c1a11; border-radius: 0 0 14px 14px; }
.phone__pkg { width: 84px; height: 84px; color: var(--primary); stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.phone__badge { position: absolute; top: 30px; left: 22px; background: #fff; color: var(--primary-700); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-family: var(--font-head); font-weight: 700; font-size: 12px; box-shadow: var(--shadow-sm); }
.phone__chip { background: var(--primary); color: #fff; border-radius: 999px; padding: 5px 13px; font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.phone__line { display: block; border-radius: 999px; background: var(--bg-soft); }
.phone__line--lg { width: 72%; height: 12px; }
.phone__line--sm { width: 46%; height: 10px; }
.phone__logo { width: 70px; height: 70px; }
.phone__brand { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.5rem; }
@keyframes phone-spin { to { transform: rotateY(360deg); } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 7px 15px; border-radius: var(--r-pill); margin: 0 0 24px; }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hero__title { font-size: clamp(2.6rem, 1.1rem + 6.2vw, 5rem); font-weight: 900; }
.hero__sub { margin: 26px 0 0; font-size: 1.1875rem; color: var(--text-muted); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.statstrip { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin: 46px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.statstrip__item { display: flex; flex-direction: column; gap: 2px; }
.statstrip__item dd { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.statstrip__num { font-family: var(--font-head); font-weight: 800; font-size: 1.875rem; color: var(--text); line-height: 1.05; font-variant-numeric: tabular-nums; }
.statstrip__star { color: var(--accent-text); }
.statstrip__sep { width: 1px; height: 38px; background: var(--border); }

/* Titular cinético (palabra a palabra) — animación CSS que se auto-reproduce */
[data-kinetic] .word { display: inline-block; animation: wordIn 0.55s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em); } }

/* ===================================================================
   TIRA DE CONFIANZA
   =================================================================== */
.trust { background: var(--surface-2); border-block: 1px solid var(--border); padding-block: 22px; }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.trust__badges { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.trust__badges li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.trust__badges .icon { width: 22px; height: 22px; color: var(--primary); }
.trust__channels { display: flex; gap: 10px; }

/* ===================================================================
   ANTES vs AHORA
   =================================================================== */
.versus { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.versus__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.versus__card--new { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: 0 14px 40px var(--glow-2); position: relative; }
.versus__title { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 18px; }
.versus__card--new .versus__title { color: var(--primary); }
.versus__list li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; color: var(--text); border-top: 1px solid var(--border); }
.versus__list li:first-child { border-top: 0; }
.versus__card--old { color: var(--text-muted); }
.versus__x { color: #C2553F; font-weight: 700; flex: none; width: 18px; text-align: center; }
[data-theme="dark"] .versus__x { color: #E8836C; }
.versus__list .icon { color: var(--success); margin-top: 3px; }
.versus__arrow { display: flex; justify-content: center; color: var(--text-muted); transform: rotate(90deg); }
.versus__arrow .icon { width: 30px; height: 30px; }

/* ===================================================================
   QUÉ HACEMOS (flow)
   =================================================================== */
.flow { display: grid; grid-template-columns: 1fr; gap: 18px; }
.flow__step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.flow__step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.flow__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: 16px; }
.flow__step h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.375rem; margin-bottom: 8px; }
.flow__step p { color: var(--text-muted); }

/* ===================================================================
   IMPACTO (banda de marca, siempre verde)
   =================================================================== */
.impact { position: relative; overflow: hidden; padding-block: var(--section-y); background: linear-gradient(135deg, #0A2317 0%, #123E27 55%, #0C2E1C 100%); color: #EAF3EC; }
.impact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 55% at 88% -5%, rgba(155,226,32,0.18), transparent 62%), radial-gradient(45% 50% at 5% 105%, rgba(56,184,115,0.22), transparent 60%); pointer-events: none; }
.impact__inner { position: relative; }
.impact__title { color: #fff; }
.counters { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 48px 0 0; text-align: center; }
.counter { padding: 26px 18px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-card); background: rgba(255,255,255,0.04); }
.counter__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.5rem, 1.5rem + 4vw, 3.5rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.counter__since { font-size: 0.5em; color: #D6E5D8; font-weight: 700; }
.counter dd { margin: 10px 0 0; color: #D6E5D8; font-size: 1.0625rem; }
.impact__close { margin: 44px auto 0; max-width: 26ch; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.375rem, 1rem + 1.6vw, 1.875rem); line-height: 1.25; color: #EAF3EC; }
.impact__close .hl { color: var(--accent); }
.counters--eco { margin-top: 26px; }
.counters--eco .counter { padding: 22px 16px; }
.counters--eco .counter__num { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.375rem); color: #D6E5D8; }
.counters--eco .counter dd { font-size: 0.9rem; }
.impact__note { margin: 18px auto 0; max-width: 62ch; text-align: center; font-size: 0.8rem; color: #9FBBA6; line-height: 1.5; }

/* ===================================================================
   HISTORIA
   =================================================================== */
.story { font-size: 1.1875rem; color: var(--text); }
.story p { margin-bottom: 18px; }
.story__quote { margin: 30px 0 0; padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--r-card) var(--r-card) 0; font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1.3; color: var(--text); }
.timeline { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
.timeline li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.timeline__year { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.0625rem; }
.timeline__txt { color: var(--text-muted); font-size: 0.95rem; }
.timeline__dana { border-color: color-mix(in srgb, #C2553F 45%, var(--border)); }
.timeline__dana .timeline__year { color: #C2553F; }
[data-theme="dark"] .timeline__dana .timeline__year { color: #E8836C; }

/* ===================================================================
   COMPROMISO
   =================================================================== */
.commit { display: grid; grid-template-columns: 1fr; gap: 18px; }
.commit__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.section--soft .commit__card, .section--soft .flow__step { background: var(--surface-2); }
.commit__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: 16px; }
.commit__card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; margin-bottom: 8px; }
.commit__card p { color: var(--text-muted); }

/* ===================================================================
   MARCAS (marquee)
   =================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__item { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); color: var(--text); opacity: 0.85; }
.marquee__dot { color: var(--accent); font-size: 1.5rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__note { margin-top: 22px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ===================================================================
   VALORACIONES
   =================================================================== */
.reviews { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 760px; margin-inline: auto; }
.review-card { display: grid; grid-template-columns: 1fr; align-items: start; gap: 4px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.section--soft .review-card { background: var(--surface-2); }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.review-card__stars { color: var(--accent-text); font-size: 1.125rem; letter-spacing: 2px; }
.review-card__score { font-family: var(--font-head); font-weight: 900; font-size: 2.25rem; color: var(--text); line-height: 1; }
.review-card__score span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.review-card__src { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--text); }
.review-card__src .icon { color: var(--primary); }
.review-card__cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.review-card:hover .review-card__cta .icon { transform: translateX(3px); }
.review-card__cta .icon { transition: transform 0.2s var(--ease); }
@media (min-width: 480px) {
  .review-card { grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 18px; }
  .review-card__stars { grid-row: 1; }
  .review-card__score { grid-column: 1; grid-row: 2; }
  .review-card__src { grid-column: 2; grid-row: 1 / span 2; }
  .review-card__cta { grid-column: 3; grid-row: 1 / span 2; }
}
.reviews__note { margin-top: 22px; text-align: center; color: var(--text-muted); font-size: 0.95rem; }

/* ===================================================================
   DÓNDE COMPRAR
   =================================================================== */
.channels { display: grid; grid-template-columns: 1fr; gap: 18px; }
.channel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.channel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.channel__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.channel h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.channel p { color: var(--text-muted); margin-bottom: 12px; }
.channel__handle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 22px !important; }
.channel__handle strong { color: var(--primary); font-family: var(--font-head); }
.channel__handle a { color: var(--primary); font-weight: 600; }
.channel .btn { margin-top: auto; }

/* ===================================================================
   MAYORISTAS
   =================================================================== */
.wholesale { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.wholesale__text { color: var(--text-muted); font-size: 1.0625rem; margin: 14px 0 20px; max-width: 50ch; }
.wholesale__points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.wholesale__points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.wholesale__points .icon { color: var(--success); }
.wholesale__contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.wform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.wform__title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; }
.wform__row { margin-bottom: 12px; }
.wform__input { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border-radius: var(--r-btn); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); resize: vertical; }
.wform__input::placeholder { color: var(--text-muted); }
.wform__input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.wform__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 6px 0 16px; }
.wform__consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.wform__consent a { color: var(--primary); text-decoration: underline; }

/* ===================================================================
   CTA FINAL
   =================================================================== */
/* Verdes oscuros fijos (no heredan tokens de tema) para que el blanco cumpla AA en claro y oscuro */
.finalcta { background: radial-gradient(70% 120% at 80% 0%, rgba(255,255,255,0.16), transparent 60%), linear-gradient(135deg, var(--band-a) 0%, var(--band-b) 100%); color: #fff; padding-block: var(--section-y); }
.finalcta__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.finalcta__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem); margin-bottom: 14px; }
.finalcta__body { color: rgba(255,255,255,0.92); font-size: 1.1875rem; margin-bottom: 30px; }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }
.cta-note .icon { width: 16px; height: 16px; color: var(--success); flex: none; }
.cta-note--on-color { margin-top: 18px; color: rgba(255,255,255,0.92); }
.cta-note--on-color .icon { color: inherit; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: #0A130D; color: #C4D2C5; padding-block: 64px 28px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__mark { filter: none; }
.footer__tagline { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.0625rem; margin-bottom: 8px; }
.footer__since { font-size: 0.875rem; color: #93A896; max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #93A896; margin-bottom: 2px; }
.footer__col a { color: #DCE7DD; font-size: 0.95rem; width: fit-content; min-height: 40px; display: inline-flex; align-items: center; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.8125rem; color: #93A896; }

/* ===================================================================
   STICKY CTA móvil
   =================================================================== */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--nav-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,0.1); transform: translateY(120%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s linear 0.3s; }
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }

/* ===================================================================
   Reveal on scroll
   =================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Reveals direccionales */
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.is-visible, .reveal--right.is-visible, .reveal--scale.is-visible { transform: none; }

/* ===================================================================
   Animaciones "guay" (estilo zeus) — todas vanilla/CSS
   =================================================================== */

/* Barra de progreso de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 200; pointer-events: none; box-shadow: 0 0 12px var(--glow); }

/* Foco que sigue al ratón en el hero (spotlight) */
.hero__spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); background: radial-gradient(280px 280px at var(--mx, 50%) var(--my, 30%), var(--glow), transparent 70%); }
.hero:hover .hero__spot { opacity: 1; }

/* Brillo animado del acento (kicker dot + texto) */
.kicker__dot { animation: pulse-dot 2.6s var(--ease) infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px var(--glow); } 50% { box-shadow: 0 0 0 8px transparent; } }

/* Glow al pasar por botones primarios y tarjetas */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at var(--bx, 50%) 50%, rgba(255,255,255,0.25), transparent 70%); opacity: 0; transition: opacity 0.3s var(--ease); }
.btn--primary:hover::after { opacity: 1; }
.flow__step, .commit__card, .channel, .versus__card, .review-card { position: relative; }
.flow__step::before, .commit__card::before, .channel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.flow__step:hover::before, .commit__card:hover::before, .channel:hover::before { opacity: 0.7; }

/* Marquesina de marcas: brillo al acercarse */
.marquee__item { transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
.marquee__item:hover { color: var(--accent-text); opacity: 1; }
.flow .reveal:nth-child(2), .commit .reveal:nth-child(2), .channels .reveal:nth-child(2) { transition-delay: 0.08s; }
.flow .reveal:nth-child(3), .commit .reveal:nth-child(3), .channels .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ===================================================================
   Breakpoints
   =================================================================== */
@media (min-width: 640px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .commit { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .versus { grid-template-columns: 1fr auto 1fr; }
  .versus__arrow { transform: none; }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .sticky-cta { display: none; }
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .wholesale { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .nav__links a.is-active { color: var(--primary); }
  [data-theme="dark"] .nav__links a.is-active { color: var(--accent-text); }
}
@media (max-width: 1023px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ===================================================================
   prefers-reduced-motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, [data-kinetic] .word { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .btn:hover, .channel:hover, .flow__step:hover, .review-card:hover { transform: none; }
}
