/* ============================================================
   Psicólogos y Bienestar — Maqueta homepage
   Sistema de diseño v1.0 (tokens del documento de referencia)
   ============================================================ */

:root {
  --color-bg: #f8f5ef;
  --color-surface: #fcfaf6;
  --color-sand: #efe6db;
  --color-sage: #e4e7dc;
  --color-sage-strong: #dde1d5;
  --color-primary: #224b49;
  --color-primary-hover: #193c3a;
  --color-primary-active: #143331;
  --color-ink: #172a30;
  --color-text: #555d5b;
  --color-muted: #5e6661;
  --color-accent: #bc6243;        /* decorativo: trazos, iconos, fondos */
  --color-accent-text: #a24f30;   /* texto: ≥ 4,5:1 sobre todos los fondos claros */
  --color-line: #e3d4c4;
  --color-on-primary: #f8f5ef;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --text-h1: clamp(2.5rem, 1.55rem + 3.2vw, 4.5rem);
  --text-h2: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  --text-h3: clamp(1.3125rem, 1.2rem + .35vw, 1.5rem);
  --text-body: clamp(1rem, .95rem + .2vw, 1.125rem);

  --container-max: 77.5rem;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(3rem, 6vw, 6.5rem);
  --radius-button: .5rem;
  --radius-accordion: .625rem;
  --radius-pill: 999px;
  --transition-ui: 180ms ease;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.03; letter-spacing: -.02em; }
h2 { font-size: var(--text-h2); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: var(--text-h3); line-height: 1.18; letter-spacing: -.015em; }
p { margin: 0; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 1.25rem;
}
.section-label.center { text-align: center; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  white-space: nowrap;
  min-height: 3.25rem;
  padding: .8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font: 600 1rem/1.25 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-ui), transform var(--transition-ui);
}
.btn .arrow { transition: transform var(--transition-ui); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }

.btn-pill { border-radius: var(--radius-pill); }

.btn-light { background: var(--color-on-primary); color: var(--color-primary); }
.btn-light:hover { background: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(248, 245, 239, .55);
  color: var(--color-on-primary);
}
.btn-outline-light:hover { border-color: var(--color-on-primary); }
.btn-outline-light svg { width: 1.25rem; height: 1.25rem; }

.link-editorial {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link-accent {
  color: var(--color-accent-text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition-ui);
}
.link-accent:hover { color: #8a4227; }
.link-accent span { transition: transform var(--transition-ui); }
.link-accent:hover span { transform: translateX(3px); }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding: 1.4rem 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.brand-mark { width: 56px; height: 56px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--color-ink);
  letter-spacing: -.01em;
}
.main-nav {
  display: flex;
  gap: 2.4rem;
}
.main-nav a {
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-ui);
}
.main-nav a:hover { color: var(--color-primary); }

/* ---------- Ramas botánicas (generadas por js/hojas.js) ---------- */
svg.botanical { overflow: visible; pointer-events: none; }
svg.botanical .bt-root, svg.botanical .bt-sway, svg.botanical .bt-gust { will-change: transform; }

