/* =========================================================
   Clínica Teràpies · Landing demo
   Mobile-first. Paleta derivada de su marca real.
   ========================================================= */

:root {
  /* Marca */
  --mint: #BAE4D8;          /* menta del logo */
  --mint-soft: #DDF1EA;
  --mint-wash: #EEF7F3;
  --sage: #4D8B7E;          /* teal de rótulos (solo decorativo) */
  --teal: #3D7568;          /* teal AA para texto y botones (4.95:1 sobre crema) */
  --teal-deep: #2E5E53;
  --forest: #1F3B35;        /* fondo de la sección oscura */
  --rose: #F3CDD3;
  --rose-soft: #FBEAEC;
  --coral: #E4877C;         /* acento decorativo */
  --coral-ink: #A9544A;     /* coral AA para texto (4.81:1) */
  --cream: #FAF6F1;
  --paper: #FFFDFA;
  --ink: #3A3D3C;
  --ink-soft: #5E6462;
  --line: #E7DFD5;

  /* Tipografía */
  --f-display: "Outfit", "Hanken Grotesk", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Patrick Hand", "Comic Sans MS", cursive;

  /* Ritmo */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --gutter: 16px;
  --section: clamp(72px, 12vw, 136px);
  --shadow: 0 1px 2px rgb(31 59 53 / .05), 0 12px 32px -12px rgb(31 59 53 / .14);

  /* Máscaras orgánicas (nunca arcos) */
  --blob-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M52 2C72 1 92 10 97 32s-1 48-19 60-48 8-64-6S-2 46 6 28 32 3 52 2Z'/%3E%3C/svg%3E");
  --blob-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M44 2C64-1 87 6 95 26s5 44-6 60-34 15-52 10S3 82 1 60 8 24 20 13 34 3 44 2Z'/%3E%3C/svg%3E");
  --blob-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M30 5C48-2 70 4 86 13s16 31 10 49-24 34-46 35S8 86 3 66 12 12 30 5Z'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
address { font-style: normal; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Foco visible y consistente */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.focus :focus-visible, .footer :focus-visible { outline-color: var(--mint); }

/* ---------- Tipografía ---------- */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
h2 { font-size: clamp(2rem, 6.4vw, 3.2rem); text-wrap: balance; }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 10px; border-radius: 60% 40% 55% 45% / 60% 50% 50% 40%;
  background: var(--mint);
}
.eyebrow--light { color: var(--mint); }
.eyebrow--light::before { background: var(--sage); }

.hand {
  font-family: var(--f-hand);
  color: var(--coral-ink);
  font-size: 1.08em;
  letter-spacing: 0;
  white-space: nowrap;
  display: inline-block;
  transform: rotate(-3deg);
}

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; }
.section-head--center .section-lead { margin-inline: auto; }
.muted { color: var(--ink-soft); }

.placeholder-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 99px;
  border: 1px dashed currentColor;
  color: var(--coral-ink);
  background: rgb(255 255 255 / .7);
  line-height: 1.3;
}
.placeholder-inline {
  font-weight: 600; color: var(--coral-ink);
  border-bottom: 1px dashed currentColor;
}

/* ---------- Botones ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  --bg: var(--teal); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: transform .5s var(--ease), background-color .3s var(--ease), box-shadow .5s var(--ease), color .3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { box-shadow: 0 10px 24px -12px rgb(46 94 83 / .7); }
.btn--primary:hover { background: var(--teal-deep); box-shadow: 0 16px 30px -14px rgb(46 94 83 / .8); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgb(58 61 60 / .28); }
.btn--ghost:hover { --bg: var(--paper); border-color: var(--ink); }
.btn--mint { --bg: var(--mint); --fg: var(--forest); }
.btn--mint:hover { --bg: #fff; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--teal); text-decoration: none;
  padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .ico { transition: transform .5s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Fotos con máscara orgánica + duotono menta suave ---------- */
