/* ═══════════════════════════════════════════════════════════════
   Consultorio Psicosalud · styles.css
   Design tokens + base + components + sections
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   1 · DESIGN TOKENS
   ─────────────────────────────────────────────── */
:root {
  /* ── Surfaces ── */
  --bg-cream:    #FBEEE6;
  --bg-paper:    #F4ECE0;
  --bg-lift:     #FFF7F0;
  --bg-deep:     #3B1E3B;

  /* ── Text ── */
  --ink:         #3B1E3B;
  --ink-soft:    #5B3E5B;
  --ink-meta:    #888888;
  --ink-on-dark: #FBEEE6;

  /* ── Brand ── */
  --magenta:       #C7448B;
  --magenta-deep:  #B83E7A;
  --navy:          #1B1E5C;
  --sage:          #8FA876;

  /* ── Warm accents (rare) ── */
  --terra:      #D2865C;
  --highlight:  #FFE066;
  --border:     #F0E6D8;
  --white:      #FFFFFF;

  /* ── Spacing scale (base 4px) ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ── Radius ── */
  --r-0:    0;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* ── Typography ── */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;
  --font-ceremony:'Instrument Serif', Georgia, serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* ── Type scale (desktop) ── */
  --fs-display-xl: 4.5rem;   /* 72px */
  --fs-display-l:  2.5rem;   /* 40px */
  --fs-display-m:  1.75rem;  /* 28px */
  --fs-body-l:     1.1875rem;/* 19px */
  --fs-body:       1.0625rem;/* 17px */
  --fs-body-s:     0.9375rem;/* 15px */
  --fs-meta:       0.8125rem;/* 13px */
  --fs-ceremony:   2.5rem;   /* 40px */

  /* ── Section vertical padding ── */
  --section-pad-y: var(--sp-24);

  /* ── Sizing ── */
  --content-max:   1180px;
  --content-pad:   var(--sp-8);
  --nav-h:         64px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast:  150ms;
  --t-base:  250ms;
  --t-slow:  600ms;
  --t-mm:    900ms;
}

@media (max-width: 768px) {
  :root {
    --fs-display-xl: 3.5rem;   /* 56px */
    --fs-display-l:  2rem;     /* 32px */
    --fs-display-m:  1.5rem;   /* 24px */
    --fs-body-l:     1.0625rem;/* 17px */
    --fs-body:       1rem;     /* 16px */
    --fs-body-s:     0.875rem; /* 14px */
    --fs-meta:       0.75rem;  /* 12px */
    --fs-ceremony:   2rem;     /* 32px */
    --section-pad-y: var(--sp-16);
    --content-pad:   var(--sp-6);
  }
}

/* ───────────────────────────────────────────────
   2 · RESET + BASE
   ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-soft);
  background-color: var(--bg-cream);
  /* Subtle paper grain (~10% opacity SVG noise tinted plum) — adds editorial depth without breaking calm */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.231 0 0 0 0 0.118 0 0 0 0 0.231 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--magenta);
  color: var(--ink-on-dark);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  transition: top 200ms var(--ease-out);
}
.skip-link:focus {
  top: var(--sp-4);
  outline: 3px solid var(--magenta-deep);
  outline-offset: 2px;
}

/* Focus visible ring (all focusable) */
:focus-visible {
  outline: 3px solid var(--magenta-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Typography defaults */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display-xl); font-weight: 400; font-style: italic; }
h2 { font-size: var(--fs-display-l); }
h3 { font-size: var(--fs-display-m); }

p { margin: 0; }

::selection {
  background: var(--magenta);
  color: var(--ink-on-dark);
}

/* ───────────────────────────────────────────────
   3 · LAYOUT PRIMITIVES
   ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-meta);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  display: block;
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-meta);
}

/* ───────────────────────────────────────────────
   4 · COMPONENTS · Buttons
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  min-height: 44px;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--magenta);
  color: var(--ink-on-dark);
}
.btn-primary:hover {
  background: var(--magenta-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--ink-on-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid rgba(91, 62, 91, 0.45);
}
.btn-ghost:hover {
  background: rgba(91, 62, 91, 0.08);
  border-color: var(--ink-soft);
}

.btn-whatsapp {
  background: var(--magenta);
  color: var(--ink-on-dark);
}
.btn-whatsapp:hover {
  background: var(--magenta-deep);
}
.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   5 · COMPONENTS · Cards, bands, quotes
   ─────────────────────────────────────────────── */