/* ---------- Menú móvil ---------- */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(34, 75, 73, .2);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.8px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
.main-nav a[aria-current="page"] { color: var(--color-accent-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(661px, calc(78vh + 101px), 881px);
  display: flex;
  align-items: center;
  padding: calc(2rem + 101px) 0 4rem;
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  z-index: 0;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  clip-path: url(#curve-hero);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 30%;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.hero-slide:first-child { opacity: 1; visibility: visible; }
.hero-arcs, .hero-leaf { display: none; }
#hero-rama {
  position: absolute;
  left: 43%;
  bottom: -17px;
  width: clamp(260px, 21vw, 310px);
  z-index: 1;
  pointer-events: none;
}
#hero-rama .rama-svg { width: 100%; height: auto; display: block; }
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 44%; }
.hero-copy h1 { min-height: 3.15em; }
.hero-copy .hero-eyebrow,
.hero-copy h1,
.hero-copy .hero-sub { will-change: transform, opacity; }
.hero-eyebrow {
  font-size: .95rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  margin-top: 1.6rem;
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-top: 2.1rem;
}

/* ---------- Slider del hero ---------- */
.hero-slider-ui {
  position: absolute;
  right: clamp(1rem, 3vw, 2.4rem);
  bottom: 1.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .6rem;
  background: rgba(248, 245, 239, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 75, 73, .14);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(23, 42, 48, .10);
}
.hs-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color var(--transition-ui), color var(--transition-ui), transform var(--transition-ui);
}
.hs-btn:hover { background: var(--color-primary); color: var(--color-on-primary); }
.hs-btn:active { transform: scale(.92); }
.hs-btn svg { width: 1.15rem; height: 1.15rem; }
.hs-counter {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: 0 .35rem;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--color-ink);
  letter-spacing: .04em;
  user-select: none;
}
.hs-counter i { font-style: normal; opacity: .45; }
.hs-counter .hs-total { opacity: .6; font-size: .8rem; }
.hs-autoplay { position: relative; overflow: hidden; }
.hs-autoplay svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity var(--transition-ui), transform var(--transition-ui);
}
.hs-autoplay .hs-ic-play { opacity: 0; transform: scale(.6); }
.hs-autoplay.is-paused .hs-ic-pause { opacity: 0; transform: scale(.6); }
.hs-autoplay.is-paused .hs-ic-play { opacity: 1; transform: scale(1); }

/* ---------- Banda emocional ---------- */
.band-emotional {
  position: relative;
  padding: var(--section-space) 0;
  background: #f3eae0;
  overflow: hidden;
}
.band-photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 26%;
}
.band-photo img,
.band-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#curve-band);
}
.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 24% 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.band-title { grid-column: 2; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.band-aside { grid-column: 3; position: relative; }
.band-aside p { font-size: 1.05rem; line-height: 1.6; }
.band-aside .link-accent {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}

/* ---------- Servicios ---------- */
.services {
  position: relative;
  padding: var(--section-space) 0;
}
.services-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 37%;
  overflow: hidden;
  clip-path: url(#curve-services);
}
.services-photo img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 70% 50%; /* centra a la psicóloga dentro de la curva */
  will-change: transform;
}
.services-grid { position: relative; }
.services-intro { max-width: 46rem; margin-bottom: 3.2rem; }
.services-intro p { margin-top: 1rem; font-size: 1.1rem; }
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 60%;
}
.service {
  display: flex;
  gap: 1.3rem;
  padding: 1.9rem 2rem 1.9rem 0;
  border-top: 1px solid var(--color-line);
}
.service:nth-child(-n+2) { border-top: none; padding-top: .4rem; }
.service:nth-child(odd) { border-right: 1px solid var(--color-line); padding-right: 2.2rem; }
.service:nth-child(even) { padding-left: 2.2rem; }
.service-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-sand);
  display: grid;
  place-items: center;
}
.service-icon svg { width: 30px; height: 30px; }
.service-kids .service-icon,
.service-adults .service-icon,
.service-teen .service-icon,
.service-couple .service-icon,
.service-senior .service-icon { width: 88px; height: 88px; }
.service-kids .service-icon svg,
.service-adults .service-icon svg,
.service-teen .service-icon svg,
.service-couple .service-icon svg,
.service-senior .service-icon svg { width: 82px; height: 82px; }
.service h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.service p { font-size: .98rem; line-height: 1.5; margin-bottom: .7rem; }

/* ---------- Equipo ---------- */
.team {
  position: relative;
  display: flex;
  min-height: 480px;
  background: var(--color-sage); /* el salvia continúa bajo la curva del video */
}
.team-photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 52%;
}
.team-photo img,
.team-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#curve-team);
  display: block;
}
.team-content {
  flex: 1;
  margin-left: 50%;
  background: var(--color-sage);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative;
}
.team-content .container { width: auto; margin: 0 auto; padding-left: 0; }
.team-copy { max-width: 30rem; margin-right: var(--page-gutter); }
.team-copy p:not(.section-label) { margin: 1.4rem 0 2rem; font-size: 1.05rem; line-height: 1.6; }
.team-leaf {
  position: absolute;
  right: 0;
  bottom: -4px;   /* el tallo nace desde el borde inferior */
  height: 86%;
}
.team-leaf { width: auto; overflow: visible; pointer-events: none; }
.team-content { overflow: hidden; }

