/* Sugar Lift — hoja de estilo de sugarlift.es
   Concepto: lámina anatómica impresa. Papel piedra, tinta verde pino, un único acento dorado
   (los «cristales» de dextrosa en los puntos de anclaje). Serif editorial para titulares, sans técnica para el texto. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f4f3ee; --paper-2: #e9e8e0; --surface: #fbfbf8; --ink: #17201e; --ink-2: #43504c; --muted: #6b7773;
  --line: #d3d6cd; --pine: #1d5a55; --pine-deep: #123c39; --gold: #a8792a; --gold-soft: #f0e3c6; --alert: #9c2f22;
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure: 66ch; --gutter: clamp(18px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111816; --paper-2: #172120; --surface: #1a2422; --ink: #e8ece8; --ink-2: #c3ccc8; --muted: #93a19c;
    --line: #2c3a37; --pine: #7cc4ba; --pine-deep: #0c2725; --gold: #d9ac5b; --gold-soft: #3a2f1a; --alert: #f09a8c; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); }
img, svg { max-width: 100%; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--pine); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* ---------- cabecera */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font: 600 1.45rem/1 var(--f-display); letter-spacing: -.01em; }
.brand span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: .93rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--pine); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--f-body); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--pine); color: var(--pine); background: transparent; cursor: pointer; }
.btn.solid { background: var(--pine); color: var(--surface); }
.btn.solid:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.btn:hover { color: var(--gold); border-color: var(--gold); }
.nav .btn { padding: 9px 15px; font-size: .88rem; }
@media (max-width: 820px) { .nav .hide-sm { display: none; } .brand span { display: none; } }

/* ---------- portada */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero figure { order: -1; max-width: 360px; margin-inline: auto; } }
.hero-text { display: grid; gap: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero figure { margin: 0; }
.plate { width: 100%; height: auto; display: block; }
.plate .face { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plate .soft { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.plate .lig { fill: var(--gold); stroke: var(--paper); stroke-width: 2; }
.plate .ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; }
.plate text { font: 500 12px var(--f-mono); fill: var(--ink-2); letter-spacing: .04em; }
.plate .tick { stroke: var(--muted); stroke-width: .8; }
.figcap { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- secciones */
section { padding-block: clamp(56px, 8vw, 110px); }
section.alt { background: var(--paper-2); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 820px) { .cols3, .cols2 { grid-template-columns: minmax(0, 1fr); } }
.cell { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 16px; min-width: 0; }
.cell .eyebrow { color: var(--gold); }
.cell p { color: var(--ink-2); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { padding-left: 22px; position: relative; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }
.list.no li::before { background: transparent; border: 1.5px solid var(--alert); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; min-width: 0; }

/* pauta por edades */
.ages { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ages th, .ages td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.ages th { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ages td:first-child { font: 600 1.15rem var(--f-display); white-space: nowrap; color: var(--pine); }
.ages td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.scroll-x { overflow-x: auto; }

/* ciclo: secuencia real de semanas */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.cycle li { position: relative; padding: 46px 18px 0 0; display: grid; gap: 6px; align-content: start; }
.cycle li::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 2px solid var(--line); }
.cycle li::after { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; transform: rotate(45deg); background: var(--gold); border: 3px solid var(--paper-2); }
.cycle .wk { font: 500 .78rem var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.cycle b { font: 600 1.15rem var(--f-display); }
.cycle span { color: var(--ink-2); font-size: .95rem; }
.cycle.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .cycle, .cycle.four { grid-template-columns: minmax(0, 1fr); } .cycle li { padding: 0 0 22px 32px; } .cycle li::before { left: 6px; right: auto; top: 14px; bottom: 0; border-top: 0; border-left: 2px solid var(--line); } .cycle li::after { top: 4px; } }

.recovery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .recovery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .recovery { grid-template-columns: minmax(0, 1fr); } }
.recovery div { border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; display: grid; gap: 4px; align-content: start; }
.recovery .wk { font: 500 .78rem var(--f-mono); color: var(--muted); letter-spacing: .06em; }

.honest { border-left: 4px solid var(--alert); }
.honest h3 { color: var(--alert); }

/* libro */
.book { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 820px) { .book { grid-template-columns: minmax(0, 1fr); } .cover { max-width: 260px; } }
.cover { aspect-ratio: 2 / 3; background: var(--pine-deep); color: #f4f1e6; border-radius: 4px 10px 10px 4px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 14px 18px 0 -6px var(--paper-2), 0 20px 40px -24px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.cover .t { font: 600 1.55rem/1.12 var(--f-display); }
.cover .t em { color: #e3bf78; font-weight: 500; }
.cover .a { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cover .dots { display: flex; gap: 7px; } .cover .dots i { width: 7px; height: 7px; background: #e3bf78; transform: rotate(45deg); display: block; opacity: .85; }
.parts { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.parts div { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.parts .n { font: 500 .78rem var(--f-mono); color: var(--gold); }
.parts .c { font: 500 .78rem var(--f-mono); color: var(--muted); white-space: nowrap; }

/* clínica */
.clinic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 820px) { .clinic { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.tel { font: 600 1.25rem var(--f-display); text-decoration: none; color: var(--ink); }

/* preguntas */
.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.2rem/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.6rem var(--f-body); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 22px; display: grid; gap: 10px; color: var(--ink-2); }

/* pie */
footer { background: var(--pine-deep); color: #dfe6e2; padding-block: 56px 40px; font-size: .92rem; }
footer a { color: #f0d9a6; }
footer .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { footer .grid { grid-template-columns: minmax(0, 1fr); } }
footer .brandf { font: 600 1.8rem var(--f-display); color: #fff; }
footer .small { color: #a9b8b3; font-size: .82rem; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: grid; gap: 6px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer h4 { font: 500 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #a9b8b3; margin: 0 0 12px; }

/* páginas legales */
.legal { padding-block: 60px 90px; }
.legal .wrap { max-width: 820px; display: grid; gap: 18px; }
.legal h2 { font-size: 1.5rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-2); }
.pend { background: var(--gold-soft); padding: 0 4px; border-radius: 3px; }

footer .grid > div { align-content: start; }
footer .pend { background: #e3bf78; color: #123c39; }
