/* Crea Vida — hoja de estilos
   Paleta tomada del árbol del logo: oliva, amarillo, coral y marrón sobre papel cálido. */

:root {
  --ink: #1d1712;
  --ink-2: #2a221b;
  --paper: #f6f0e6;
  --paper-2: #ede3d2;
  --white: #fffdf9;
  --muted: #6b5e52;
  --line: rgba(29, 23, 18, .12);
  --line-light: rgba(255, 253, 249, .14);

  --olive: #a09b2c;
  --olive-d: #6b6716;
  --yellow: #fcd433;
  --coral: #ff6f3e;
  --coral-d: #c2461c;
  --brown: #885c36;
  --wa: #1f9d55;
  --wa-d: #177a42;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 6px;
  --r: 14px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --sec: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--brown); }
.sec--dark .display em, .family .display em, .cta-band .display em { color: var(--yellow); }
.h-md { font-size: clamp(2rem, 3.6vw, 3rem); }
.h-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin-bottom: .6em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive-d); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.sec--dark .eyebrow, .family .eyebrow, .cta-band .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch; font-weight: 300; }

/* Hoja del árbol como acento */
.leaf {
  display: inline-block; flex: none;
  width: 18px; height: 18px;
  border-radius: 0 100% 0 100%;
  background: var(--olive);
  transform: rotate(-12deg);
}
.leaf--yellow { background: var(--yellow); }
.leaf--coral { background: var(--coral); }
.leaf--brown { background: var(--brown); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 1rem; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 1.25em; height: 1.25em; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--brown); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--yellow); }
.btn--line { border-color: rgba(255, 253, 249, .5); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--ink); }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--coral); padding-bottom: 2px;
}
.link .i { transition: transform .25s var(--ease); }
.link:hover .i { transform: translateX(4px); }
.sec--dark .link, .family .link { color: var(--white); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* El desenfoque va en un pseudo-elemento: en el propio header crearía un contenedor
   para el menú móvil (position: fixed) y lo recortaría a la altura del header. */
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 240, 230, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
body.nav-open .hdr::before { background: var(--paper); }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; color: var(--ink); flex: none; }
.logo { display: block; height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a { display: block; padding: 10px 12px; font-size: .97rem; text-decoration: none; border-radius: 999px; transition: background .2s; }
.nav__list > li > a:hover, .nav__list > li > a[aria-current] { background: var(--paper-2); }
.sub-toggle { display: none; }
.sub {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border-radius: var(--r); padding: 8px;
  box-shadow: 0 24px 48px -20px rgba(29, 23, 18, .35); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub a { border-radius: var(--r-sm); padding: 9px 12px; }
.sub a:hover { background: var(--paper); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav__foot { display: none; }
.hdr__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--ink); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper);
    padding: 16px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__list > li > a { flex: 1; font-family: var(--serif); font-size: 1.75rem; padding: 14px 0; border-radius: 0; }
  .nav__list > li > a:hover, .nav__list > li > a[aria-current] { background: none; color: var(--brown); }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--paper-2); border-radius: 50%; }
  .sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; }
  .sub.is-open { display: block; }
  .nav__foot { display: block; padding-top: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .logo { height: 36px; }
  .hide-sm { display: none; }
  .hdr__cta .btn--wa { padding: 8px 12px; }
}
@media (max-width: 380px) {
  .hdr__cta .btn--wa span { display: none; }
}

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--top0 { padding-top: 0; }
.sec--paper { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.sec__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.sec__head--split > div { max-width: 760px; }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head--center .eyebrow { justify-content: center; }
.sec__intro { color: var(--muted); max-width: 52ch; margin-top: 20px; font-size: 1.08rem; }
.sec--dark .sec__intro { color: rgba(246, 240, 230, .72); }
.sec__head--split .sec__intro { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(3rem, 7.4vw, 6.4rem); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .95rem; color: var(--muted); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--olive-d); }
.stars { display: inline-flex; color: #e9a800; }
.stars .i { width: 16px; height: 16px; color: inherit; }
.hero__media { position: relative; aspect-ratio: 4 / 4.6; }
.hero__media figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--r-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__main { inset: 0 0 10% 12%; border-radius: 220px 220px var(--r-lg) var(--r-lg) !important; }
.hero__small { border: 6px solid var(--paper); }
.hero__small--a { width: 38%; aspect-ratio: 1; left: 0; bottom: 0; }
.hero__small--b { width: 34%; aspect-ratio: 3 / 4; right: -4%; bottom: -6%; }
.hero__leaf { position: absolute; width: 42px; height: 42px; }
.hero__leaf--1 { top: 6%; left: 2%; }
.hero__leaf--2 { top: 24%; left: -2%; width: 26px; height: 26px; transform: rotate(40deg); }
.hero__leaf--3 { top: -2%; right: 18%; width: 30px; height: 30px; transform: rotate(80deg); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; aspect-ratio: 1 / 1; }
}

