/* ===== TOKENS (Notion design system) ===== */
:root {
  --bg:           #ffffff;
  --surface:      #f6f5f4;
  --surface-warm: var(--surface);
  --fg:   rgba(0, 0, 0, 0.95);
  --fg-2: #31302e;
  --muted: #615d59;
  --meta:  #a39e98;
  --border:      rgba(0, 0, 0, 0.1);
  --border-soft: rgba(0, 0, 0, 0.06);
  --accent:        #0075de;
  --accent-on:     #ffffff;
  --accent-hover:  #005bab;
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #1aae39;
  --warn:    #dd5b00;
  --danger:  #dc2626;
  --font-display: "NotionInter", "Inter", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "NotionInter", "Inter", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 20px;
  --text-xl: 26px; --text-2xl: 40px; --text-3xl: 48px; --text-4xl: 64px;
  --leading-body: 1.5; --leading-tight: 1.00; --tracking-display: -0.033em;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --section-y-desktop: 80px; --section-y-tablet: 48px; --section-y-phone: 32px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised:
    rgba(0, 0, 0, 0.04) 0px 4px 18px,
    rgba(0, 0, 0, 0.027) 0px 2px 7.85px,
    rgba(0, 0, 0, 0.02) 0px 0.8px 2.93px,
    rgba(0, 0, 0, 0.01) 0px 0.175px 1.04px;
  --focus-ring: 0 0 0 3px rgba(9, 127, 232, 0.3);
  --motion-fast: 150ms; --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --container-gutter-desktop: 24px; --container-gutter-tablet: 16px; --container-gutter-phone: 12px;
}
/* Extensión del proyecto: CTA verde oscuro (pedido del brief) y colores suaves de los slots */
:root {
  --cta:       oklch(0.40 0.09 152);
  --cta-hover: oklch(0.32 0.08 152);
  --cta-on:    var(--accent-on);
  --s1: oklch(0.93 0.05 150); --s2: oklch(0.93 0.06 70);  --s3: oklch(0.94 0.05 100);
  --s4: oklch(0.92 0.04 230); --s5: oklch(0.93 0.05 20);  --s6: oklch(0.92 0.04 300);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 5rem; font: 400 1rem/var(--leading-body) var(--font-body); color: var(--fg); background: var(--bg); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.04; letter-spacing: var(--tracking-display); }
h2 { font-size: clamp(1.65rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-inline: var(--space-5); }
section { padding-block: var(--section-y-phone); }
.alt { background: var(--surface); }
.head { max-width: 44rem; margin-bottom: var(--space-8); }
.head p { margin-top: var(--space-3); color: var(--muted); font-size: 1.1rem; }
.eyebrow { margin-bottom: var(--space-2); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--accent-hover); background: color-mix(in oklab, var(--accent) 9%, var(--bg)); }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 500; }

/* ===== BOTONES ===== */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.5rem; border: 2px solid var(--cta); border-radius: var(--radius-md); background: var(--cta); color: var(--cta-on); font: 700 1rem/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
.cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-on); }
.cta:active { transform: scale(.98); }
.cta.sm { min-height: 3rem; padding: .5rem 1rem; font-size: .95rem; }
.cta.ghost { background: transparent; color: var(--cta); }
.cta.ghost:hover { background: var(--cta); color: var(--cta-on); }
.cta.block { width: 100%; }
.aplus { min-width: 3rem; min-height: 3rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--fg); font: 700 1rem var(--font-body); cursor: pointer; }
.aplus:hover { background: var(--surface); }
.aplus[aria-pressed="true"] { background: var(--fg-2); color: var(--bg); }

/* ===== CABECERA ===== */
.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 4rem; padding-block: var(--space-2); }
.brand { flex: 1; min-width: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

/* ===== HERO ===== */
.hero .wrap { display: grid; gap: var(--space-8); align-items: center; }
.hero .lead { margin: var(--space-4) 0 var(--space-6); font-size: 1.2rem; color: var(--muted); }
.hero .mini { margin-top: var(--space-4); font-size: .9rem; font-weight: 500; color: var(--muted); }
.hero .slot { max-width: 24rem; width: 100%; margin-inline: auto; }

/* ===== CONFIANZA ===== */
.rate { margin-bottom: var(--space-5); font-size: 1.3rem; font-weight: 700; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); list-style: none; }
.stat { padding: var(--space-4); text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat b { display: block; font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ===== PROBLEMA ===== */
.prob { max-width: 40rem; margin-inline: auto; display: grid; gap: var(--space-3); font-size: 1.2rem; }
.prob p:last-child { margin-top: var(--space-3); font-weight: 600; }

/* ===== GRIDS Y TARJETAS ===== */
.grid { display: grid; gap: var(--space-4); }
.card { overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--elev-raised); }
.card .body { padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
.card .body p { color: var(--muted); }
.card > .slot { border-radius: 0; }
.mod .pill { justify-self: start; }
.sub { margin: var(--space-12) 0 var(--space-5); }

/* ===== SLOTS DE IMAGEN ===== */
.slot { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--c, var(--s1)); color: var(--fg-2); }
.slot b { font: 700 clamp(2.5rem, 12vw, 4.5rem)/1 var(--font-display); letter-spacing: -0.04em; opacity: .45; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r45 { aspect-ratio: 4/5; } .r34 { aspect-ratio: 3/4; } .r11 { aspect-ratio: 1; } .r31 { aspect-ratio: 3/1; }
.round { border-radius: 50%; }
.c1 { --c: var(--s1); } .c2 { --c: var(--s2); } .c3 { --c: var(--s3); }
.c4 { --c: var(--s4); } .c5 { --c: var(--s5); } .c6 { --c: var(--s6); }

/* ===== SLIDER COMPARATIVO ===== */
.cmp { --p: 50%; position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); user-select: none; -webkit-user-select: none; }
.cmp .slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.cmp .a { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp .a b { justify-self: start; margin-left: 20%; }
.cmp .b b { justify-self: end; margin-right: 20%; }
.tag { position: absolute; bottom: .75rem; padding: .3rem .65rem; border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); font-size: .8rem; font-weight: 600; line-height: 1.3; box-shadow: var(--elev-raised); }
.a .tag { left: .75rem; } .b .tag { right: .75rem; }
.knob { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--fg-2); pointer-events: none; }
.knob::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; display: grid; place-items: center; border: 2px solid var(--fg-2); border-radius: 50%; background: var(--bg); color: var(--fg); font-weight: 700; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.cmp:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.support { margin-top: var(--space-6); font-size: 1.2rem; font-weight: 600; text-align: center; }