.photo {
  position: relative; margin: 0;
  -webkit-mask: var(--mask, var(--blob-a)) center / 100% 100% no-repeat;
          mask: var(--mask, var(--blob-a)) center / 100% 100% no-repeat;
  background: var(--mint-soft);
  isolation: isolate;
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.03); }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, var(--mint) 0%, rgb(186 228 216 / 0) 60%), var(--mint);
  mix-blend-mode: multiply; opacity: .22;
}
.photo--blob-a { --mask: var(--blob-a); }
.photo--blob-b { --mask: var(--blob-b); }
.photo--blob-c { --mask: var(--blob-c); }
.photo--dark::after { opacity: .3; background: var(--sage); mix-blend-mode: soft-light; }

/* ---------- Manchas de fondo (movimiento casi imperceptible) ---------- */
.blob-bg {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 58% 42% 50% 50% / 52% 46% 54% 48%;
  filter: blur(2px);
  animation: drift 38s var(--ease) infinite alternate;
}
.blob-bg--a { width: 520px; height: 440px; background: var(--mint-soft); opacity: .8; top: -120px; right: -220px; }
.blob-bg--b { width: 260px; height: 220px; background: var(--rose); opacity: .5; bottom: 40px; left: -120px; animation-duration: 46s; animation-delay: -12s; }
.blob-bg--c { width: 420px; height: 360px; background: var(--mint-soft); top: 120px; left: -220px; animation-duration: 52s; }
.blob-bg--d { width: 380px; height: 320px; background: var(--rose-soft); top: 40px; right: -160px; animation-duration: 44s; }
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 58% 42% 50% 50% / 52% 46% 54% 48%; }
  50%  { transform: translate(18px, -14px) rotate(6deg) scale(1.03); border-radius: 46% 54% 44% 56% / 58% 42% 58% 42%; }
  100% { transform: translate(-12px, 12px) rotate(-4deg) scale(.98); border-radius: 52% 48% 60% 40% / 44% 56% 44% 56%; }
}

/* =========================================================
   1. Navegación
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 246 241 / .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgb(250 246 241 / .93); }
.nav__inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.nav__logo { display: block; flex: none; margin-left: -8px; border-radius: 12px; }
.nav__logo svg { height: 58px; width: auto; aspect-ratio: 300 / 140; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__burger {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgb(58 61 60 / .2); background: var(--paper); cursor: pointer;
}
.nav__burger svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.nav__sheet { border-top: 1px solid var(--line); background: var(--cream); }
.nav__sheet nav { display: grid; padding-block: 12px 24px; }
.nav__sheet a:not(.btn) {
  padding: 14px 4px; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; font-family: var(--f-display);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav__sheet .btn { margin-top: 20px; }
.nav__sheet:not([hidden]) { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 1040px) {
  .nav__inner { height: 84px; gap: 28px; }
  .nav__logo svg { height: 66px; }
  .nav__links { display: flex; gap: 4px; margin-left: auto; }
  .nav__links a {
    text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 14px; border-radius: 99px;
    transition: background-color .3s var(--ease);
  }
  .nav__links a:hover, .nav__links a[aria-current="true"] { background: var(--mint-soft); }
  .nav__cta { display: inline-flex; }
  .nav__burger, .nav__sheet { display: none !important; }
}

/* =========================================================
   2. Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: 28px 64px; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(2.35rem, 10vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 22px; text-wrap: balance;
}
.accent {
  font-style: normal; color: var(--ink);
  position: relative; white-space: nowrap; z-index: 0;
}
/* Mancha menta detrás del texto: el mismo recurso que su logo */
.accent::after {
  content: ""; position: absolute; z-index: -1;
  left: -.22em; right: -.3em; top: .04em; bottom: -.06em;
  background: var(--mint);
  border-radius: 38% 62% 46% 54% / 62% 44% 56% 38%;
  transform: rotate(-2deg);
  animation: blob-in 1.2s .5s var(--ease) both;
}
@keyframes blob-in { from { transform: rotate(-2deg) scale(.6); opacity: 0; } }
.hero__lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 50ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 240px; }