.svc-card {
  background: var(--bg-lift);
  border-radius: var(--r-md);
  padding: var(--sp-8);
  border: 1px solid var(--border);
  /* Default transform transition is fast (120ms) so RELEASE from :active is crisp;
     hover-lift gets a slower duration override below. */
  transition: transform 120ms var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(59, 30, 59, 0.08);
    border-color: rgba(143, 168, 118, 0.45);
    /* Hover lift uses the graceful duration */
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
  }
}
.svc-card:active { transform: scale(0.985); transition: transform 150ms var(--ease-out); }
.svc-card .icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(143, 168, 118, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: #5e7a4f;
  transition: transform var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover .icon-wrap { transform: rotate(-8deg) scale(1.05); }
}
.svc-card h3 {
  font-size: var(--fs-display-m);
  margin-bottom: var(--sp-2);
}
.svc-card p {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
}
.svc-card .expect {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--sage);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Magenta band — full bleed */
.magenta-band {
  background: var(--magenta);
  color: var(--ink-on-dark);
  padding-block: var(--sp-16);
  padding-inline: var(--content-pad);
  border-radius: var(--r-0);
  text-align: center;
  font-family: var(--font-ceremony);
  font-style: italic;
  font-size: var(--fs-ceremony);
  line-height: 1.15;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .magenta-band { padding-block: var(--sp-12); }
}
.magenta-band .subtext {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-body);
  opacity: 0.88;
  letter-spacing: 0;
}

/* Quote block */
.quote-block {
  padding: var(--sp-4) 0;
  position: relative;
}
.quote-block::before {
  content: "\201C"; /* left double quote */
  position: absolute;
  top: -0.05em;
  left: -0.1em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  color: var(--magenta);
  opacity: 0.35;
  pointer-events: none;
}
.quote-block .q {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.quote-block .attr {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--sp-4);
}
.quote-block.featured {
  background: var(--bg-lift);
  border-radius: var(--r-md);
  padding: var(--sp-12) var(--sp-8) var(--sp-8);
}
.quote-block.featured::before {
  top: var(--sp-4);
  left: var(--sp-6);
  font-size: 5rem;
  opacity: 0.45;
}
.quote-block.featured .q { font-size: 1.6rem; max-width: 52ch; }
.quote-block .q { max-width: 52ch; }

/* ───────────────────────────────────────────────
   6 · COMPONENTS · Team portrait + sticky nav
   ─────────────────────────────────────────────── */
.team-card {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  flex-wrap: wrap;
}
.team-card .portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--navy);
  background-image: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18), transparent 65%);
  box-shadow: inset 0 -6px 16px rgba(0,0,0,0.22),
              0 2px 4px rgba(59,30,59,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink-on-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.team-card .portrait.claudia {
  background: var(--magenta);
  background-image: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.20), transparent 65%);
}
.team-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { flex: 1; min-width: 240px; }
.team-card .info h3 {
  font-size: var(--fs-display-m);
  margin: 0 0 var(--sp-2);
}
.team-card .info .creds {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.team-card .info .creds .chip {
  background: var(--bg-paper);
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.team-card .info .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  line-height: 1.5;
}
/* Per-therapist WhatsApp — contact lives where you meet each person */
.team-card .info .team-wp {
  margin-top: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(199, 68, 139, 0.09);
  color: var(--magenta-deep);
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  font-weight: 600;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.team-card .info .team-wp svg { width: 16px; height: 16px; flex-shrink: 0; }
.team-card .info .team-wp .arrow { transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .team-card .info .team-wp:hover { background: var(--magenta); color: var(--ink-on-dark); }
  .team-card .info .team-wp:hover .arrow { transform: translateX(3px); }
}
.team-card .info .team-wp:active { transform: scale(0.97); }
/* Per-therapist email — quiet, secondary to the WhatsApp pill */
.team-card .info .team-mail {
  display: block;
  width: fit-content;
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.01em;
  color: var(--ink-meta);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.team-card .info .team-mail:hover { color: var(--magenta); border-color: rgba(199, 68, 139, 0.4); }

/* Sticky nav */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 238, 230, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2) var(--content-pad);
  z-index: 50;
  opacity: 0;
  transform: translateY(-100%);
  /* Exit fast (200ms) — when reaching footer it should retract crisply */
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
  will-change: transform, opacity;
}
.sticky-nav.visible {
  opacity: 1;
  transform: translateY(0);
  /* Enter graceful (300ms transform + 220ms opacity) — materialize, don't slide */
  transition: transform 300ms var(--ease-out), opacity 220ms var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .sticky-nav { background: rgba(251, 238, 230, 0.98); }
}
@media (max-width: 768px) {
  .sticky-nav {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.sticky-nav .inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 56px;
}
.sticky-nav .logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.sticky-nav .logo em { font-style: italic; color: var(--magenta); font-weight: 400; }
.sticky-nav .logo .mark-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-on-dark);
}
.sticky-nav .links {
  display: flex;
  gap: var(--sp-4);
  margin-left: var(--sp-6);
}
.sticky-nav .links a {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--ink-soft);
}
.sticky-nav .links a:hover { color: var(--magenta); }
.sticky-nav .wp-btn {
  margin-left: auto;
  background: var(--magenta);
  color: var(--ink-on-dark);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.sticky-nav .wp-btn svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .sticky-nav .links { display: none; }
}

