/* FARVEN — landing. Tokens y reglas según DESIGN.md (raíz del repo). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("assets/fonts/pjs-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("assets/fonts/pjs-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --background: #FAFCFA;
  --foreground: #0E1B14;
  --card: #FFFFFF;
  --muted: #EEF4F0;
  --muted-foreground: #4A5D53;
  --primary: #15803D;
  --primary-strong: #14532D;
  --primary-soft: #E7F7EC;
  --accent: #F59E0B;
  --accent-foreground: #3A2400;
  --accent-text: #B45309;
  --accent-soft: #FEF3C7;
  --info: #2563EB;
  --info-soft: #E9F0FF;
  --border: #DCE5DF;
  --ring: #0B6B33;
  --ring-dark: #FCD34D;
  --on-dark: #F2FBF5;
  --on-dark-muted: #CFE6D8;

  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 28px; --radius-full: 999px;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  --shadow-1: 0 1px 2px rgba(14,27,20,.06), 0 8px 24px -14px rgba(14,27,20,.22);
  --shadow-2: 0 18px 44px -22px rgba(14,27,20,.30);
  --shadow-3: 0 40px 80px -36px rgba(14,27,20,.55);

  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-h2: clamp(1.9rem, 3.4vw, 2.85rem);
  --text-h1: clamp(2.4rem, 4.8vw, 4rem);

  --dur-instant: 100ms; --dur-fast: 160ms; --dur-base: 240ms; --dur-slow: 400ms; --dur-page: 640ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-weight: 500; font-size: var(--text-base); line-height: 1.6; color: var(--foreground);
  background: var(--background); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--ring-dark); }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--foreground); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); }
.skip:focus { top: var(--s-3); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; overflow-x: clip; }
.section-head { max-width: 40rem; margin: 0 auto var(--s-12); text-align: center; }
.section-head h2 { font-size: var(--text-h2); margin-bottom: var(--s-4); }
.section-head p { font-size: 1.125rem; color: var(--muted-foreground); }
.kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); font-weight: 700; color: var(--primary); margin-bottom: var(--s-3); }

/* ---------- Botones ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.6rem; border-radius: var(--radius-full); font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-instant) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep, var(--primary-strong)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: scale(.97); }
.btn .i { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .i-go, .btn:focus-visible .i-go { transform: translateX(5px); }
.btn:hover .i-drop { transform: translateY(2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 28px -12px rgba(21,128,61,.6); }
.btn-primary:hover { color: #fff; }
.btn-light { background: var(--card); color: var(--primary-strong); border-color: var(--border); box-shadow: var(--shadow-1); --sweep: var(--primary-soft); }
.btn-light:hover { color: var(--primary-strong); border-color: #BBD7C4; }
.btn-amber { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 14px 28px -12px rgba(245,158,11,.6); --sweep: #FBBF24; }
.btn-amber:hover { color: var(--accent-foreground); }
.btn-ghost-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); --sweep: rgba(255,255,255,.2); }
.btn-ghost-dark:hover { color: #fff; }
.btn-white { background: #fff; color: var(--primary-strong); --sweep: var(--primary-soft); }
.btn-white:hover { color: var(--primary-strong); }
.btn-wa { background: #0F7A40; color: #fff; --sweep: #0B5E31; box-shadow: 0 12px 22px -12px rgba(15,122,64,.7); }
.btn-wa:hover { color: #fff; }

/* ---------- Encabezado ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.header { position: sticky; top: 0; z-index: 60; background: var(--card); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.logo img { height: 31px; width: auto; }
.nav { display: none; align-items: center; gap: 1.4rem; }
.nav a { font-weight: 600; font-size: .94rem; color: var(--muted-foreground); padding: .5rem .1rem; transition: color var(--dur-fast) var(--ease-out); }
.nav a:hover { color: var(--foreground); }
.header-cta { display: none; align-items: center; gap: var(--s-3); }
.header-cta .btn { min-height: 44px; padding: .6rem 1.3rem; font-size: .95rem; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; color: var(--foreground); }
.menu-btn:active { transform: scale(.94); }
.mobile-menu { display: none; flex-direction: column; gap: var(--s-1); padding: var(--s-4) 16px var(--s-6); background: var(--card); border-bottom: 1px solid var(--border); }
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { padding: .8rem .5rem; font-weight: 700; color: var(--foreground); border-radius: var(--radius-sm); }
.mobile-menu a:not(.btn):hover { background: var(--muted); }
.mobile-menu .btn { margin-top: var(--s-2); }
@media (min-width: 1000px) { .nav, .header-cta { display: flex; } .menu-btn, .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero-grid { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: .92fr 1.08fr; gap: var(--s-8); } }
.hero h1 { font-size: var(--text-h1); letter-spacing: -.03em; margin-bottom: var(--s-6); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted-foreground); max-width: 34ch; margin-bottom: var(--s-8); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.trust li { display: flex; align-items: center; gap: var(--s-2); font-size: .95rem; font-weight: 600; color: var(--muted-foreground); }
.trust .i { color: var(--primary); }

.hero-stage { position: relative; display: grid; justify-items: center; align-items: end; min-height: 560px; }
.hero-stage::before { /* anillos concéntricos: la brújula de Ben */
  content: ""; position: absolute; z-index: -1; inset: -6% 0 -8% 0;
  background: repeating-radial-gradient(circle at 36% 58%, transparent 0 52px, rgba(21,128,61,.14) 52px 53px);
  -webkit-mask-image: radial-gradient(closest-side at 36% 58%, #000 30%, transparent 96%); mask-image: radial-gradient(closest-side at 36% 58%, #000 30%, transparent 96%); }
.hero-stage::after { content: ""; position: absolute; z-index: -1; inset: 8% 0 0 8%; background: radial-gradient(60% 60% at 60% 50%, rgba(21,128,61,.14), transparent 70%); }
.hero-phone-wrap { position: relative; justify-self: end; margin-right: 2%; }
.hero-stage .hero-ben { position: absolute; left: -2%; bottom: -4%; --ben-size: min(400px, 62vw); }
@media (max-width: 959px) {
  .hero-stage { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-stage .hero-ben { position: relative; left: auto; bottom: auto; justify-self: center; --ben-size: min(300px, 78vw); margin-bottom: -40px; order: -1; }
  .hero-phone-wrap { justify-self: center; margin-right: 0; }
}
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--s-3); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: .65rem .9rem; box-shadow: var(--shadow-2); }
.float-chip b { display: block; font-size: .95rem; line-height: 1.2; white-space: nowrap; }
.float-chip small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted-foreground); line-height: 1; margin-bottom: 3px; }
.float-chip .tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.chip-a { top: -2%; right: -5%; }
.chip-b { bottom: 7%; right: -7%; }
@media (max-width: 959px) { .chip-a { right: 2%; top: 12%; } .chip-b { left: 2%; bottom: 14%; } }