/* ===== CARRUSELES ===== */
.cw { position: relative; }
.car { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--space-5) var(--space-3); margin-inline: calc(var(--space-5) * -1); scroll-padding-inline: var(--space-5); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.car > * { flex: 0 0 min(75%, 17rem); scroll-snap-align: start; }
.arr { display: none; }
.bonus h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.bonus h3 strong { font-weight: 700; color: var(--fg); }
.note { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: .95rem; color: var(--fg-2); }
.alt .note { background: var(--bg); }

/* ===== RECETAS ===== */
.rec .body { gap: var(--space-3); }
.rec ul, .rec ol { padding-left: 1.25rem; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.auth { padding: var(--space-3) var(--space-4); border: 1px dashed var(--meta); border-radius: var(--radius-md); font-size: .95rem; }
.auth strong { display: block; color: var(--fg); }

/* ===== RESEÑAS ===== */
.rev { padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.who { display: flex; align-items: center; gap: var(--space-3); }
.who span { display: block; font-size: .9rem; color: var(--muted); }
.av { width: 4rem; flex: none; }
.av b { font-size: 1.3rem; }
.stars { color: var(--warn); letter-spacing: .1em; font-size: 1.15rem; }
.rev blockquote { margin: 0; font-size: 1.05rem; }

/* ===== RESPALDO / OFERTA / GARANTÍA ===== */
.proof { display: grid; gap: var(--space-6); max-width: 52rem; margin-inline: auto; }
.proof p { color: var(--muted); }
.proof p strong { color: var(--fg); }
.offer { max-width: 34rem; margin-inline: auto; padding: var(--space-8) var(--space-5); text-align: center; display: grid; gap: var(--space-5); box-shadow: var(--elev-raised); }
.offer h2 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
.offer h2 span { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: var(--space-2); }
.ticks { list-style: none; display: grid; gap: var(--space-3); text-align: left; max-width: 22rem; margin-inline: auto; font-weight: 500; }
.ticks li { display: flex; gap: var(--space-3); }
.ticks li::before { content: "\2713"; flex: none; color: var(--cta); font-weight: 700; }
.fine { font-size: .9rem; color: var(--muted); }
.guar { display: grid; gap: var(--space-6); align-items: center; justify-items: center; text-align: center; max-width: 52rem; margin-inline: auto; }
.guar p { margin-top: var(--space-3); font-size: 1.15rem; color: var(--muted); }
.seal { width: 7.5rem; aspect-ratio: 1; display: grid; place-content: center; border: 2px solid var(--cta); border-radius: 50%; color: var(--cta); font-weight: 700; line-height: 1; text-align: center; }
.seal b { font: 700 3rem/1 var(--font-display); }

/* ===== FAQ ===== */
.faq { max-width: 44rem; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 3.4rem; padding: var(--space-3) var(--space-2); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--surface); }
.faq details p { padding: 0 var(--space-2) var(--space-5); color: var(--muted); }

/* ===== FINAL, PIE, BARRA ===== */
.final { text-align: center; }
.final .cta { margin-top: var(--space-6); }
.foot { padding-block: var(--space-8); background: var(--fg-2); color: var(--surface); font-size: .9rem; }
.foot .wrap { display: grid; gap: var(--space-3); max-width: 52rem; }
.bar { position: fixed; inset: auto 0 0 0; z-index: 30; padding: .6rem var(--space-4) calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); box-shadow: var(--elev-raised); transform: translateY(100%); visibility: hidden; transition: transform var(--motion-base) var(--ease-standard), visibility 0s linear var(--motion-base); }
.bar.on { transform: none; visibility: visible; transition-delay: 0s; }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: var(--space-5); }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  section { padding-block: var(--section-y-tablet); }
  .wrap { padding-inline: var(--container-gutter-desktop); }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: var(--space-12); }
  .hero .cta { width: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .car { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .guar { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: var(--space-8); }
}
@media (min-width: 900px) {
  section { padding-block: var(--section-y-desktop); }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .arr { display: grid; place-items: center; position: absolute; top: 38%; z-index: 2; width: 3rem; height: 3rem; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 1.2rem; box-shadow: var(--elev-raised); cursor: pointer; }
  .arr:hover { background: var(--surface); }
  .arr:disabled { opacity: .35; cursor: default; }
  .arr.l { left: -1rem; } .arr.r { right: -1rem; }
  .car > * { flex-basis: 15rem; }
  .car.fit { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .car.fit > * { flex: none; }
}
@media (min-width: 1100px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