/* ───────────────────────────────────────────────
   7 · SECTION · Hero
   ─────────────────────────────────────────────── */
.hero {
  padding-block: var(--sp-24) var(--sp-12);
  position: relative;
  overflow: hidden;
  /* Soft radial wash — sage top-left + magenta bottom-right, very low opacity */
  background:
    radial-gradient(ellipse 70% 50% at 12% 18%, rgba(143, 168, 118, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 88% 78%, rgba(199, 68, 139, 0.08), transparent 55%);
}
@media (max-width: 768px) {
  .hero { padding-block: var(--sp-16) var(--sp-8); }
}

/* Staggered entry animation — eyebrow, title, doors cascade in on load */
@keyframes heroEnter {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow   { animation: heroEnter 600ms var(--ease-out) 100ms both; }
.hero-title      { animation: heroEnter 750ms var(--ease-out) 220ms both; }
.hero-doors      { animation: heroEnter 600ms var(--ease-out) 420ms both; }
.hero-note       { animation: heroEnter 600ms var(--ease-out) 540ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero-title, .hero-doors, .hero-note { animation: none; opacity: 1; transform: none; }
}

/* Online-attention line under the hero doors */
.hero-note {
  margin-top: var(--sp-6);
  max-width: 560px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-meta);
}
.hero-note .dot { color: var(--magenta); margin: 0 0.5em; }
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 1.02;
  color: var(--ink);
  margin: var(--sp-4) 0 var(--sp-12);
  max-width: 720px;
  /* Override h1's text-wrap: balance — hero uses manual <br>, balance fights it */
  text-wrap: auto;
}
.hero-title em {
  font-style: italic;
  color: var(--magenta);
  font-weight: 400;
}
.hero-doors {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-doors .btn { transition: opacity 320ms var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-doors:has(.btn:hover) .btn:not(:hover) { opacity: 0.62; }
  .hero-doors .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); transition: transform 120ms var(--ease-out); }