/* ---------- Proceso ---------- */
.process {
  position: relative;
  padding: var(--section-space) 0;
  overflow: hidden;
}
.process-shadow {
  position: absolute;
  inset: 0;
  background: url(img/sombras.webp) left center / 55% auto no-repeat;
  opacity: .14;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
  mask-image: linear-gradient(to right, #000 0%, transparent 60%);
}
.process .container { position: relative; }
.process h2 { max-width: 26ch; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3.5rem 0 3rem;
}
.step {
  padding: 0 2.4rem;
  border-left: 1px solid var(--color-line);
}
.step:first-child { border-left: none; padding-left: 0; }
.step { position: relative; cursor: default; }
.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-sage-strong);
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--color-ink);
  margin-bottom: 1.3rem;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: box-shadow .6s ease;
}
.step-num::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f6461 0%, var(--color-primary) 55%, #173634 100%);
  transform: scale(0);
  transition: transform .7s cubic-bezier(.2, .9, .2, 1.15);
  z-index: -1;
}
.step-num::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(188, 98, 67, .35);
  opacity: 0;
  transform: scale(.7);
  z-index: -2;
}
.step-ring {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  transform: rotate(-90deg);
  overflow: visible;
  pointer-events: none;
}
.step-ring circle { fill: none; stroke-width: 1.4; }
.ring-track { stroke: rgba(34, 75, 73, .12); }
.ring-draw {
  stroke: var(--color-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 296;
  stroke-dashoffset: 296;
  transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .25, 1);
}
.step-orbit {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.step-orbit i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50% 0 50% 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(188, 98, 67, .18);
}
.num-roll {
  position: relative;
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  transform: translateZ(18px);
}
.num-roll span {
  display: block;
  transition: transform .6s cubic-bezier(.7, 0, .2, 1), color .4s ease;
}
.num-b { color: var(--color-on-primary); font-style: italic; }
.step-petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 14px;
  margin: -7px 0 0 -4.5px;
  border-radius: 50% 0 50% 0;
  pointer-events: none;
  z-index: 3;
}
.step:hover .step-num::before,
.step:focus-within .step-num::before { transform: scale(1); }
.step:hover .step-num::after { animation: step-pulse 1.8s ease-out infinite; }
.step:hover .step-num { box-shadow: 0 18px 34px -14px rgba(34, 75, 73, .55); }
.step:hover .ring-draw { stroke-dashoffset: 0; }
.step:hover .step-orbit { opacity: 1; animation: step-orbit 3.6s linear infinite; }
.step:hover .num-roll span { transform: translateY(-100%); }
.step:hover h3 { color: var(--color-primary); }
.step h3 { transition: color .4s ease; }
.step:hover .step-arrow { transform: translateX(10px); }
.step-arrow { transition: transform .5s cubic-bezier(.2, .9, .2, 1.2); }
@keyframes step-orbit { to { transform: rotate(360deg); } }
@keyframes step-pulse {
  0% { opacity: .9; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .step-num::before, .ring-draw, .num-roll span { transition: none; }
  .step:hover .step-orbit, .step:hover .step-num::after { animation: none; }
}
.step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
  margin-bottom: .5rem;
}
.step p { font-size: 1rem; line-height: 1.5; }
.step-arrow {
  display: block;
  margin-top: 1rem;
  font-size: 1.4rem;
  color: var(--color-accent-text);
}