/* Franja de ayuda urgente */
.sos { background: var(--yellow); }
.sos__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 18px; }
.sos p { margin: 0; }
.sos a { font-weight: 600; }
.sos__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }

/* ---------- Sustancias ---------- */
.subs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sub-card {
  display: flex; align-items: center; gap: 18px; padding: 28px 8px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .25s, padding .3s var(--ease);
}
.subs li:not(:nth-child(3n)) .sub-card { border-right: 1px solid var(--line); }
.sub-card__name { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; flex: 1; }
.sub-card__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, color .25s, transform .3s var(--ease); }
.sub-card:hover { background: var(--white); padding-inline: 24px; }
.sub-card:hover .sub-card__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .subs { grid-template-columns: 1fr 1fr; }
  .subs li .sub-card { border-right: 0 !important; }
  .subs li:nth-child(odd) .sub-card { border-right: 1px solid var(--line) !important; }
}
@media (max-width: 560px) {
  .subs { grid-template-columns: 1fr; }
  .subs li .sub-card { border-right: 0 !important; padding-block: 20px; }
}

/* ---------- Enfoque ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .display { margin-bottom: 24px; }
.about__copy > p { color: var(--muted); }
.goals { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 32px 0 36px; }
.goals li { display: flex; gap: 14px; align-items: flex-start; }
.goals .leaf { margin-top: 5px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; } }

/* ---------- Fases ---------- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: f; position: relative; }
.phases::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-light); }
.phase { --c: var(--olive); }
.phase--yellow { --c: var(--yellow); }
.phase--coral { --c: var(--coral); }
.phase--brown { --c: #b07a4c; }
.phase__card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; position: relative; }
.phase__num {
  align-self: flex-start; background: var(--c); color: var(--ink);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; position: relative; z-index: 1;
}
.phase__media { display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.phase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(.9); }
.phase__card:hover img { transform: scale(1.05); filter: none; }
.phase__stage { color: var(--c); font-size: .9rem; font-weight: 500; }
.phase__name { font-family: var(--serif); font-size: 1.9rem; line-height: 1; margin-top: -6px; }
.phases__foot { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: rgba(246, 240, 230, .8); }
.phases__foot .i { color: var(--yellow); }
@media (max-width: 1000px) {
  .phases { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .phase { scroll-snap-align: start; }
  .phases::before { display: none; }
}
@media (max-width: 560px) { .phases { grid-auto-columns: 74%; } }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 64px 1fr 160px 52px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .3s var(--ease), background .3s;
}
.svc__n { font-family: var(--serif); font-size: 1.4rem; color: var(--olive-d); }
.svc__t { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; }
.svc__d { display: block; color: var(--muted); margin-top: 4px; }
.svc__img { display: block; height: 96px; border-radius: var(--r); overflow: hidden; opacity: 0; transform: scale(.9); transition: opacity .35s, transform .35s var(--ease); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, color .25s; }
.svc:hover { padding-inline: 16px; background: var(--white); }
.svc:hover .svc__img { opacity: 1; transform: none; }
.svc:hover .svc__go { background: var(--coral); border-color: var(--coral); color: var(--ink); }
@media (max-width: 760px) {
  .svc { grid-template-columns: 40px 1fr 44px; gap: 14px; }
  .svc__img { display: none; }
  .svc__go { width: 44px; height: 44px; }
}

/* ---------- Bloque familias ---------- */
.family { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); color: var(--paper); }
.family__media { min-height: 420px; }
.family__media img { width: 100%; height: 100%; object-fit: cover; }
.family__copy { padding: var(--sec) clamp(24px, 6vw, 96px); align-self: center; max-width: 680px; }
.family__copy > p { color: rgba(246, 240, 230, .78); margin: 24px 0 32px; font-size: 1.08rem; }
.family__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.family--rev .family__media { order: 2; }
@media (max-width: 900px) {
  .family { grid-template-columns: 1fr; }
  .family__media { min-height: 0; aspect-ratio: 16 / 10; }
  .family--rev .family__media { order: 0; }
}