.hero__visual { position: relative; padding-bottom: 72px; }
.hero__photo { aspect-ratio: 1 / 1; width: min(100%, 560px); margin-inline: auto; }
.hero__photo img { object-position: 60% 30%; }

.status-card {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin-inline: auto; width: min(100%, 340px);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: .94rem;
}
.status-card p { margin: 0; }
.status-card__row { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); margin-top: 6px !important; }
.status-card__row .ico { color: var(--teal); }
.status-card__rating strong { color: var(--ink); margin-left: 4px; }

.status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; position: relative; }
.status.is-open .status__dot { background: #2F8F5B; }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #2F8F5B; opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
.status.is-closed .status__dot { background: var(--coral-ink); }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }

.stars { display: inline-flex; gap: 2px; color: #D9963A; }
.stars svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .hero { padding-block: 48px 96px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__visual { padding-bottom: 0; }
  .status-card { left: -48px; right: auto; bottom: 28px; margin: 0; }
}

/* =========================================================
   3. Promo
   ========================================================= */
.promo { background: var(--rose); position: relative; z-index: 2; }
.promo__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-block: 16px;
}
.promo__tag {
  margin: 0; font-family: var(--f-hand); font-size: 1.3rem; color: var(--coral-ink);
  transform: rotate(-3deg);
}
.promo__text { margin: 0; flex: 1 1 260px; font-size: .98rem; }
.promo__text strong { font-weight: 700; }
.promo__text span { color: #5a4a4c; }
.promo__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 18px; border-radius: 99px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none; font-size: .95rem;
  transition: background-color .3s;
}
.promo__link:hover { background: var(--coral-ink); }

/* =========================================================
   4. Etapas
   ========================================================= */
.stages { overflow: hidden; }
.stages .container { position: relative; z-index: 1; }