/* ---------- Teléfono (maqueta, escala con cqw) ---------- */
.phone { container-type: inline-size; width: min(300px, 78vw); background: #0C1411; border-radius: 15% / 7.3%; box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,.05) inset; }
.phone-screen { margin: 3.4cqw; font-size: 4.2cqw; aspect-ratio: 300 / 610; background: #fff; border-radius: 12cqw; overflow: hidden; display: flex; flex-direction: column; color: var(--foreground); line-height: 1.3; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: .9em 1.7em .4em; font-size: .86em; font-weight: 700; }
.ph-status span:last-child { display: flex; gap: .45em; align-items: center; }
.ph-status .i { width: 1.1em; height: 1.1em; }
.ph-head { background: linear-gradient(155deg, #15803D 8%, #14532D); padding: .9em 1.1em 1.2em; color: #fff; border-radius: 0 0 1.9em 1.9em; }
.ph-title { display: flex; align-items: center; gap: .8em; }
.ph-back { width: 2.3em; height: 2.3em; border-radius: .7em; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.ph-back .i { width: 1.3em; height: 1.3em; }
.ph-title b { display: block; font-size: 1.25em; font-weight: 800; line-height: 1.1; }
.ph-title small { display: flex; align-items: center; gap: .35em; font-size: .78em; opacity: .92; margin-top: .15em; }
.ph-title small .i { width: 1em; height: 1em; }
.ph-search { display: flex; align-items: center; gap: .6em; background: #fff; color: var(--foreground); border-radius: 1em; padding: .85em 1em; margin-top: 1.1em; box-shadow: 0 10px 22px -10px rgba(0,0,0,.4); font-weight: 700; font-size: 1em; }
.ph-search .i { width: 1.2em; height: 1.2em; color: var(--primary); }
.ph-body { flex: 1; padding: 1.1em 1.1em 0; overflow: hidden; }
.ph-chips { display: flex; gap: .55em; margin-bottom: 1.1em; overflow: hidden; }
.ph-chips span { flex: none; font-size: .78em; font-weight: 700; padding: .6em .9em; border-radius: var(--radius-full); border: 1px solid var(--border); color: #3E5148; white-space: nowrap; }
.ph-chips span:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }
.ph-card { text-align: center; background: linear-gradient(180deg, #E7F7EC, #fff); border: 1px solid #D6EBDD; border-radius: 1.5em; padding: 1.4em 1.1em 1.2em; box-shadow: 0 14px 30px -20px rgba(14,27,20,.3); }
.ph-card img { width: 7.6em; height: 7.6em; border-radius: 1em; object-fit: cover; margin: 0 auto 1em; background: #fff; box-shadow: 0 8px 18px -12px rgba(14,27,20,.35); }
.ph-card h3 { font-size: 1.12em; letter-spacing: -.01em; margin-bottom: .3em; }
.ph-price { display: flex; justify-content: center; align-items: baseline; gap: .5em; margin-bottom: .75em; }
.ph-price b { font-size: 1.5em; font-weight: 800; color: var(--primary-strong); letter-spacing: -.02em; }
.ph-price span { font-size: .8em; color: #3E5148; font-weight: 600; }
.ph-avail { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; font-weight: 700; color: var(--primary-strong); background: #fff; border: 1px solid #D6EBDD; padding: .45em .85em; border-radius: var(--radius-full); margin-bottom: 1.1em; }
.ph-avail i { width: .6em; height: .6em; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 .25em rgba(21,128,61,.18); }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: .6em; width: 100%; background: linear-gradient(150deg, #15803D, #14532D); color: #fff; border-radius: 1.1em; padding: 1em; font-weight: 800; font-size: .95em; box-shadow: 0 12px 22px -10px rgba(21,128,61,.7); }
.ph-btn .i { width: 1.2em; height: 1.2em; }
.ph-nav { display: flex; justify-content: space-around; padding: .8em .5em 1.2em; border-top: 1px solid var(--border); background: #fff; }
.ph-nav div { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: .7em; font-weight: 700; color: #5B6E64; }
.ph-nav div.on { color: var(--primary); }
.ph-nav .i { width: 1.9em; height: 1.9em; }
.phone-note { text-align: center; font-size: var(--text-xs); color: var(--muted-foreground); margin-top: var(--s-3); }
.on-dark .phone-note { color: var(--on-dark-muted); }

/* ---------- Franja de cifras ---------- */
.stats { background: var(--muted); border-block: 1px solid var(--border); padding-block: var(--s-8); }
.stats-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; text-align: center; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } .stats-grid > div + div { border-left: 1px solid var(--border); } }
.stats b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--primary-strong); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: var(--s-2); font-weight: 600; color: var(--muted-foreground); }

/* ---------- Ben: ranuras y burbujas ---------- */
.ben-slot { position: relative; width: var(--ben-size, 320px); max-width: 100%; aspect-ratio: 1; touch-action: pan-y; cursor: grab; border-radius: var(--radius-lg); -webkit-tap-highlight-color: transparent; }
.ben-slot:active { cursor: grabbing; }
.ben-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity var(--dur-slow) var(--ease-out); }
.ben-ready .ben-poster { opacity: 0; }
.no-ben .ben-slot { background: url("assets/ben/ben-feliz.webp") center / contain no-repeat; }
.ben-say { position: absolute; z-index: 35; width: max-content; max-width: 14rem; padding: .7rem 1rem; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-2); font-size: .95rem; font-weight: 700; line-height: 1.35; pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.94); transform-origin: 0 100%;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.ben-slot.is-active .ben-say { opacity: 1; transform: none; transition-delay: .35s; }
.ben-hero .ben-say { top: -14%; left: 4%; }
@media (max-width: 959px) { .ben-hero .ben-say { top: 2%; left: 58%; max-width: 11.5rem; } }
.ben-canvas { position: fixed; left: 0; top: 0; z-index: 30; width: 520px; height: 520px; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); will-change: transform; perspective: 1400px; }
.ben-card { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ben-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-select: none; user-select: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 14px 18px rgba(14,27,20,.18)); }
.ben-front { transform: translateZ(17px); }
.ben-back { transform: translateZ(-17px) rotateY(180deg); }
.ben-slice { position: absolute; inset: 0; pointer-events: none; background: #1f4f2d; -webkit-mask: var(--ben-mask) center / contain no-repeat; mask: var(--ben-mask) center / contain no-repeat; }
.ben-ready .ben-canvas { opacity: 1; }
.ben-canvas.is-dock { pointer-events: auto; cursor: pointer; }
.ben-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.ben-tool { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted-foreground);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-instant); }
.ben-tool:hover { border-color: #A9C9B3; color: var(--foreground); }
.ben-tool:active { transform: scale(.97); }
.ben-tool .i { width: 16px; height: 16px; }
.on-dark .ben-tool { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: var(--on-dark); }

/* ---------- Cómo funciona ---------- */
.how-grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .how-grid { grid-template-columns: minmax(280px, 400px) 1fr; gap: var(--s-16); } .how-ben { position: sticky; top: calc(var(--header-h) + 36px); } }
.how-ben { justify-self: center; display: grid; justify-items: center; }
.how-ben .ben-slot { --ben-size: min(360px, 80vw); }
.how-ben .ben-say { top: -14%; left: 6%; }
.steps { display: grid; gap: var(--s-6); counter-reset: paso; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s-4) var(--s-6); padding: var(--s-8); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step .tile { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-strong); display: grid; place-items: center; }
.step small { display: block; font-size: var(--text-sm); font-weight: 800; color: var(--primary); letter-spacing: .02em; margin-bottom: var(--s-1); }
.step h3 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.step p { color: var(--muted-foreground); }
@media (max-width: 520px) { .step { grid-template-columns: 1fr; padding: var(--s-6); } }

/* ---------- Beneficios ---------- */
.band { background: var(--muted); border-block: 1px solid var(--border); }
.features { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--s-8); box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature .tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s-4); transition: transform var(--dur-slow) var(--ease-out); }
.feature:hover .tile { transform: rotate(-6deg) scale(1.06); }
.feature h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.feature p { color: var(--muted-foreground); font-size: 1rem; }
.t-green { background: var(--primary-soft); color: #0F6A31; }
.t-blue { background: var(--info-soft); color: #1D4ED8; }
.t-teal { background: #E0F4F8; color: #0B7893; }
.t-amber { background: var(--accent-soft); color: var(--accent-text); }
.t-red { background: #FDECEC; color: #B42318; }

/* ---------- Recompensas (oscuro) ---------- */
.on-dark { color: var(--on-dark); }
.rewards-card { position: relative; overflow: clip; border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.5rem); background: linear-gradient(155deg, #15803D 5%, #14532D); isolation: isolate; }
.rewards-card::before { content: ""; position: absolute; z-index: -1; top: -120px; right: -80px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,158,11,.26), transparent); }
.rewards-grid { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 900px) { .rewards-grid { grid-template-columns: 1.05fr .95fr; } }
.rewards-card h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: var(--s-4); color: #fff; }
.rewards-card h2 em { font-style: normal; color: var(--ring-dark); }
.rewards-card .lead { font-size: 1.125rem; color: var(--on-dark); max-width: 44ch; margin-bottom: var(--s-6); }
.bullets { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.bullets li { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 600; font-size: 1.05rem; }
.bullets .tile { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.14); color: var(--ring-dark); display: grid; place-items: center; flex: none; }
.rewards-visual { position: relative; display: grid; justify-items: end; padding-bottom: var(--s-4); }
.rewards-visual .phone-note { justify-self: end; width: min(300px, 78vw); }
.rewards-visual .ben-slot { --ben-size: min(240px, 60vw); position: absolute; left: -9%; bottom: -4%; }
@media (max-width: 899px) { .rewards-visual { justify-items: center; padding-bottom: 170px; } .rewards-visual .phone-note { justify-self: center; } .rewards-visual .ben-slot { left: 50%; transform: translateX(-50%); bottom: -20px; } }
.ben-rw .ben-say { top: -4%; left: -4%; }
.ph-balance { margin-top: 1em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); border-radius: 1.3em; padding: 1em; }
.ph-balance small { font-size: .7em; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.9); }
.ph-balance b { display: block; font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .1em 0; font-variant-numeric: tabular-nums; }
.ph-balance span { font-size: .78em; color: rgba(255,255,255,.92); font-weight: 600; }
.ph-redeem { margin-top: .85em; width: 100%; display: flex; align-items: center; justify-content: center; gap: .5em; background: #fff; color: var(--primary-strong); border-radius: .9em; padding: .75em; font-weight: 800; font-size: .92em; }
.ph-redeem .i { width: 1.2em; height: 1.2em; color: var(--primary); }
.ph-sub { font-size: .85em; font-weight: 800; margin-bottom: .8em; }
.ph-promo { display: flex; align-items: center; gap: .8em; border: 1px solid var(--border); border-radius: 1.1em; padding: .75em .85em; margin-bottom: .65em; box-shadow: var(--shadow-1); }
.ph-promo .tile { width: 3em; height: 3em; border-radius: .9em; background: linear-gradient(150deg, #F59E0B, #B45309); color: #fff; display: grid; place-items: center; flex: none; }
.ph-promo .tile .i { width: 1.5em; height: 1.5em; }
.ph-promo b { display: block; font-size: .92em; line-height: 1.2; }
.ph-promo small { display: block; font-size: .78em; color: #4A5D53; font-weight: 600; margin-top: .15em; }
.ph-promo em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--accent-text); font-size: 1.05em; white-space: nowrap; }

/* ---------- Farmacias ---------- */
.pharm-grid { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 900px) { .pharm-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-16); } }
.tone-block { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
@media (min-width: 1024px) { .tone-block::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%; background: var(--primary-soft); } }
.pharm h2 { font-size: var(--text-h2); margin-bottom: var(--s-4); }
.pharm .lead { font-size: 1.125rem; color: var(--muted-foreground); max-width: 46ch; margin-bottom: var(--s-6); }
.pharm .bullets li { color: var(--foreground); }
.pharm .bullets .tile { background: var(--card); border: 1px solid #CFE7D7; color: var(--primary); }
.levels { display: grid; gap: var(--s-4); }
.level { display: flex; align-items: center; gap: var(--s-4); background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--lv); border-radius: var(--radius-md); padding: var(--s-4) var(--s-6); box-shadow: var(--shadow-2); }
.level .stars { display: flex; gap: 2px; color: var(--lv); flex: none; }
.level .stars .i { width: 16px; height: 16px; fill: currentColor; }
.level div { flex: 1; }
.level b { display: block; font-size: 1.05rem; }
.level small { display: block; font-size: .92rem; color: var(--muted-foreground); font-weight: 500; margin-top: 2px; }
.level span { font-size: .72rem; font-weight: 800; padding: .35rem .65rem; border-radius: 9px; background: var(--lvbg); color: var(--lvfg); white-space: nowrap; }
.lv-gold { --lv: #B7791F; --lvbg: #FCF3DC; --lvfg: #8A5A0F; }
.lv-blue { --lv: #2563EB; --lvbg: #E9F0FF; --lvfg: #1D4ED8; }
.lv-gray { --lv: #64748B; --lvbg: #F1F4F3; --lvfg: #475569; }
.pharm-side { display: grid; gap: var(--s-4); justify-items: end; }
.pharm-side .ben-slot { --ben-size: min(250px, 60vw); }
.pharm-side .levels { justify-self: stretch; }
.ben-ph .ben-say { top: 8%; right: 62%; border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; }
@media (max-width: 899px) { .pharm-side { justify-items: center; } .ben-ph .ben-say { right: auto; left: 56%; border-radius: 16px 16px 16px 4px; transform-origin: 0 100%; } }

/* ---------- Cobertura ---------- */
.coverage { position: relative; isolation: isolate; }
.coverage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 28%; width: min(900px, 100%); height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(21,128,61,.10), transparent 75%); pointer-events: none; }
.cov-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .cov-grid { grid-template-columns: 300px 1fr; gap: var(--s-12); } }
.cov-grid .ben-slot { --ben-size: min(300px, 64vw); justify-self: center; }
.ben-cov .ben-say { top: -16%; left: 4%; }
.states { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.state { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--s-4) var(--s-6); box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.state:hover { transform: translateY(-3px); border-color: #A9C9B3; }
.state .i { color: var(--primary); margin-top: 3px; }
.state b { display: block; font-size: 1.05rem; line-height: 1.2; }
.state span { display: block; font-size: .9rem; color: var(--muted-foreground); font-weight: 500; margin-top: 2px; }
.state.soon { border-style: dashed; background: transparent; box-shadow: none; }
.state.soon .i { color: var(--muted-foreground); }
.cov-note { margin-top: var(--s-6); text-align: center; font-size: var(--text-sm); color: var(--muted-foreground); }

/* ---------- Descarga ---------- */
.dl-grid { display: grid; gap: var(--s-6); max-width: 1000px; margin-inline: auto; }
@media (min-width: 820px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-8); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: var(--s-6); }
.dl-top { display: flex; gap: var(--s-4); align-items: center; }
.dl-ico { width: 80px; height: 80px; border-radius: 22px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; flex: none; padding: 9px; box-shadow: var(--shadow-1); }
.dl-ico img { width: 100%; height: 100%; object-fit: contain; }
.dl-ico.blue { background: var(--info-soft); border-color: transparent; color: var(--info); }
.dl-top h3 { font-size: 1.5rem; }
.dl-top p { font-size: .92rem; color: var(--primary); font-weight: 700; }
.badge { display: inline-block; margin-top: var(--s-2); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid #FCD34D; padding: .35rem .65rem; border-radius: var(--radius-full); white-space: nowrap; }
.stores { display: grid; gap: var(--s-3); margin-top: auto; }
.store { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 56px; padding: .6rem 1.4rem; border-radius: 14px; color: #fff; background: var(--primary); text-align: left; transition: transform var(--dur-instant) var(--ease-out), background var(--dur-fast); }
.store:hover { color: #fff; background: var(--primary-strong); transform: translateY(-2px); }
.store:active { transform: scale(.97); }
.store.black { background: #111; }
.store.black:hover { background: #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .95; }
.store b { font-size: 1.2rem; font-weight: 800; }
.dl-card .rider-note { text-align: center; font-weight: 700; }

/* ---------- Cierre y pie ---------- */
.final-card { position: relative; overflow: clip; isolation: isolate; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(150deg, #15803D, #14532D); }
.final-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(45% 70% at 18% 60%, rgba(252,211,77,.20), transparent 72%); }
.final-grid { display: grid; gap: var(--s-6); align-items: center; justify-items: center; text-align: center; }
@media (min-width: 860px) { .final-grid { grid-template-columns: 300px 1fr; text-align: left; justify-items: start; } }
.final-grid .ben-slot { --ben-size: min(300px, 64vw); justify-self: center; }
.ben-fin .ben-say { top: -10%; left: 44%; }
.final-card h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); color: #fff; margin-bottom: var(--s-3); }
.final-card p { color: var(--on-dark); font-size: 1.15rem; margin-bottom: var(--s-6); }
.final-card .cta-row { justify-content: inherit; margin: 0; }
@media (max-width: 859px) { .final-card .cta-row { justify-content: center; } }

.footer { background: var(--primary-strong); color: var(--on-dark-muted); padding-block: var(--s-16) var(--s-8); }
.footer-grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: var(--s-12); }
.footer-grid > :first-child { grid-column: span 2; }
@media (max-width: 520px) { .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer .chip-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 6px; }
.footer .chip-logo img { width: 28px; height: 28px; object-fit: contain; }
.footer p { margin-top: var(--s-4); max-width: 32ch; font-size: .96rem; }
.footer h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); font-weight: 800; }
.footer li { margin-bottom: .45rem; }
.footer a { color: var(--on-dark-muted); font-weight: 600; font-size: .97rem; display: inline-block; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer .social { display: inline-flex; align-items: center; gap: .55rem; margin-top: var(--s-4); color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: .6rem 1rem; border-radius: var(--radius-full); min-height: 44px; transition: background var(--dur-fast); }
.footer .social:hover { background: rgba(255,255,255,.2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }

/* ---------- Movimiento (nivel vivo) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) .hero-copy > * { animation: rise var(--dur-page) var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms !important; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms !important; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms !important; }
  html:not(.paused) .hero-phone-wrap { animation: rise var(--dur-page) var(--ease-out) 180ms both; }
  html:not(.paused) .chip-a { animation: floaty 6s ease-in-out infinite; }
  html:not(.paused) .chip-b { animation: floaty 7s ease-in-out -2s infinite; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 4% entry 52%; }
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .ben-say, .ben-poster, .ben-canvas { transition: opacity 160ms linear !important; }
}

.ben-slot, .ben-say { -webkit-user-select: none; user-select: none; }
.ben-dragging, .ben-dragging * { -webkit-user-select: none !important; user-select: none !important; cursor: grabbing !important; }

@media (max-width: 959px) {
  .ben-slot .ben-say { left: 0 !important; right: auto !important; top: -10% !important; max-width: min(14rem, 94%); border-radius: 16px 16px 16px 4px; transform-origin: 0 100%; }
  .ben-hero .ben-say { top: 0 !important; }
}

/* La burbuja no debe heredar el estilo de párrafos de las tarjetas oscuras */
.ben-slot .ben-say { color: var(--foreground); font-size: .95rem; margin: 0; }