/* ---------- Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 230px); gap: 12px; }
.mosaic__item { display: block; border-radius: var(--r); overflow: hidden; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item--1 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
}

/* ---------- Testimonios ---------- */
.ratings { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.rating { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .92rem; color: var(--muted); }
.rating strong { font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.quote { margin: 0; background: var(--white); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; margin: 0; }
.quote blockquote p::before { content: '“'; display: block; font-size: 3.4rem; line-height: .6; color: var(--coral); margin-bottom: 8px; }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 500; }
.quote--hl { background: var(--olive); }
.quote--hl blockquote p::before { color: var(--ink); }
.quote--hl figcaption { color: rgba(29, 23, 18, .75); }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; gap: 18px; }
.news-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover img { transform: scale(1.04); }
.news-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.12; margin-bottom: 10px; }
.news-card h3 a { text-decoration: none; background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.news-card:hover h3 a { background-size: 100% 1.5px; }
.news-card__body > p:last-child { color: var(--muted); margin: 0; }
.meta { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.tag { background: var(--ink); color: var(--paper); padding: 3px 10px; border-radius: 999px; font-size: .76rem; letter-spacing: .04em; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.news-list__item:first-child { grid-column: 1 / -1; }
.news-card--big { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.news-card--big h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.news-card--big .news-card__media { aspect-ratio: 16 / 10; }
.news-list__item[hidden] { display: none; }
@media (max-width: 900px) {
  .news-grid, .news-list { grid-template-columns: 1fr 1fr; }
  .news-card--big { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) { .news-grid, .news-list { grid-template-columns: 1fr; } }

/* ---------- Convenios ---------- */
.convenios { text-align: center; }
.convenios .eyebrow { justify-content: center; }
.convenios__t { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin-bottom: 28px; }
.convenios__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.convenios__list li { border: 1px solid var(--line); background: var(--white); padding: 12px 22px; border-radius: 999px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap > div:first-child { position: sticky; top: 110px; }
.faq-wrap > div:first-child > p { color: var(--muted); margin: 20px 0 24px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.15rem; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease), background .3s; }
.faq__item[open] summary .i { transform: rotate(180deg); background: var(--yellow); }
.faq__a { padding: 0 52px 22px 0; color: var(--muted); }
.faq__a p { margin: 0; }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap > div:first-child { position: static; }
}

/* ---------- CTA final ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 400px;
  background: url('/assets/brand/arbol-crea-vida.svg') no-repeat center / contain; opacity: .14; pointer-events: none;
}
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band__in > div:first-child { flex: 1 1 420px; max-width: 640px; }
.cta-band p { color: rgba(246, 240, 230, .75); margin: 20px 0 0; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera de páginas internas ---------- */
.phead { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 88px); }
.phead .display { max-width: 18ch; margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5rem); }
.phead .lead { max-width: 60ch; }
.phead__actions { margin-top: 28px; }
.phead--404 { padding-block: var(--sec); }
.phead--404 .display { margin-inline: auto; }
.phead--404 .lead { margin-inline: auto; }
.crumbs { margin-bottom: clamp(24px, 4vw, 48px); font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Pasos / tarjetas ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--white); border-radius: var(--r-lg); padding: 32px 28px; }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); font-weight: 600; margin-bottom: 24px; }
.step:nth-child(2) .step__n { background: var(--olive); }
.step:nth-child(3) .step__n { background: var(--coral); }
.step:nth-child(4) .step__n { background: var(--brown); color: var(--white); }
.step h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.sede-rows { display: grid; gap: 16px; }
.sede-row { --c: var(--olive); display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; padding: 16px; border: 1px solid var(--line-light); border-radius: var(--r-lg); }
.sede-row.phase--yellow { --c: var(--yellow); } .sede-row.phase--coral { --c: var(--coral); } .sede-row.phase--brown { --c: #b07a4c; }
.sede-row__media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; }
.sede-row__media img { width: 100%; height: 100%; object-fit: cover; }
.sede-row__f { color: var(--c); font-weight: 500; margin-bottom: 4px; }
.sede-row h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 8px; }
.sede-row p:last-child { color: rgba(246, 240, 230, .75); margin: 0; }
@media (max-width: 760px) { .sede-row { grid-template-columns: 1fr; gap: 16px; } }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; color: var(--muted); flex: 1; }
.card__body .link { margin-top: auto; align-self: flex-start; }
.card__t { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; color: var(--ink); }
.card--text { padding: 32px 28px; gap: 14px; color: var(--muted); }
.card--text .leaf { width: 26px; height: 26px; }
.card--text .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .cards3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: grid; gap: 28px; justify-items: start; }
.point { display: flex; gap: 18px; }
.point .leaf { margin-top: 8px; width: 22px; height: 22px; }
.point h2 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; margin-bottom: 6px; }
.point p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16 / 11; }
}

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills--center { justify-content: center; margin-top: 24px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s; }
.pills a:hover { background: var(--ink); color: var(--paper); }