.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
}
.timeline__track {
  position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 2px;
  background: var(--line); border-radius: 2px;
}
.timeline__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: var(--teal); border-radius: 2px;
  transition: width .8s var(--ease);
}
.timeline__step {
  position: relative; display: grid; justify-items: center; gap: 10px;
  background: none; border: 0; padding: 0 2px 6px; cursor: pointer;
  border-radius: 14px;
}
.timeline__dot {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease), border-radius .8s var(--ease);
}
.timeline__dot svg { width: 30px; height: 30px; fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.timeline__label { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .3s; }
.timeline__step:hover .timeline__dot { transform: translateY(-3px); border-color: var(--sage); }
.timeline__step[aria-selected="true"] .timeline__dot {
  background: var(--mint); border-color: var(--mint);
  transform: scale(1.08); border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%;
}
.timeline__step[aria-selected="true"] .timeline__dot svg { stroke: var(--forest); }
.timeline__step[aria-selected="true"] .timeline__label { color: var(--ink); }
.timeline__step.is-past .timeline__dot { border-color: var(--teal); }

.stage {
  display: grid; gap: 28px; align-items: center;
  background: var(--paper); border-radius: var(--r-lg);
  padding: 20px 20px 28px; box-shadow: var(--shadow);
}
.stage:not([hidden]) { animation: stage-in .7s var(--ease) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(16px); } }
.stage__photo { aspect-ratio: 5 / 4; }
.stage__photo img { object-position: 50% 30%; }
.stage__illus {
  aspect-ratio: 5 / 4; display: grid; place-items: center;
  background: var(--rose-soft);
  border-radius: 58% 42% 50% 50% / 52% 46% 54% 48%;
}
.stage__illus svg { width: 46%; fill: none; stroke: var(--coral-ink); stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.stage__num { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.stage__body h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(1.6rem, 5vw, 2.15rem); line-height: 1.12; margin-bottom: 14px; }
.stage__body > p { color: var(--ink-soft); }
.stage__lists { display: grid; gap: 18px; margin: 22px 0 14px; }
.stage__lists h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 99px; font-size: .93rem; font-weight: 500;
  background: var(--mint-soft); color: var(--forest);
}
.chips--rose li { background: var(--rose-soft); color: #6B3A35; }
.stage .chips li { animation: chip-in .6s var(--ease) both; }
.stage .chips li:nth-child(2) { animation-delay: .05s; }
.stage .chips li:nth-child(3) { animation-delay: .1s; }
.stage .chips li:nth-child(4) { animation-delay: .15s; }
.stage .chips li:nth-child(5) { animation-delay: .2s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }

@media (min-width: 720px) {
  .stage__lists { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .timeline { max-width: 820px; margin-inline: auto; margin-bottom: 52px; }
  .timeline__dot { width: 76px; height: 76px; }
  .timeline__track { top: 37px; }
  .timeline__label { font-size: 1.05rem; }
  .stage { grid-template-columns: .85fr 1.15fr; gap: 56px; padding: 40px 56px 40px 40px; }
  .stage__photo, .stage__illus { aspect-ratio: 4 / 5; }
}

/* =========================================================
   5. Servicios
   ========================================================= */
.services { background: var(--paper); }
.svc-grid { display: grid; gap: 16px; }
.svc {
  background: var(--cream); border-radius: var(--r-lg);
  padding: 26px 22px; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc--mint { background: var(--mint-wash); border-color: #d3ebe2; }
.svc__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.svc__head h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.45rem; line-height: 1.15; margin-bottom: 4px; }
.svc__head p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.svc__badge {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--mint); border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
}
.svc__badge--rose { background: var(--rose); }
.svc__badge svg { width: 30px; height: 30px; fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__list { display: grid; gap: 2px; }
.svc__list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.svc__list svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.svc__list span { font-weight: 500; }
.svc__list em { font-style: normal; color: var(--coral-ink); font-weight: 600; }
.svc__list strong { display: block; font-weight: 600; }
.svc__list--2 span { font-weight: 400; color: var(--ink-soft); font-size: .96rem; line-height: 1.45; }
.svc__list--2 strong { color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }

@media (min-width: 720px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc--wide { grid-column: 1 / -1; }
  .svc__list--2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc--wide { grid-column: 1 / -1; padding: 36px; }
  .svc__list--2 { grid-template-columns: repeat(3, 1fr); }
  .svc { padding: 32px; }
}

/* =========================================================
   6. Diástasis / suelo pélvico (sección oscura)
   ========================================================= */
.focus { background: var(--forest); color: #E9F3EF; overflow: hidden; }
.focus h2 { color: #fff; margin-bottom: 18px; }
.focus h2 em { font-style: normal; color: var(--mint); }
.focus__intro > p { color: #C9DED7; max-width: 52ch; }
.focus__grid { display: grid; gap: 48px; }
.focus__photos { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 32px; align-items: end; }
.focus__photos .photo:first-child { aspect-ratio: 4 / 3; }
.focus__photos .photo:last-child { aspect-ratio: 1 / 1; transform: translateY(18px); }
.focus__photos .photo:last-child img { object-position: 30% 40%; }

.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px; border-radius: var(--r-md);
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(186 228 216 / .16);
}
.step h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: #C9DED7; font-size: .99rem; }
.step__n {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--mint); color: var(--forest);
  font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1;
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
}
.focus__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.focus__promo {
  font-family: var(--f-hand); font-size: 1.35rem; color: var(--rose);
  transform: rotate(-3deg);
}
.focus__cta .btn { flex: 1 1 260px; }
@media (min-width: 960px) {
  .focus__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .focus__cta .btn { flex: 0 0 auto; }
}

/* =========================================================
   7. Clases
   ========================================================= */
.classes__top { display: grid; gap: 8px; margin-bottom: 36px; }
.classes__top .section-head { margin-bottom: 20px; }
.baby-note {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--rose-soft); border-radius: var(--r-md);
  padding: 20px; align-self: end;
}
.baby-note svg { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--coral-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.baby-note p { margin: 0; color: #4f3f41; }
.baby-note strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 1.06rem; }

.schedule {
  background: var(--paper); border-radius: var(--r-lg); padding: 22px 18px;
  box-shadow: var(--shadow); margin-bottom: 40px;
}
.schedule__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.schedule__head h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.45rem; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; font-size: .86rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); }
.schedule__grid { display: grid; gap: 0; }
.day { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.day h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.2; padding-top: 4px; }
.day ul { display: flex; flex-wrap: wrap; gap: 6px; }
.day li {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: .9rem; font-weight: 500; padding: 6px 12px; border-radius: 10px;
  background: var(--kbg); color: var(--ink);
  position: relative; padding-right: 24px;
}
.day li::after {
  content: ""; position: absolute; top: 11px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--k);
}
.day time { font-weight: 700; font-variant-numeric: tabular-nums; }
.k-emb  { --k: #D2736A; --kbg: #FBEAE7; }
.k-post { --k: #C98A9A; --kbg: #FBEAEC; }
.k-hipo { --k: #4D8B7E; --kbg: #E3F3EE; }
.k-pil  { --k: #7FB9A6; --kbg: #EEF7F3; }
.k-fun  { --k: #3A3D3C; --kbg: #EFEBE6; }

@media (min-width: 900px) {
  .classes__top { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
  .classes__top .section-head { margin-bottom: 0; }
  .schedule { padding: 32px; }
  .schedule__grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .day { grid-template-columns: 1fr; align-content: start; border-top: 0; padding: 0; gap: 10px; }
  .day h4 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .day ul { flex-direction: column; }
  .day li { flex-direction: column; gap: 0; padding: 10px 12px; }
}

.class-cards { display: grid; gap: 28px; }
.class-card .photo { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.class-card .photo img { object-position: 50% 30%; }
.class-card h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.35rem; margin-bottom: 4px; }
.class-card p { color: var(--ink-soft); margin: 0; }
@media (min-width: 720px) { .class-cards { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   8. Talleres
   ========================================================= */
.workshops { background: var(--paper); }
.ws-layout { display: grid; gap: 20px; }
.ws-next {
  display: grid; gap: 20px; background: var(--mint-wash);
  border-radius: var(--r-lg); padding: 20px; border: 1px solid #d3ebe2;
}
.ws-next .photo { aspect-ratio: 1 / 1; max-width: 260px; }
.ws-next__label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.ws-next h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.025em; font-size: 1.65rem; line-height: 1.08; margin-bottom: 10px; }
.ws-next__body > p { color: var(--ink-soft); }
.ws-meta { display: grid; gap: 8px; margin-bottom: 20px; font-size: .95rem; }
.ws-meta li { display: flex; align-items: center; gap: 10px; }
.ws-meta .ico { color: var(--teal); }

.ws-list { display: grid; gap: 12px; align-content: start; }
.ws {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--r-md);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .6s var(--ease), background-color .4s;
}
.ws:hover { transform: translateX(4px); background: var(--rose-soft); }
.ws svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--coral-ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ws h3 { margin-bottom: 4px; }
.ws p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

@media (min-width: 720px) {
  .ws-next { grid-template-columns: 220px 1fr; align-items: center; padding: 28px; }
}
@media (min-width: 1040px) {
  .ws-layout { grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .ws-next { grid-template-columns: 1fr; }
  .ws-next .photo { max-width: 300px; }
}

/* =========================================================
   9. Equipo
   ========================================================= */
.team-grid { display: grid; gap: 16px; }
.member {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center;
  background: var(--paper); border-radius: var(--r-lg); padding: 16px;
  border: 1px solid var(--line);
}
.member h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; }
.member p { margin: 0 0 6px; color: var(--ink-soft); font-size: .96rem; }
.member__role { font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal) !important; }
.member__meta { font-size: .84rem !important; }
.member__photo { aspect-ratio: 1 / 1; }
.member__photo img { object-position: 50% 20%; }
.member__ph {
  margin: 0; aspect-ratio: 1 / 1; position: relative;
  display: grid; place-items: center;
  background: var(--mint-wash);
  border-radius: 54% 46% 50% 50% / 48% 52% 48% 52%;
  border: 1.5px dashed #b9d8cd;
}
.member__ph--rose { background: var(--rose-soft); border-color: #eac2c8; }
.member__ph svg { width: 62%; fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; opacity: .6; }
.member__ph .placeholder-tag { position: absolute; bottom: -4px; font-size: .64rem; padding: 3px 8px; white-space: nowrap; }

@media (min-width: 720px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .member { grid-template-columns: 1fr; padding: 24px; align-items: start; }
  .member__photo, .member__ph { width: 100%; }
  .member--lead { background: var(--mint-wash); border-color: #d3ebe2; }
}

/* =========================================================
   10. Historia
   ========================================================= */
.story { overflow: hidden; }
.story__grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.story__copy > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 58ch; }
.story__copy h2 { margin-bottom: 22px; }
.story__dana {
  margin-top: 28px; padding: 20px 24px;
  background: var(--rose-soft);
  border-radius: 30px 44px 34px 48px / 40px 32px 46px 36px;
  color: var(--ink) !important;
}
.story__dana .hand { color: var(--coral-ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  background: var(--paper); border-radius: var(--r-md); padding: 18px 12px; text-align: center;
  box-shadow: var(--shadow);
}
.stat dd { margin: 0 0 6px; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1; color: var(--teal); }
.stat dd small { font-size: .5em; vertical-align: .6em; margin-left: 2px; color: #D9963A; }
.stat dt { font-size: .82rem; color: var(--ink-soft); line-height: 1.3; }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 72px; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat { flex-direction: row-reverse; justify-content: space-between; align-items: center; text-align: left; padding: 22px 28px; }
  .stat dd { margin: 0; }
  .stat dt { font-size: .95rem; max-width: 12ch; }
}

/* =========================================================
   11. Opiniones · marquee en dos filas
   ========================================================= */
.reviews { background: var(--paper); overflow: hidden; }
.marquee {
  display: grid; gap: 16px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee var(--dur, 46s) linear infinite;
  padding-block: 6px;
}
.marquee__row--rev .marquee__track { animation-direction: reverse; --dur: 52s; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

.review {
  flex: none; width: min(78vw, 360px);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.review blockquote { margin: 0; font-family: var(--f-body); font-weight: 500; font-size: 1.08rem; line-height: 1.45; color: var(--ink); }
.review__who { margin: auto 0 0; font-weight: 700; font-size: .92rem; color: var(--teal); }
.review--mint { background: var(--mint-wash); border-color: #d3ebe2; }
.review--score { align-items: center; justify-content: center; text-align: center; background: var(--forest); border-color: var(--forest); width: min(60vw, 240px); }
.review__score { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; font-size: 3rem; line-height: 1; color: #fff; }
.review--score .review__who { color: var(--mint); margin: 0; }

.reviews__foot { text-align: center; margin-top: 36px; }
.reviews__foot p { margin-bottom: 4px; }
.reviews__note { font-size: .84rem; color: var(--ink-soft); margin-top: 8px; }

/* =========================================================
   12. FAQ
   ========================================================= */
.faq__grid { display: grid; gap: 8px; }
.faq__list { display: grid; gap: 10px; }
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: background-color .4s var(--ease), border-color .4s;
}
details[open] { background: var(--mint-wash); border-color: #d3ebe2; }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 1.05rem; line-height: 1.35;
  border-radius: var(--r-md); min-height: 56px;
}
summary::-webkit-details-marker { display: none; }
summary .ico {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--mint); color: var(--forest);
  transition: transform .5s var(--ease), background-color .3s;
}
details[open] summary .ico { transform: rotate(45deg); background: #fff; }
.faq__a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq__a p { margin: 0; }
details[open] .faq__a { animation: faq-in .55s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
}

/* =========================================================
   13. Ubicación
   ========================================================= */
.location { background: var(--paper); }
.location__grid { display: grid; gap: 32px; }
.location__info h2 { margin-bottom: 22px; }
.loc-row { display: flex; gap: 12px; align-items: flex-start; }
.loc-row .ico { color: var(--teal); margin-top: 4px; }
.loc-row a { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--mint); }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin: 18px 0 16px; font-size: .97rem; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours tr.is-today { background: var(--mint-wash); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours tr.is-today th::after { content: " · hoy"; font-weight: 500; color: var(--teal); }
.status--inline { margin-bottom: 22px; }

.map-wrap { position: relative; }
.map {
  height: 440px; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--mint-wash) radial-gradient(circle at 50% 50%, var(--mint) 0 6px, transparent 7px);
  box-shadow: var(--shadow);
}
.map-fallback { padding: 24px; }
.map-marker { display: grid; justify-items: center; cursor: default; }
.map-marker__bubble {
  background: var(--paper); border-radius: 18px; padding: 4px 8px;
  box-shadow: 0 10px 24px -10px rgb(31 59 53 / .55);
}
.map-marker__bubble svg { width: 112px; height: auto; aspect-ratio: 300 / 140; }
.map-marker__pin { width: 2px; height: 22px; background: var(--forest); }
.map-marker__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 5px rgb(186 228 216 / .7); }
.maplibregl-ctrl-attrib { font-size: 11px; }

@media (min-width: 960px) {
  .location__grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
  .map { height: 560px; }
}

/* =========================================================
   14. CTA final
   ========================================================= */
.cta { padding-block: var(--section); position: relative; overflow: hidden; }
.cta__inner { position: relative; text-align: center; padding-block: 48px; max-width: 820px; }
.cta__blob {
  position: absolute; inset: -10% -6%; width: 112%; height: 120%; z-index: -1;
  fill: var(--mint); opacity: .75;
  animation: drift 40s var(--ease) infinite alternate;
}
.cta h2 { font-size: clamp(2.1rem, 7.5vw, 3.7rem); margin-bottom: 16px; }
.cta p { color: var(--ink); max-width: 44ch; margin-inline: auto; margin-bottom: 28px; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__actions .btn { flex: 1 1 260px; max-width: 320px; }
.cta .btn--ghost { background: rgb(255 253 250 / .7); }

/* =========================================================
   15. Footer
   ========================================================= */
.footer { background: var(--forest); color: #CFE2DB; padding-block: 56px 96px; font-size: .97rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: 32px; }
.footer__logo { width: 190px; height: auto; aspect-ratio: 300 / 140; background: var(--cream); border-radius: 22px; padding: 6px 10px; }
.footer__brand p { margin-top: 14px; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; color: #fff; }
.footer__h { font-family: var(--f-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 12px; }
.footer p { margin-bottom: 8px; }
.social { display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(186 228 216 / .2);
  display: grid; gap: 12px; font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer .placeholder-inline { color: var(--rose); font-weight: 500; }
@media (min-width: 900px) {
  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__bottom { grid-template-columns: auto 1fr auto; align-items: center; }
  .legal { justify-content: center; }
}

/* ---------- Botón flotante de WhatsApp (móvil) ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  box-shadow: 0 14px 30px -10px rgb(31 59 53 / .7);
  transform: translateY(120px); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s;
}
.fab.is-visible { transform: none; opacity: 1; }
.fab svg { width: 28px; height: 28px; }
@media (min-width: 1040px) { .fab { display: none; } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__row { overflow-x: auto; padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .marquee__track { animation: none !important; }
  .marquee__track [data-clone] { display: none; }
  .review { scroll-snap-align: start; }
}
