/* Buff Health — landing. Paleta tomada del logo: verde #01D69E, celeste #01D2FD. */

:root {
  --green: #01d69e;
  --cyan: #01d2fd;
  --ink: #06302a;
  --ink-soft: #33574f;
  --mint: #eafbf6;
  --mint-2: #d3f6ec;
  --line: #bfe9dd;
  --deep: #052a25;
  --paper: #ffffff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-deep :focus-visible, .footer :focus-visible { outline-color: var(--green); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 760;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.375rem); line-height: 1.55; max-width: 34em; }
.muted { color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 650; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; text-align: center;
  padding: 18px 30px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--green); color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 12px 20px; font-size: 0.975rem; }
.on-deep .btn { border-color: var(--green); }
.on-deep .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Encabezado ---------- */
.header { padding-block: 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-note { font-size: 1rem; color: var(--ink-soft); max-width: 28em; }
.hero-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; }
}

.progress { margin: 0; }
.progress svg { width: 100%; height: auto; overflow: visible; }
.progress .base { stroke: var(--ink); stroke-width: 2; }
.progress .bar { fill: url(#bar-grad); transform-box: fill-box; transform-origin: 50% 100%; }
.progress .bar--light { fill: var(--mint-2); stroke: var(--green); stroke-width: 2.5; }
.progress text { font-family: var(--display); font-size: 13px; font-weight: 600; fill: var(--ink-soft); }
.progress figcaption { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 30em; }

@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  .progress .bar {
    animation: rise .8s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--i) * 70ms + 250ms);
  }
}

/* ---------- Principios ---------- */
.strip { background: var(--mint); border-block: 1px solid var(--line); }
.strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.strip li {
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  font-size: 1.0625rem; padding: 22px 16px; border-left: 1px solid var(--line);
}
.strip li:nth-child(odd) { border-left: 0; }
.strip li:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .strip ul { grid-template-columns: repeat(5, 1fr); }
  .strip li, .strip li:nth-child(odd) { border-left: 1px solid var(--line); padding: 28px 24px; font-size: 1.125rem; }
  .strip li:first-child { border-left: 0; padding-left: 0; }
  .strip li:last-child { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Gancho ---------- */
.hook { background: var(--deep); color: var(--mint); padding-block: var(--section); }
.hook-grid { display: grid; gap: 48px; }
.hook-quote { display: grid; gap: 14px; align-content: start; }
.hook-quote .said {
  font-family: var(--display); font-weight: 760; font-stretch: 112%;
  font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em;
}
.hook-quote .reply {
  font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.04; color: var(--green);
}
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(234, 251, 246, .28); }
.q-list li {
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.15;
  padding: 18px 0; border-bottom: 1px solid rgba(234, 251, 246, .28);
}
.hook-close { margin-top: 28px; display: grid; gap: 24px; justify-items: start; }
.hook-close p { max-width: 30em; font-size: 1.1875rem; }
@media (min-width: 960px) {
  .hook-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

/* ---------- Método ---------- */
.method { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 40em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.step { position: relative; padding-left: 64px; padding-bottom: 32px; display: grid; gap: 8px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: -4px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: var(--ink);
  font-family: var(--display); font-weight: 750; font-size: 1.0625rem;
}
.step h3 { padding-top: 8px; }
.step p { color: var(--ink-soft); font-size: 1.0625rem; max-width: 24em; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .steps::before {
    content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line);
  }
  .step { padding: 0; gap: 12px; }
  .step::before { display: none; }
  .step-num { position: relative; z-index: 1; }
  .step h3 { padding-top: 12px; }
}

/* ---------- Para quién ---------- */
.fit { background: var(--mint); padding-block: var(--section); }
.fit-grid { display: grid; gap: 40px; }
.facts { margin: 0; }
.facts > div { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 6px; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; }
.facts dd { margin: 0; color: var(--ink-soft); max-width: 34em; }
@media (min-width: 960px) {
  .fit-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .facts > div { grid-template-columns: 1fr 1.4fr; gap: 32px; }
}

/* ---------- Encuesta ---------- */
.survey { padding-block: var(--section); scroll-margin-top: 0; }
.survey-grid { display: grid; gap: 40px; }
.survey-copy { display: grid; gap: 24px; align-content: start; }
.prize {
  border-left: 6px solid var(--green); padding: 4px 0 4px 20px; display: grid; gap: 6px;
}
.prize strong { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.prize span { font-size: 0.9375rem; color: var(--ink-soft); }
.form-frame {
  border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--paper);
}
.form-frame iframe { display: block; width: 100%; height: 920px; border: 0; }
.form-alt { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-soft); }
.form-alt a { font-weight: 600; color: var(--ink); }
@media (min-width: 960px) {
  .survey-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .survey-copy { position: sticky; top: 32px; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--mint); padding-block: var(--section); }
.faq-grid { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 36em; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
}