.hero-wing {
  position: absolute;
  right: -120px;
  bottom: -60px;
  width: 520px;
  pointer-events: none;
  opacity: 0.85;
  /* linear (not ease-in-out) — let the 42%/62% keyframes carry the asymmetric breath */
  animation: wingDrift 14s linear infinite;
  will-change: transform;
}
@keyframes wingDrift {
  /* Asymmetric breath — inhale faster than exhale, like real lungs */
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  42%      { transform: translate(-6px, 3px) rotate(1.6deg); }
  62%      { transform: translate(-9px, 4px) rotate(2.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wing { animation: none; }
}
@media (max-width: 768px) {
  .hero-wing { width: 280px; right: -60px; bottom: -30px; opacity: 0.65; }
}

/* ───────────────────────────────────────────────
   8 · Magenta moment · scroll-trigger animation
   ─────────────────────────────────────────────── */
.magenta-band[data-mm] {
  background: var(--bg-cream);
  transition: background var(--t-mm) var(--ease-out);
  filter: blur(0);
  transform-origin: center;
}
.magenta-band[data-mm] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  color: var(--ink-on-dark);
  transition: opacity 650ms var(--ease-out) 450ms,
              transform 650ms var(--ease-out) 450ms;
}
.magenta-band[data-mm].activated {
  background: var(--magenta);
  /* Single combined keyframe: blur-bridge first, then settled exhale */
  animation: bandActivate 2700ms var(--ease-out) forwards;
}
.magenta-band[data-mm].activated span {
  opacity: 1;
  transform: translateY(0);
}
@keyframes bandActivate {
  /* Blur clears in the first 35% (~945ms), scale settles over full duration */
  0%   { filter: blur(2px); transform: scale(1.005); }
  35%  { filter: blur(0); }
  100% { filter: blur(0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .magenta-band[data-mm] { background: var(--magenta); transition: none; filter: none; animation: none; transform: none; }
  .magenta-band[data-mm] span { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────────────────────────────────
   9 · SECTIONS · Servicios grids
   ─────────────────────────────────────────────── */
.servicios .lead {
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  max-width: 640px;
  margin: var(--sp-4) 0 var(--sp-8);
  line-height: 1.55;
}
.servicios h2 em {
  font-style: italic;
  color: var(--magenta);
  font-weight: 400;
}
/* Differentiate the kids section visually: warmer paper bg + sage em accent */
.servicios-infantil { background: var(--bg-paper); }
.servicios-infantil h2 em { color: var(--sage); }
.servicios-infantil .svc-card .icon-wrap {
  background: rgba(210, 134, 92, 0.16);
  color: #a8623f;
}
.servicios-infantil .svc-card .expect { color: #a8623f; }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
.svc-cta { margin-top: var(--sp-4); }

/* Técnicas · lighter editorial list (distinct from the primary service cards) */
.tecnicas { margin-top: var(--sp-4); margin-bottom: var(--sp-8); }
.tecnicas-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: var(--sp-8);
  line-height: 1.4;
}
.tecnicas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6) var(--sp-12);
}
@media (min-width: 700px) {
  .tecnicas-list { grid-template-columns: 1fr 1fr; }
}
.tecnica {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.tecnica h3 {
  font-size: 1.4rem;
  line-height: 1.1;
  margin: 0 0 var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  flex-wrap: wrap;
}
.tecnica .tecnica-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
}
.tecnica p {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Scroll-reveal base state */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────────────────────────────────
   10 · SECTION · Equipo
   ─────────────────────────────────────────────── */
.equipo h2 em {
  font-style: italic;
  color: var(--magenta);
  font-weight: 400;
}
.equipo .lead {
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  max-width: 640px;
  margin: var(--sp-4) 0 var(--sp-8);
  line-height: 1.55;
}
.equipo-grid {
  display: grid;
  gap: var(--sp-12);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .equipo-grid { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────────────────────────────
   11 · SECTION · Testimonios
   ─────────────────────────────────────────────── */
.testimonios h2 em {
  font-style: italic;
  color: var(--magenta);
  font-weight: 400;
}
.testimonios-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  margin-top: var(--sp-12);
  max-width: 720px;
}

/* ───────────────────────────────────────────────
   12 · SECTION · Talleres
   ─────────────────────────────────────────────── */
.talleres { background: var(--bg-paper); }
.talleres h2 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 400;
}
.talleres .lead {
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  max-width: 640px;
  margin: var(--sp-4) 0 var(--sp-8);
  line-height: 1.55;
}

/* ───────────────────────────────────────────────
   13 · SECTION · Contacto
   ─────────────────────────────────────────────── */
.contacto h2 em {
  font-style: italic;
  color: var(--magenta);
  font-weight: 400;
}
.contacto .lead {
  font-size: var(--fs-body-l);
  color: var(--ink-soft);
  max-width: 540px;
  margin: var(--sp-4) 0 var(--sp-8);
  line-height: 1.55;
}
/* Large screens: text on the left, button fills the empty right side.
   Mobile stays stacked (button below the text) — unchanged. */
@media (min-width: 768px) {
  .contacto .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
  }
  .contacto .contacto-copy { flex: 1; }
  .contacto .contacto-copy .lead { margin-bottom: 0; }
  .contacto .btn-whatsapp { flex-shrink: 0; }
}
/* Closing CTA button sits directly under the lead — no extra rules needed */

/* ───────────────────────────────────────────────
   14 · FOOTER
   ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  color: var(--ink-on-dark);
  padding-block: var(--sp-16);
}
.footer-grid {
  display: grid;
  gap: var(--sp-12);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-on-dark);
  margin-bottom: var(--sp-2);
}
.footer-logo em { font-style: italic; color: var(--magenta); font-weight: 400; }
.footer-tag {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--ink-on-dark);
  opacity: 0.7;
  margin-bottom: var(--sp-4);
}
.footer-addr {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-on-dark);
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.footer-maps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-4);
  width: fit-content;
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--ink-on-dark);
  opacity: 0.85;
  border-bottom: 1px solid rgba(251, 238, 230, 0.25);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.footer-maps:hover { color: var(--magenta); opacity: 1; border-color: var(--magenta); }
.footer-mail {
  display: block;
  width: fit-content;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-on-dark);
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: color var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.footer-mail:hover { color: var(--magenta); opacity: 1; }
.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-h {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-on-dark);
  opacity: 0.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.footer-links a, .footer-social a {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--ink-on-dark);
  opacity: 0.85;
  transition: color var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.footer-links a:hover, .footer-social a:hover { color: var(--magenta); opacity: 1; }
.footer-badge { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer-badge img { max-width: 120px; }
.footer-bottom {
  border-top: 1px solid rgba(251, 238, 230, 0.1);
  padding-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--ink-on-dark);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ───────────────────────────────────────────────
   15 · UTIL · sr-only + footer credit link
   ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-bottom a.credit-link {
  color: var(--ink-on-dark);
  opacity: 0.7;
  text-decoration: underline;
  text-decoration-color: rgba(251, 238, 230, 0.3);
  text-underline-offset: 3px;
  transition: opacity var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              text-decoration-color var(--t-fast) var(--ease-out);
}
.footer-bottom a.credit-link:hover {
  color: var(--magenta);
  opacity: 1;
  text-decoration-color: var(--magenta);
}
.project-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0.45;
}

.footer-heart {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  color: var(--magenta);
  margin: 0 .15em;
}

/* ───────────────────────────────────────────────
   16 · AMBIENT MOTION · brand butterfly + hero breath
   A rare, calm visitor built from the brand wing motif.
   Flight + scheduling live in app.js; everything here is
   fully disabled under prefers-reduced-motion.
   ─────────────────────────────────────────────── */
.butterfly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;                 /* under sticky-nav (50), over page content */
  width: 44px;
  pointer-events: none;        /* never blocks clicks or selection */
  opacity: 0;                  /* JS fades it in for each flight */
  will-change: transform, opacity;
  contain: layout style paint;
}
.butterfly svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 5px 7px rgba(59, 30, 59, 0.14));
}
.butterfly .bf-wing {
  transform-box: view-box;
  transform-origin: 32px 28px;          /* hinge at the body's centerline */
  animation: bfFlutter 0.72s ease-in-out infinite;
  animation-play-state: paused;          /* only flutters mid-flight */
}
.butterfly.flying .bf-wing { animation-play-state: running; }
@keyframes bfFlutter {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.42); }
}

