/* ==========================================================================
   Maria Camila Aristizábal · Nutrición & Diabetes
   Paleta y tipografías tomadas del Manual de identidad.
   ========================================================================== */

/* Si se compran las licencias web de Chillen y Agrandir, poner los .woff2 en
   assets/fonts/ y descomentar estos bloques: tomarán prioridad sobre los sustitutos. */
/*
@font-face { font-family: "Chillen"; src: url("../fonts/chillen-regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Agrandir"; src: url("../fonts/agrandir-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Agrandir"; src: url("../fonts/agrandir-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
*/

:root {
  /* Paleta oficial */
  --verde: #83A295;        /* color predominante */
  --verde-claro: #CED3B6;
  --rosa: #D498A3;
  --rosa-claro: #E8C8C0;
  --crema: #FBF6F1;
  --tinta: #3C3C3C;
  --gris: #525250;
  --blanco: #FFFFFF;

  /* Tonos derivados solo para garantizar contraste de texto (AA) sobre fondos claros */
  --verde-hondo: #56756A;
  --rosa-hondo: #A86473;

  --serif: "Chillen", "Fraunces", Georgia, serif;
  --sans: "Agrandir", "Archivo", system-ui, sans-serif;

  --radius: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); z-index: 100; background: var(--verde-hondo); color: #fff; padding: .6em 1em; border-radius: 99px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rosa-hondo); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografía ---------- */
.display, .title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--tinta);
}
.display { font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
.title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: .55em; }
.display em, .title em { font-style: italic; color: var(--verde-hondo); }
.title--light, .title--light em { color: #fff; }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rosa-hondo);
  margin-bottom: 1.4em;
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(1.02rem, 1.2vw, 1.18rem); color: var(--gris); max-width: 34em; margin-top: 1.6em; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--tinta);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1em 1.7em;
  border-radius: 999px;
  font: 500 .95rem/1 var(--sans);
  font-stretch: 112%;
  text-decoration: none;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), color .4s var(--ease-out), border-color .4s;
  will-change: transform;
}
/* relleno que sube desde abajo al pasar el cursor */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--rosa));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn--sm { padding: .75em 1.25em; font-size: .85rem; }
.btn--verde { --bg: var(--verde-hondo); --fg: #fff; --fill: var(--rosa-hondo); }
.btn--ghost { border-color: rgba(60, 60, 60, .25); --fill: var(--verde-claro); }
.btn--blanco { --bg: #fff; --fg: var(--verde-hondo); --fill: var(--rosa-claro); }
.btn--ghost-light { --fg: #fff; border-color: rgba(255, 255, 255, .55); --fill: rgba(255, 255, 255, .18); }

/* ---------- Logo (wordmark recoloreado con máscara: solo verde, rosa o blanco) ---------- */
.wordmark {
  display: block;
  aspect-ratio: 1489 / 249;
  -webkit-mask: url("../logo/wordmark-blanco.png") center / contain no-repeat;
          mask: url("../logo/wordmark-blanco.png") center / contain no-repeat;
}
.wordmark--verde { background: var(--verde); }
.wordmark--rosa { background: var(--rosa); }
.wordmark--blanco { background: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(251, 246, 241, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(60, 60, 60, .06);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); align-items: center; font-size: .9rem; }
.nav__links--right { justify-content: flex-end; }
.nav__links a:not(.btn) { text-decoration: none; position: relative; padding-block: .3em; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rosa-hondo); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__brand { display: block; width: clamp(170px, 18vw, 240px); }
.nav__toggle { display: none; }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__inner { grid-template-columns: 44px 1fr 44px; }
  .nav__links { display: none; }
  .nav__brand { grid-column: 2; justify-self: center; width: 190px; }
  .nav__toggle {
    grid-column: 3; display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .nav__toggle span:not(.sr) { width: 24px; height: 1.5px; background: var(--tinta); transition: transform .4s var(--ease-out); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__mobile {
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    padding: 28px var(--gutter) 36px;
    background: var(--crema);
    font-family: var(--serif); font-size: 1.6rem;
    border-bottom: 1px solid rgba(60, 60, 60, .08);
  }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile a:not(.btn) { text-decoration: none; }
  .nav__mobile .btn { font-size: 1rem; margin-top: 8px; }
}

/* ---------- Fondo fluido (inspirado en el moodboard del manual) ---------- */
.fluid { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
  position: absolute; display: block;
  width: 46vmax; height: 46vmax;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(60px);
  opacity: .55;
  animation: morph 18s var(--ease-soft) infinite alternate, drift 26s ease-in-out infinite alternate;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 1.6s var(--ease-out);
}
.blob--verde { background: var(--verde); top: -18vmax; right: -12vmax; }
.blob--rosa { background: var(--rosa); bottom: -22vmax; left: -14vmax; animation-delay: -6s, -4s; opacity: .45; }
.blob--salvia { background: var(--verde-claro); top: 30%; left: 30%; width: 30vmax; height: 30vmax; animation-delay: -10s, -12s; }
.blob--durazno { background: var(--rosa-claro); top: -10vmax; left: 10%; width: 26vmax; height: 26vmax; animation-delay: -3s, -8s; opacity: .7; }

@keyframes morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50%  { border-radius: 64% 36% 41% 59% / 58% 62% 38% 42%; }
  100% { border-radius: 36% 64% 52% 48% / 37% 49% 51% 63%; }
}
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(4vmax, -3vmax) rotate(40deg) scale(1.08); }
  100% { transform: translate(-3vmax, 4vmax) rotate(-20deg) scale(.95); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 110px; padding-bottom: 80px;
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }

.hero__photo { position: relative; margin: 0; }
.hero__frame {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -40px rgba(86, 117, 106, .55);
  clip-path: inset(100% 0 0 0 round 999px 999px var(--radius) var(--radius));
  transition: clip-path 1.6s var(--ease-out) .25s;
}
.hero__frame > img:first-child { width: 100%; height: 112%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); transition: transform 2.2s var(--ease-out) .25s; }
.hero__mark {
  position: absolute; right: 7%; bottom: 6%;
  width: 13%;
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease-out) 1.4s, transform .8s var(--ease-out) 1.4s;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
}
.is-loaded .hero__frame { clip-path: inset(0 0 0 0 round 999px 999px var(--radius) var(--radius)); }
.is-loaded .hero__frame > img:first-child { transform: scale(1); }
.is-loaded .hero__mark { opacity: .95; transform: none; }