/* ---------- Pie ---------- */
.footer { background: var(--deep); color: var(--mint); padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 32px; }
.footer img { height: 54px; width: auto; }
.footer p { font-size: 0.9375rem; line-height: 1.6; max-width: 40em; color: rgba(234, 251, 246, .85); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--display); font-weight: 600; font-size: 0.975rem; }
.footer nav a { color: var(--mint); }
.footer small { font-size: 0.875rem; color: rgba(234, 251, 246, .7); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } }

/* ---------- Botón fijo en celular ---------- */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .show-sticky .sticky-cta { transform: none; }
  .sticky-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Páginas legales (borradores) ---------- */
.legal { padding-block: 56px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-stretch: 112%; margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; font-stretch: 100%; margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; }
.legal .meta { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 24px; }
.draft-banner {
  background: #fff3a8; color: #3b3200; border-bottom: 2px solid #e0c200;
  font-family: var(--display); font-weight: 600; font-size: 0.975rem; padding: 12px var(--gutter); text-align: center;
}
.todo { background: #fff3a8; padding: 0 4px; border-radius: 4px; }
.back { display: inline-block; margin-bottom: 24px; font-family: var(--display); font-weight: 600; }

/* ---------- Fotos y gráficos ---------- */
.hero-visual { position: relative; padding-bottom: 36px; }
.photo-frame { position: relative; margin: 0; }
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px;
  background: linear-gradient(160deg, var(--green), var(--cyan)); z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: 50% 30%; border-radius: 28px; border: 2px solid var(--ink); background: var(--mint-2);
}
.chart-card {
  position: absolute; z-index: 2; left: -4%; bottom: 0; width: min(62%, 270px);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 16px 12px;
}
.chart-card figcaption { margin-top: 8px; font-size: 0.8125rem; line-height: 1.4; }
@media (max-width: 959px) {
  .hero-visual { max-width: 440px; margin-inline: 8px 18px; }
  .chart-card { left: -8px; }
}
@media (min-width: 960px) { .hero-visual { margin-left: 16px; } }

.step-ico {
  width: 56px; height: 56px; padding: 13px; border-radius: 16px; background: var(--mint); border: 1.5px solid var(--line);
  fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 960px) { .step-ico { margin-top: 4px; } .step { gap: 14px; } }
@media (max-width: 959px) { .step-ico { display: none; } }

.about { padding-block: var(--section); }
.about-grid { display: grid; gap: 56px; align-items: center; }
.about-copy { display: grid; gap: 20px; max-width: 34em; }
.about .photo-frame { max-width: 420px; margin-right: 18px; }
.photo-frame--alt::before { inset: 18px 18px -18px -18px; background: linear-gradient(200deg, var(--cyan), var(--green)); }
.photo-frame--alt { margin-left: 18px; margin-right: 0; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 5fr 6fr; gap: 88px; } }

.h-about { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero-visual { max-width: 470px; }
.phone-back { position: absolute; inset: 28px -16px 8px 24px; border-radius: 40px; background: linear-gradient(160deg, var(--green), var(--cyan)); }
.phone {
  position: relative; z-index: 1; background: var(--paper); border: 2px solid var(--ink); border-radius: 34px;
  padding: 22px 20px 20px; width: min(100%, 330px); margin-inline: auto 0; font-family: var(--display);
}
.ph-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-size: 1.125rem; margin-bottom: 14px; }
.ph-week { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); background: var(--mint); border-radius: 999px; padding: 4px 10px; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-list li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; align-items: center; }
.ph-list li.done { background: var(--mint); }
.ph-list b { font-weight: 700; font-size: .975rem; }
.ph-list i { grid-column: 2; font-style: normal; font-size: .8125rem; color: var(--ink-soft); }
.ck { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); position: relative; }
.done .ck { background: var(--green); }
.done .ck::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ph-bar { height: 8px; border-radius: 99px; background: var(--mint-2); margin-top: 16px; overflow: hidden; }
.ph-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.ph-foot { font-size: .8125rem; color: var(--ink-soft); margin-top: 6px; font-family: var(--display); }
.bubble {
  position: absolute; z-index: 3; right: -4px; top: 46%; width: 190px; background: var(--ink); color: var(--mint);
  border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-family: var(--display); font-size: .875rem; line-height: 1.35; font-weight: 550;
}
.bubble small { display: block; color: var(--green); font-weight: 700; font-size: .75rem; margin-bottom: 3px; }
.chart-card { left: -10%; bottom: -4px; width: min(52%, 220px); }
.hero-visual { padding-bottom: 44px; }
@media (max-width: 959px) { .hero-visual { margin-inline: auto; padding-inline: 0 16px; } .bubble { right: 0; width: 170px; } .chart-card { left: -6px; } }