/* ---------- Modalidades ---------- */
.modalities {
  position: relative;
  display: flex;
  min-height: 460px;
}
.mod-photo-wrap {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44%;
}
.mod-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: url(#curve-mod);
}
.mod-photo img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
  transform-origin: 50% 50%;
}
.mod-content { will-change: transform; }
.mod-accent {
  position: absolute;
  left: 0;
  bottom: -3rem;
  width: 46%;
  height: 34%;
  background: var(--color-accent);
  border-radius: 0 999px 999px 0;
  z-index: -1;
}
.mod-content {
  margin-left: 50%;
  padding: var(--section-space) 0;
  max-width: 40rem;
}
.mod-content h2 { margin-bottom: 2.6rem; }
.mod-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.4rem;
}
.mod-col { border-left: 1px solid var(--color-line); padding-left: 2rem; }
.mod-col:first-child { border-left: none; padding-left: 0; }
.mod-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
}
.mod-col h3 svg { width: 1.4rem; height: 1.4rem; color: var(--color-primary); flex: 0 0 auto; }
.mod-col p { font-size: 1rem; line-height: 1.55; }
.mod-cols { position: relative; }
.mod-cols::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--color-line);
}
.mod-col { border: none; padding-left: 0; }
.mod-col:last-child { padding-left: 2rem; }

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  padding: var(--section-space) 0;
  overflow: hidden;
}
.faq-leaf {
  position: absolute;
  right: -1rem;
  bottom: -4px;
  height: 88%;
}
.faq .container { position: relative; }
.faq h2 { margin-bottom: 3rem; }
.faq-list { max-width: 62%; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-accordion);
  margin-bottom: .6rem;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 3.4rem;
  padding: 1.05rem 1.5rem;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
  flex: 0 0 auto;
  width: .45em;
  height: .45em;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: rotate(-45deg);
  transition: transform var(--transition-ui);
}
.faq-item[open] .faq-marker { transform: rotate(45deg) translateY(-2px); }
.faq-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--color-ink);
  transition: transform var(--transition-ui);
}
.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  padding: 0 1.5rem 1.4rem 2.9rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 52ch;
}