.badge {
  position: absolute; left: -14%; bottom: 10%;
  width: clamp(110px, 12vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--crema); border-radius: 50%;
  box-shadow: 0 18px 40px -20px rgba(60, 60, 60, .35);
  opacity: 0; scale: .6;
  transition: opacity .8s var(--ease-out) 1.1s, scale 1s var(--ease-out) 1.1s;
}
.is-loaded .badge { opacity: 1; scale: 1; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font: 500 12.5px var(--sans); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; fill: var(--verde-hondo); }
.badge img { width: 26%; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border: 1px solid rgba(60, 60, 60, .35); border-radius: 99px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--rosa-hondo);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { max-width: 300px; width: 62%; justify-self: center; order: -1; }
  .badge { left: -12%; bottom: 6%; width: 100px; }
  .hero__copy { text-align: center; }
  .hero__copy .eyebrow::before { display: none; }
  .hero__ctas { justify-content: center; }
  .lead { margin-inline: auto; }
  .scroll-cue { display: none; }
}

/* ---------- Texto dividido por palabras ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + var(--d, 0s));
}
[data-split].is-in .w > span { transform: none; }

/* ---------- Reveals ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* La máscara va en la imagen interna: un clip-path al 100% en el propio elemento
   lo haría invisible para el IntersectionObserver */
[data-reveal="mask"] { opacity: 1; transform: none; }
[data-reveal="mask"] > img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-out) var(--d, 0s);
}
[data-reveal="mask"].is-in > img { clip-path: inset(0 0 0 0); }