/* ajuste de capas: nada tapa el texto del plan */
.bubble { top: auto; bottom: -12px; right: -8px; width: 200px; }
.chart-card { left: 0; bottom: 12px; width: 150px; padding: 10px 12px 8px; }
.chart-card figcaption { display: none; }
.phone { width: min(calc(100% - 70px), 330px); margin-right: 0; margin-left: auto; padding-bottom: 54px; position: relative; }
.ph-foot { margin-bottom: 0; }
@media (max-width: 959px) { .bubble { right: 6px; width: 180px; } .hero-visual { max-width: 420px; } }

/* ajuste final */
.chart-card { left: -8px; bottom: -22px; }
.hero-visual { padding-bottom: 56px; }
@media (max-width: 959px) {
  .phone { width: calc(100% - 16px); margin-left: 0; }
  .chart-card { display: none; }
  .bubble { right: 0; bottom: -4px; }
  .ph-head { flex-wrap: wrap; gap: 6px; }
}

/* ========== Color, separadores e ilustraciones (v4) ========== */
:root { --sky: #e3f9ff; --cyan-deep: #0aa6c8; }

.sep { background: var(--from); line-height: 0; }
.sep svg { display: block; width: 100%; height: clamp(36px, 6vw, 84px); }
.sep path { fill: var(--to); }

/* Franja de principios en verde pleno */
.strip { background: var(--green); border-block: 2px solid var(--ink); }
.strip li { border-color: rgba(6, 48, 42, .35) !important; }

/* Gancho: barra de pesas */
.hook-art { width: min(100%, 460px); height: auto; margin-top: 12px; }
.hook-quote { align-content: start; }

/* Método sobre celeste */
.method { background: var(--sky); }
.step-ico { background: var(--paper); border-color: var(--ink); }
.step:nth-child(odd) .step-ico { box-shadow: 5px 5px 0 var(--green); }
.step:nth-child(even) .step-ico { box-shadow: 5px 5px 0 var(--cyan); }
.step-num { border: 2px solid var(--ink); }
.step:nth-child(even) .step-num { background: var(--cyan); }
.step::before { background: rgba(6,48,42,.25); }
.steps::before { background: rgba(6,48,42,.25); }

/* Qué es / qué no */
.facts > div { border-top-color: rgba(6,48,42,.2); border-left: 6px solid var(--green); padding-left: 18px; margin-bottom: 14px; border-top: 0; background: var(--paper); border-radius: 0 16px 16px 0; padding-block: 18px; padding-right: 18px; }
.facts > div:nth-child(even) { border-left-color: var(--cyan); }
.facts > div:last-child { border-bottom: 0; }

/* Encuesta: el momento grande, verde a celeste */
.survey.on-green { background: linear-gradient(180deg, var(--green) 0%, var(--cyan) 100%); color: var(--ink); padding-block: clamp(40px, 6vw, 80px) calc(var(--section) * .8); }
.on-green .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-green .btn:hover { background: var(--paper); color: var(--ink); }
.on-green .prize { background: var(--paper); border-left-color: var(--ink); border-radius: 0 16px 16px 0; padding: 16px 18px; border: 2px solid var(--ink); border-left-width: 8px; }
.on-green .prize span, .on-green .form-alt { color: var(--ink); }
.on-green :focus-visible { outline-color: var(--ink); }
.survey-art svg { width: 100%; height: auto; max-width: 520px; margin-inline: auto; }
.survey-note { margin-top: 16px; font-size: 1.0625rem; max-width: 28em; }

/* Preguntas */
.faq { background: var(--paper); }
.faq-side { display: grid; gap: 28px; align-content: start; }
.faq-art { width: min(100%, 340px); height: auto; }
.faq details { border-bottom-color: var(--line); }
.faq details[open] summary { color: var(--cyan-deep); }
.faq-list { border-top-color: var(--line); }

/* Pie con onda superior */
.footer { margin-top: 0; }

/* ========== Responsive: móvil, tablet, escritorio ========== */
/* tablet vertical: layouts de 2 columnas donde caben */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
  .step::before { display: none; }
  .strip ul { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .strip li, .strip li:nth-child(odd), .strip li:last-child { grid-column: auto; border-top: 0; font-size: 1rem; padding: 22px 14px; }
  .strip li:first-child { border-left: 0 !important; }
  .about-grid { grid-template-columns: 4fr 5fr; gap: 48px; }
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .survey-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .survey-copy { position: static; }
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 48px; }
  .hook-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .steps::before { display: block; }
  .survey-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
}
@media (min-width: 1360px) {
  :root { --wrap: 1240px; }
  body { font-size: 1.1875rem; }
}
/* tablet y móvil: visual de portada centrado, sin desbordes */
@media (max-width: 859px) {
  .hero-grid { gap: 56px; }
  .hero-copy { justify-items: start; }
  .hero-visual { margin-inline: auto; width: 100%; max-width: 440px; }
  .survey-art { max-width: 440px; }
}
body { overflow-x: hidden; }