/* ---------- Cierre ---------- */
.closing {
  position: relative;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.closing-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26%;
}
.closing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#curve-close);
}
.closing-leaf {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 100%;
  opacity: .9;
}
.closing-inner {
  position: relative;
  text-align: center;
  max-width: 46rem;
}
.closing h2 {
  color: var(--color-on-primary);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  margin-bottom: 1.2rem;
}
.closing p {
  font-size: 1.15rem;
  color: rgba(248, 245, 239, .85);
  margin-bottom: 2.6rem;
}
.closing-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  overflow: hidden;
}
.footer-leaf {
  position: absolute;
  right: -1rem;
  bottom: -4px;
  height: 100%;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .8fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.footer-brand .brand-mark { width: 96px; height: 96px; }
.footer-brand .brand-name { font-size: 1.9rem; }
.footer-contact {
  border-left: 1px solid var(--color-line);
  padding-left: clamp(2rem, 4vw, 4rem);
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-ink);
}
.footer-contact li + li { margin-top: 1.2rem; }
.footer-contact svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: var(--color-primary);
}
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav {
  border-left: 1px solid var(--color-line);
  padding-left: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-nav a {
  color: var(--color-text);
  font-size: 1.02rem;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--color-ink); text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .header-row { gap: 1rem; }
  .brand { gap: .65rem; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name { font-size: 1.2rem; }
  .main-nav { gap: 1.3rem; }
  .main-nav a { font-size: .9rem; white-space: nowrap; }
  .site-header .btn { padding-inline: 1.2rem; }
  .hero-copy { max-width: 52%; }
  .services-list { max-width: 62%; }
}

@media (max-width: 991px) {
  body { padding-top: 84px; }
  .site-header { padding: .7rem 0; background: rgba(248, 245, 239, .92); }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    padding: 1rem 1.25rem 1.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 1rem;
    box-shadow: 0 24px 48px -20px rgba(23, 42, 48, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a:not(.btn) {
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-nav .btn { margin-top: 1rem; }

  .hero { min-height: 0; padding-top: 1rem; padding-bottom: 0; }
  .hero-photo {
    position: relative;
    width: 100%;
    height: 60vw;
    max-height: 480px;
    order: 2;
  }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-photo { margin-top: 2rem; }
  .hero-slides { clip-path: url(#curve-hero-sm); }
  .hero-copy { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .link-editorial { white-space: nowrap; }
  .hero-arcs, .hero-leaf, #hero-rama { display: none; }
  .nowrap { white-space: normal; }

  .band-grid { grid-template-columns: 1fr; gap: 2rem; }
  .band-photo { position: relative; width: 100%; height: 300px; grid-row: 1; }
  .band-photo img,
  .band-photo video { clip-path: none; border-radius: 1.25rem; }
  .band-title, .band-aside { grid-column: 1; }

  .services-photo {
    position: relative;
    width: 100%;
    height: 340px;
    margin-top: 3rem;
    clip-path: none;
    border-radius: 1.25rem;
  }
  .services-list { max-width: 100%; grid-template-columns: 1fr; }
  .service { border-right: none !important; padding: 1.5rem 0 !important; border-top: 1px solid var(--color-line) !important; }
  .service:first-child { border-top: none !important; padding-top: 0 !important; }

  .team { flex-direction: column; }
  .team-photo { position: relative; width: 100%; height: 300px; }
  .team-photo img, .team-photo video { clip-path: none; }
  .team-content { margin-left: 0; padding: 3rem var(--page-gutter); }
  .team-content .container { width: 100%; margin: 0; }
  .team-copy { max-width: 34rem; }
  .team-leaf { display: none; }

  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .step { border-left: none; padding: 0; }

  .modalities { flex-direction: column; }
  .mod-photo-wrap { position: relative; width: 100%; height: 300px; }
  .mod-photo { clip-path: none; }
  .mod-accent { display: none; }
  .mod-content { margin-left: 0; padding: 3rem 0; }
  .mod-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .mod-cols::before { display: none; }
  .mod-col:last-child { padding-left: 0; }

  .faq-list { max-width: 100%; }
  .faq-leaf { opacity: .35; right: -3rem; }

  .closing-photo {
    position: relative;
    width: 100%;
    height: 280px;
    order: 2;
  }
  .closing-photo img { clip-path: none; }
  .closing { display: flex; flex-direction: column; }
  .closing-leaf { height: 60%; opacity: .5; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
  .footer-contact, .footer-nav { border-left: none; padding-left: 0; border-top: 1px solid var(--color-line); padding-top: 2rem; }
  .footer-leaf { opacity: .3; }
}

/* Movimiento reducido (sistema o elección del visitante) */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
html.reduce-motion [data-reveal] { opacity: 1; transform: none; }

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line);
  font-size: .85rem;
  color: var(--color-muted);
}
.footer-legal p:last-child { max-width: 60ch; }

/* ============================================================
   Menú sticky (js/site.js): píldora de vidrio flotante
   ============================================================ */
.site-header {
  transition: transform .6s cubic-bezier(.2, .9, .2, 1), padding .6s cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
}
.header-row {
  position: relative;
  transition: background-color .6s ease, box-shadow .6s ease, padding .6s cubic-bezier(.2, .9, .2, 1),
    border-color .6s ease, border-radius .6s ease, max-width .6s cubic-bezier(.2, .9, .2, 1);
  border: 1px solid transparent;
  border-radius: 999px;
}
.brand-mark, .brand-name { transition: width .6s cubic-bezier(.2, .9, .2, 1), height .6s cubic-bezier(.2, .9, .2, 1), font-size .6s cubic-bezier(.2, .9, .2, 1); }
.site-header.is-stuck { padding: .65rem 0; }
.site-header.is-stuck .header-row {
  max-width: 1180px;
  padding: .45rem .5rem .45rem 1rem;
  background: rgba(252, 250, 246, .9);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-color: rgba(34, 75, 73, .12);
  box-shadow: 0 18px 50px -22px rgba(23, 42, 48, .45), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.site-header.is-stuck .brand-mark { width: 40px; height: 40px; }
.site-header.is-stuck .brand-name { font-size: 1.08rem; }
.site-header.is-stuck .header-cta { min-height: 2.75rem; padding-block: .55rem; }

/* Burbuja que sigue al puntero entre los enlaces */
.main-nav { position: relative; }
.main-nav a { position: relative; z-index: 1; padding: .5rem .2rem; }
.nav-ink {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2.3rem;
  margin-top: -1.15rem;
  border-radius: 999px;
  background: var(--color-sage);
  box-shadow: inset 0 0 0 1px rgba(34, 75, 73, .08);
  opacity: 0;
  pointer-events: none;
}
.nav-ink::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Progreso de lectura dentro de la píldora */
.header-progress {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), #d9a072 60%, var(--color-primary));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.site-header.is-stuck .header-progress { opacity: 1; }
@media (max-width: 991px) {
  .site-header.is-stuck { padding: .5rem 0; background: transparent; }
  .site-header.is-stuck .header-row { padding: .35rem .4rem .35rem .8rem; }
  .nav-ink { display: none; }
}

/* ---------- FAQ animada (js/site.js) ---------- */
.faq-item {
  --faq-bar: 0;
  position: relative;
  overflow: hidden;
  transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.faq-item[open] { --faq-bar: 1; }
.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  transform: scaleY(var(--faq-bar));
  transform-origin: 50% 0;
}
.faq-item[open] {
  background: #fff;
  border-color: rgba(188, 98, 67, .28);
  box-shadow: 0 22px 44px -30px rgba(23, 42, 48, .45);
}
.faq-item summary { transition: color .3s ease; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-item summary:hover .faq-marker { transform: rotate(-45deg) translateX(3px); }
.faq-item[open] summary:hover .faq-marker { transform: rotate(45deg) translateY(-2px); }
.faq-answer { overflow: hidden; }
.faq-icon { transition: none; }
/* El padding va en el párrafo para que la altura pueda llegar a 0 */
.faq-answer { padding: 0; max-width: none; }
.faq-answer p { padding: 0 1.5rem 1.4rem 2.9rem; max-width: 60ch; }

/* ============================================================
   Pulido responsive (tablet y móvil)
   ============================================================ */
.footer-legal { font-size: .875rem; }

@media (max-width: 991px) {
  /* Fotos apiladas: tarjetas redondeadas con margen, no bloques sueltos */
  .team-photo,
  .mod-photo-wrap,
  .closing-photo {
    width: auto;
    height: clamp(240px, 58vw, 380px);
    margin: 0 var(--page-gutter);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 48px -32px rgba(23, 42, 48, .55);
  }
  .team-photo { margin-top: 2.5rem; }
  .team-content { padding-top: 2.5rem; }
  .mod-photo-wrap { margin-top: 3rem; }
  .closing-photo { margin-top: 2.5rem; height: clamp(200px, 50vw, 320px); }
  .closing { padding-bottom: 3rem; }
  .closing-actions .btn { flex: 1 1 15rem; }

  /* «Cómo empezar»: filas compactas número + texto */
  .process-shadow { display: none; }
  .steps { gap: 0; margin: 2.4rem 0 2.2rem; }
  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 1.2rem;
    align-items: start;
    padding: 1.3rem 0;
    border-top: 1px solid var(--color-line);
  }
  .step:first-child { border-top: none; padding-top: 0; }
  .step .step-num { grid-row: 1 / span 2; width: 72px; height: 72px; font-size: 1.3rem; margin: 0; }
  .step h3 { margin: .35rem 0 .3rem; }
  .step-arrow { display: none; }

  /* Decoración que no debe tapar texto en pantallas angostas */
  .faq-leaf, .footer-leaf { display: none; }
  .closing-leaf { height: 42%; opacity: .45; }

  /* Objetivos táctiles cómodos (≥ 44 px) */
  .link-editorial, .link-accent { display: inline-flex; align-items: center; min-height: 44px; }
  .hs-btn { width: 2.75rem; height: 2.75rem; }
  .hero-actions { gap: .6rem 1.6rem; }
}

@media (max-width: 620px) {
  .hero-actions .btn, .closing-actions .btn { width: 100%; }
  .faq-item summary { padding: 1rem 1.1rem; font-size: 1.02rem; gap: .8rem; }
  .faq-answer p { padding: 0 1.1rem 1.2rem 2.4rem; }
  .services-intro { margin-bottom: 2rem; }
  .footer-brand .brand-mark { width: 72px; height: 72px; }
  .footer-brand .brand-name { font-size: 1.55rem; }
}

/* Tablet: aprovechar el ancho con grillas de 2–3 columnas */
@media (min-width: 700px) and (max-width: 991px) {
  .services-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .service:nth-child(2) { border-top: none !important; padding-top: 0 !important; }
  .mod-cols { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .band-photo { grid-column: 1 / -1; }
  .band-title { grid-column: 1; }
  .band-aside { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact, .footer-nav { border-top: none; padding-top: 0; }
}