/* Inclinación 3D con el cursor (solo cuando ya entró en pantalla) */
[data-tilt].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-tilt].is-tilting { transition: transform .25s ease-out, opacity 1s var(--ease-out), box-shadow .6s var(--ease-out); }

/* ---------- Marquesina ---------- */
.marquee {
  background: var(--verde); color: #fff;
  overflow: hidden; padding-block: 22px;
  rotate: -1.2deg; margin: -10px -2vw 0; position: relative; z-index: 2;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-style: italic;
  display: flex; align-items: center; white-space: nowrap; padding-inline: .9em;
}
.marquee li::after {
  content: ""; width: .55em; height: .55em; margin-left: 1.8em;
  background: url("../logo/isotipo-blanco.png") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre mí ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding-bottom: 18%; }
.about__photo { overflow: hidden; border-radius: var(--radius); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { aspect-ratio: 4 / 5; width: 82%; }
.about__photo--main img { height: 116%; }
.about__photo--small {
  position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3;
  border: 8px solid var(--crema);
}
.about__photo--small img { object-position: 45% 30%; }
.about__copy p { color: var(--gris); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.4em; padding-top: 2em; border-top: 1px solid rgba(60, 60, 60, .12); }
.stats strong { display: block; font-family: var(--serif); font-weight: 350; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--rosa-hondo); }
.stats span { display: block; font-size: .82rem; line-height: 1.4; margin-top: .6em; color: var(--gris); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { gap: 14px; }
}

/* ---------- Frase con scroll ---------- */
.quote { background: linear-gradient(180deg, var(--crema), #F4ECE6); }
.quote__text {
  font-family: var(--serif); font-weight: 350; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.18;
  max-width: 22em; margin: 0 auto; text-align: center;
}
.quote__text .q { color: var(--tinta); opacity: .16; transition: opacity .3s linear, color .3s linear; }
.quote__text .q.on { opacity: 1; }

/* ---------- Servicios ---------- */
.section__head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1000px; }
.card {
  --tint: var(--verde);
  position: relative; overflow: hidden;
  padding: 32px 26px 30px; border-radius: var(--radius);
  background: #fff; min-height: 330px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(60, 60, 60, .06);
  transform-style: preserve-3d;
  transition: box-shadow .6s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 90%; aspect-ratio: 1;
  background: var(--tint); border-radius: 50%; opacity: .22;
  transition: transform 1s var(--ease-out), opacity .6s;
}
.card:hover { box-shadow: 0 40px 60px -40px rgba(60, 60, 60, .35); }
.card:hover::before { transform: scale(2.6); opacity: .28; }
.card--verde { --tint: var(--verde); }
.card--rosa { --tint: var(--rosa); }
.card--salvia { --tint: var(--verde-claro); }
.card--durazno { --tint: var(--rosa-claro); }
.card > * { position: relative; }
.card__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--rosa-hondo); }
.card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.12; margin: auto 0 .6em; padding-top: 2.4em; }
.card p { font-size: .92rem; color: var(--gris); margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card h3 { padding-top: 1.4em; } }

/* ---------- Paso a paso ---------- */
.steps { background: var(--verde-claro); }
.steps__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.steps__media { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.steps__media img { width: 100%; height: 116%; object-fit: cover; }
.steps__list { counter-reset: paso; position: relative; }
.steps__list li { counter-increment: paso; position: relative; padding: 0 0 2em 4.2em; }
.steps__list li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: 0; top: -.1em;
  width: 2.8em; height: 2.8em; border-radius: 50%;
  display: grid; place-items: center;
  font: italic 1rem var(--serif); color: var(--verde-hondo);
  background: var(--crema);
}
.steps__list li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.4em; top: 2.9em; bottom: .2em; width: 1px;
  background: var(--verde-hondo); opacity: .35;
  transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--ease-out) .3s;
}
.steps__list li.is-in::after { transform: scaleY(1); }
.steps__list h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .3em; }
.steps__list p { color: var(--tinta); opacity: .85; margin: 0; }
@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; }
  .steps__media { max-width: 380px; width: 80%; justify-self: center; }
}