/* Ambient falling leaf — a slower, rarer companion to the butterfly */
.leaf {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 39;                 /* just under the butterfly */
  width: 20px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  contain: layout style paint;
}
.leaf svg { display: block; filter: drop-shadow(0 3px 5px rgba(59, 30, 59, 0.10)); }

/* Hero · slow breathing aura (transform-only, GPU-cheap) */
.hero { isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 22% 30%, rgba(143, 168, 118, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 34% at 82% 74%, rgba(199, 68, 139, 0.10), transparent 58%);
  animation: heroBreath 28s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-wing      { z-index: 1; }
.hero .container { position: relative; z-index: 2; }
@keyframes heroBreath {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.85; }
  50%      { transform: scale(1.06) translateY(-1%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .butterfly, .leaf { display: none !important; }
  .hero::before { animation: none; }
}

/* ───────────────────────────────────────────────
   17 · Floating WhatsApp button · always reachable
   ─────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 45;                 /* under sticky-nav (50) */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(199, 68, 139, 0.34), 0 2px 6px rgba(59, 30, 59, 0.18);
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  animation: waFabIn 460ms var(--ease-out) 900ms both;
}
.wa-fab svg { width: 28px; height: 28px; }
@keyframes waFabIn {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover {
    background: var(--magenta-deep);
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(199, 68, 139, 0.45), 0 3px 8px rgba(59, 30, 59, 0.2);
  }
}
.wa-fab:active { transform: scale(0.95); }
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
}