.box { background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.checks { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--wa); margin-top: 4px; }

.prose { font-size: 1.1rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: .5em; }
.prose a { color: var(--brown); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose li::marker { color: var(--coral-d); }

/* ---------- Sedes ---------- */
.sedes { display: grid; gap: clamp(56px, 8vw, 112px); }
.sede { --c: var(--olive); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 110px; }
.sede.phase--yellow { --c: #d9ab00; } .sede.phase--coral { --c: var(--coral-d); } .sede.phase--brown { --c: var(--brown); }
.sede__f { display: inline-block; color: var(--c); font-weight: 600; border-bottom: 2px solid var(--c); margin-bottom: 16px; }
.sede__info .display { margin-bottom: 16px; }
.sede__info p { color: var(--muted); }
.sede__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sede__photos figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.sede__photos img { width: 100%; height: 100%; object-fit: cover; }
.sede__photos--1 { grid-template-columns: 1fr; }
.sede__photos--3 figure:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
.sede__photos--4 figure:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
.sede__photos--4 figure:nth-child(4) { display: none; }
.sede:nth-child(even) .sede__info { order: 2; }
@media (max-width: 900px) {
  .sede { grid-template-columns: 1fr; }
  .sede:nth-child(even) .sede__info { order: 0; }
}

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .95rem; transition: background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { list-style: none; columns: 4 240px; column-gap: 12px; margin-bottom: 32px; }
.gallery__item { break-inside: avoid; margin-bottom: 12px; }
.gallery__item[hidden] { display: none; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gallery__btn img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.gallery__btn:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20, 16, 12, .94); color: var(--paper); }
.lightbox::backdrop { background: rgba(20, 16, 12, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--r-sm); }
.lightbox figcaption { text-align: center; margin-top: 14px; color: rgba(246, 240, 230, .8); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(246, 240, 230, .12); color: var(--paper); display: grid; place-items: center; }
.lightbox button:hover { background: rgba(246, 240, 230, .25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .gallery { columns: 2; column-gap: 8px; }
  .gallery__item { margin-bottom: 8px; }
  .lightbox__nav { top: auto !important; bottom: 20px; transform: none !important; }
}

/* ---------- Familias ---------- */
.guide { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: g; }
.guide__item { background: var(--white); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.guide__item .leaf { width: 28px; height: 28px; }
.guide__item h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin-bottom: 8px; }
.guide__item p { color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--r-lg); overflow: hidden; }
.team li { background: var(--ink); padding: 32px 24px; }
.team h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 10px; color: var(--yellow); }
.team p { margin: 0; color: rgba(246, 240, 230, .75); }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__info { display: grid; gap: 12px; }
.contact__card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--white); border-radius: var(--r); text-decoration: none; border: 1px solid var(--line); overflow-wrap: anywhere; }
.contact__card .i { width: 28px; height: 28px; color: var(--brown); }
.contact__card small { display: block; color: var(--muted); font-size: .85rem; }
.contact__card strong { font-weight: 500; font-size: 1.1rem; }
a.contact__card:hover { border-color: var(--ink); }
.contact__card--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.contact__card--wa .i, .contact__card--wa small { color: #fff; }
.form { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.form .h-sm { margin: 0; }
.form .small { margin: 0; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .95rem; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--coral-d); }
.form__err { color: var(--coral-d); margin: 0; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background .2s, color .2s; }
.social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.social--dark a { border-color: var(--line); }
.map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(.35) sepia(.12); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Autoevaluación ---------- */
.quiz { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 24px; justify-items: start; margin-bottom: 20px; }
.quiz__q { border: 0; padding: 0 0 24px; margin: 0; border-bottom: 1px solid var(--line); width: 100%; }
.quiz__q legend { display: flex; gap: 14px; font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; padding: 0; }
.quiz__q legend span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: .9rem; }
.quiz__res { width: 100%; padding: 24px; border-radius: var(--r); background: var(--paper); }
.quiz__res h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 8px; }
.quiz__res.is-high { background: #ffe9df; }

/* ---------- Artículo ---------- */
.post__head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 40px; }
.post__head .display { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.post__img { margin: 0 auto 56px; max-width: 1180px; }
.post__img img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-lg); }
.post__img figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.post__body { padding-bottom: var(--sec); }
.post__cta { margin-top: 48px; padding: 28px; border-radius: var(--r-lg); background: var(--paper-2); display: grid; gap: 16px; justify-items: start; }
.post__cta p { margin: 0; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: .95rem; color: var(--muted); }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(246, 240, 230, .82); padding-top: clamp(56px, 7vw, 96px); font-size: .97rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.brand--ftr { color: var(--paper); }
.brand--ftr .logo { height: 54px; }
.ftr__tag { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin: 20px 0 16px; }
.ftr__help { font-size: .9rem; color: rgba(246, 240, 230, .65); max-width: 40ch; }
.ftr__help a { color: var(--yellow); }
.ftr h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 600; margin-bottom: 18px; }
.ftr ul { list-style: none; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--white); text-decoration: underline; }
.ftr__contact li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 10px; }
.ftr__bottom { border-top: 1px solid var(--line-light); padding-block: 24px; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: .87rem; color: rgba(246, 240, 230, .55); }
.ftr__bottom p { margin: 0; }
@media (max-width: 1000px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr__top { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 500;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(23, 122, 66, .6);
  transform: translateY(120%); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.fab .i { width: 26px; height: 26px; }
.fab.is-visible { transform: none; opacity: 1; }
.fab:hover { background: var(--wa-d); }
@media (max-width: 600px) { .fab span { display: none; } .fab { padding: 14px; } }

/* ---------- Animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .hdr, .fab, .cta-band, .ftr, .sos { display: none !important; }
  body { background: #fff; }
}

/* ---------- Próximamente en Salto ---------- */
.pill-new {
  display: inline-block; flex: none;
  background: var(--coral); color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.hero__new { gap: 10px; }
.hero__new a { color: var(--ink); font-weight: 500; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.salto { background: var(--yellow); padding-block: clamp(40px, 6vw, 72px); scroll-margin-top: 96px; }
.salto__in { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.salto .pill-new { background: var(--ink); color: var(--yellow); }
.salto__copy { flex: 1 1 420px; }
.salto__copy .display { margin-bottom: 10px; }
.salto__copy .display em { color: var(--brown); }
.salto__copy p { margin: 0; max-width: 60ch; }
.salto__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.salto .link { color: var(--ink); border-color: var(--ink); }
.salto__data { list-style: none; display: grid; gap: 10px; margin-top: 20px; font-weight: 500; }
.salto__data li { display: flex; align-items: center; gap: 10px; }
.salto__data a { text-decoration: none; }
.salto__copy .pill-new { margin-bottom: 16px; }
.salto__map { flex: 1 1 360px; height: 300px; border: 0; border-radius: var(--r); background: var(--paper); }