/* ---------- Experiencia ---------- */
.timeline { position: relative; max-width: 860px; margin-left: auto; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px;
}
.timeline::before { background: rgba(60, 60, 60, .1); }
.timeline::after {
  background: linear-gradient(var(--verde), var(--rosa));
  transform-origin: top; transform: scaleY(var(--progress, 0));
}
.timeline__item { position: relative; padding: 0 0 clamp(36px, 5vw, 56px) clamp(32px, 5vw, 64px); }
.timeline__item::before {
  content: ""; position: absolute; left: -6px; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--crema); border: 2px solid var(--rosa);
  transition: background-color .5s, transform .6s var(--ease-out);
}
.timeline__item.is-in::before { background: var(--rosa); transform: scale(1.15); }
.timeline__date { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa-hondo); margin-bottom: .5em; }
.timeline__item h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: .3em; }
.timeline__item p { color: var(--gris); max-width: 38em; margin: 0; }

/* ---------- Preguntas frecuentes ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid color-mix(in srgb, var(--verde) 45%, transparent); }
.faq__item { border-bottom: 1px solid color-mix(in srgb, var(--verde) 45%, transparent); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 1.3em 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  border: 1px solid var(--verde); color: var(--verde-hondo); font-size: 1.1rem; line-height: 1;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--verde-hondo); color: #fff; }
.faq__item summary:focus-visible { outline: 2px solid var(--rosa-hondo); outline-offset: 4px; border-radius: 4px; }
.faq__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.25; margin: 0; }
.faq__item p { color: var(--gris); max-width: 40em; margin: 0 0 1.4em; }
.faq__item a { color: var(--verde-hondo); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Libro ---------- */
.book { background: var(--rosa-claro); overflow: hidden; }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.book__cover { perspective: 1200px; justify-self: center; width: min(320px, 72vw); }
.book__face {
  aspect-ratio: 3 / 4.2; border-radius: 6px 18px 18px 6px;
  background: linear-gradient(150deg, var(--verde) 0%, #6f9183 60%, var(--verde-hondo) 100%);
  color: #fff; padding: 12% 10%;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: inset 10px 0 18px -10px rgba(0, 0, 0, .35), 30px 40px 60px -30px rgba(86, 60, 66, .5);
  transform: rotateY(-16deg) rotateX(4deg);
  transition: transform 1s var(--ease-out);
  position: relative;
}
.book__face img { position: absolute; top: 12%; left: 50%; translate: -50% 0; width: 34%; opacity: .95; }
.book__face span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.book__face strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08; margin-top: .3em; }
.book__cover:hover .book__face { transform: rotateY(-4deg) rotateX(2deg) translateY(-6px); }
.book__copy p { color: var(--tinta); }
.book__isbn { font-size: .8rem; letter-spacing: .12em; color: var(--gris) !important; }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(100px, 14vw, 180px); }
.cta__bg {
  position: absolute; inset: -15% 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(86, 117, 106, .55), rgba(86, 117, 106, .78)),
    url("../img/fluido.jpg") center / cover no-repeat;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__logo { width: clamp(180px, 22vw, 260px); margin-bottom: 2.4em; }
.cta p { font-size: 1.1rem; opacity: .95; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--verde); color: #fff; text-align: center; padding: 56px 0 40px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer .wordmark { width: min(300px, 70vw); margin-bottom: 1.2em; }
.footer p { margin: 0; font-size: .9rem; }
.footer__small { opacity: .8; font-size: .78rem !important; margin-top: .8em !important; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-hondo); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(60, 60, 60, .5);
  transform: scale(0); transition: transform .6s var(--ease-out);
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--verde); animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal="mask"] > img, .w > span,
  .hero__frame, .hero__frame > img:first-child, .hero__mark, .badge, .wa-float {
    opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important;
  }
  .steps__list li::after { transform: none; }
  .timeline::after { transform: none; }
  .quote__text .q { opacity: 1; }
}
