/* =============================================================
   NutraMed — styles.css
   Archetype: Liquid Wave (adaptado a la paleta del logo)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #eef7fc;   /* agua muy clara */
  --bg-2:      #ffffff;
  --bg-3:      #e3f1fa;
  --deep:      #0b2f6e;   /* azul marino del logo */
  --deep-2:    #082456;
  --ink:       #0b1e3a;
  --ink-soft:  #3b506e;
  --ink-mute:  #6a7d96;
  --sky:       #1e9be6;   /* celeste del logo */
  --sky-soft:  #bfe3f8;
  --leaf:      #6aad25;   /* verde hoja del logo */
  --leaf-dark: #4f8a16;
  --leaf-soft: #e4f3d3;
  --gold:      #d9b25c;
  --wa:        #1fae5b;
  --wa-dark:   #178a48;
  --line:      rgba(11, 30, 58, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);

  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hand:    "Caveat", "Segoe Script", cursive;

  --radius:    22px;
  --radius-lg: 34px;
  --gutter:    clamp(16px, 4vw, 40px);
  --nav-h:     76px;

  --shadow-soft: 0 20px 50px -24px rgba(11, 47, 110, 0.28);
  --shadow-lift: 0 30px 70px -28px rgba(11, 47, 110, 0.4);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
em { font-style: normal; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--deep); color: #fff; border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 130px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf-dark); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: #a9e07a; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); color: var(--deep); margin-bottom: 1.2rem; }
.section-title em { color: var(--sky); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); margin-bottom: 1rem; }
.lead strong { color: var(--deep); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font: 600 .98rem/1.1 var(--display); letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
  will-change: transform;
}
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 28px -12px rgba(31, 174, 91, .7); }
.btn-primary { background: var(--deep); color: #fff; box-shadow: 0 12px 28px -14px rgba(11, 47, 110, .7); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--deep); box-shadow: inset 0 0 0 1.5px rgba(11, 47, 110, .18); }
.btn-gold { background: linear-gradient(135deg, #f3d488, var(--gold)); color: #2a1f05; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.04rem; }
.btn-xl { padding: 1.15rem 2rem; font-size: 1.12rem; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn-wa:hover { background: var(--wa-dark); box-shadow: 0 18px 34px -14px rgba(31, 174, 91, .8); }
  .btn-primary:hover { background: var(--sky); }
  .btn-ghost:hover { background: #fff; }
  .btn-leaf:hover { background: var(--leaf-dark); }
}
.btn:active { transform: translateY(0) scale(.98); }

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease-out);
}
.nav.is-solid {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px -20px rgba(11, 47, 110, .35);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-inner {
  height: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo img { width: auto; height: 46px; }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px; background: #fff; box-shadow: var(--shadow-soft);
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--deep); transition: transform .35s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu panel */
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: .2rem;
  position: fixed; top: calc(var(--nav-h) + 6px); left: 12px; right: 12px;
  padding: 1rem; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lift);
  animation: menuIn .4s var(--ease-out);
}
.nav.is-open .nav-links a:not(.btn) { padding: .85rem 1rem; border-radius: 12px; font: 500 1.1rem var(--display); color: var(--deep); }
.nav.is-open .nav-links a:not(.btn):active { background: var(--bg); }
.nav-cta-mobile { margin-top: .5rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ----- Waves (signature) ----- */
.wave {
  position: absolute; left: 0; right: 0; height: clamp(50px, 7vw, 110px);
  overflow: hidden; pointer-events: none; z-index: 1;
}
.wave svg { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.wave-back  { animation: waveDrift 26s linear infinite; opacity: .5; }
.wave-front { animation: waveDrift 17s linear infinite reverse; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wave-to-white { bottom: -1px; }
.wave-to-white path { fill: var(--bg-2); }
.wave-into-deep { top: -1px; transform: rotate(0); }
.wave-into-deep svg { top: 0; bottom: auto; }
.wave-into-deep path { fill: var(--bg-2); }
.wave-out-deep { bottom: -1px; }
.wave-out-deep path { fill: var(--bg); }

/* ----- Blobs (signature) ----- */
.blob {
  position: absolute; display: block; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  filter: blur(2px);
  animation: blobMorph 16s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  33%      { border-radius: 55% 45% 38% 62% / 52% 61% 39% 48%; }
  66%      { border-radius: 44% 56% 58% 42% / 63% 38% 62% 37%; }
}

/* ----- Float (signature) ----- */
.float { animation: floatY 7s ease-in-out infinite; }
.float-slow { animation-duration: 9s; }
.float-alt { animation-duration: 8s; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ----- Reveal ----- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* defensive: never hide split-text */

/* Wave reveal: image emerges from below with a curved edge */
.js .wave-reveal { clip-path: ellipse(80% 0% at 50% 100%); transition: clip-path 1.4s var(--ease-out); }
.js .wave-reveal.is-revealed { clip-path: ellipse(120% 120% at 50% 100%); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ----- Splash ----- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg-2);
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards;   /* safety net if JS fails */
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-mark { width: 96px; height: auto; animation: splashPop 1.1s var(--ease-bounce) both; }
.splash-wave { width: 120px; height: 14px; overflow: visible; }
.splash-wave path { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: splashDraw 1.4s .2s var(--ease-out) forwards; }
@keyframes splashPop { from { opacity: 0; transform: scale(.7) translateY(10px); } }
@keyframes splashDraw { to { stroke-dashoffset: 0; } }
html:not(.js) .splash { display: none; }

/* ----- Hero ----- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) 0 0;
  display: flex; align-items: stretch;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(30, 155, 230, .18), transparent 70%),
    radial-gradient(50% 45% at 5% 90%, rgba(106, 173, 37, .14), transparent 70%),
    linear-gradient(180deg, #f6fbfe 0%, var(--bg) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob-a { width: 46vw; max-width: 620px; aspect-ratio: 1; right: -12vw; top: 8%; background: radial-gradient(circle at 30% 30%, #d4ecfb, #a8d8f6 70%); opacity: .55; }
.blob-b { width: 30vw; max-width: 380px; aspect-ratio: 1; left: -10vw; bottom: 6%; background: radial-gradient(circle at 60% 40%, #eaf6dc, #cbe8a8 75%); opacity: .6; animation-delay: -6s; }

.hero-grid { display: grid; gap: 28px; align-items: end; }
.hero-copy { align-self: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem .5rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 .82rem/1.2 var(--sans); color: var(--deep); margin-bottom: 1.5rem;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.9rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  color: var(--deep); margin-bottom: 1.4rem; max-width: 20ch;
}
.hero-title .line { display: block; }
.hero-title em {
  color: var(--sky);
  background: linear-gradient(100deg, var(--sky) 10%, var(--leaf) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.js .hero-title .line { animation: lineUp 1s var(--ease-out) both; }
.js .hero-title .line:nth-child(1) { animation-delay: .55s; }
.js .hero-title .line:nth-child(2) { animation-delay: .68s; }
.js .hero-title .line:nth-child(3) { animation-delay: .86s; }
.js .hero-sub, .js .hero-actions, .js .hero-proof, .js .hero .kicker { animation: lineUp 1s var(--ease-out) both; }
.js .hero .kicker { animation-delay: .45s; }
.js .hero-sub { animation-delay: 1s; }
.js .hero-actions { animation-delay: 1.12s; }
.js .hero-proof { animation-delay: 1.24s; }
@keyframes lineUp { from { opacity: 0; transform: translateY(26px); } }

.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .9rem; color: var(--ink-mute); }
.hero-proof li { display: flex; flex-direction: column; line-height: 1.3; }
.hero-proof strong { font: 600 1.3rem/1.2 var(--display); color: var(--deep); }

.hero-visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; align-self: end; }

/* Figura de cuerpo completo del director, recortada sobre una forma azul */
.hero-figure { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-figure-blob {
  position: absolute; left: 4%; right: 4%; top: 16%; bottom: 0;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 32% 24%, #e3f3fd 0%, #a9d8f5 42%, #5cb2ea 100%);
  box-shadow: 0 40px 80px -40px rgba(11, 47, 110, .45);
  animation: blobMorph 16s ease-in-out infinite;
}
.hero-person {
  position: relative; z-index: 1; display: block;
  width: auto; max-width: 100%; height: min(86svh, 820px); object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(11, 47, 110, .28));
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.js .hero-person { animation: figureIn 1.3s .45s var(--ease-out) both; }
.js .hero-figure-blob { animation: blobMorph 16s ease-in-out infinite, heroIn 1.4s .3s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; scale: .86; } }
@keyframes figureIn { from { opacity: 0; translate: 0 40px; } }

.chip {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem; border-radius: 18px;
  background: rgba(255,255,255,.95); box-shadow: var(--shadow-soft);
  font-size: .8rem; color: var(--ink-mute); line-height: 1.25;
}
.chip strong { display: block; font: 600 .95rem/1.2 var(--display); color: var(--deep); }
.chip .ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--bg-3); color: var(--sky); }
.chip-a { left: -6%; bottom: 22%; z-index: 2; }
.chip-b { right: -6%; top: 38%; z-index: 2; }
.chip-b .ico { background: var(--leaf-soft); color: var(--leaf-dark); }
.hand-note {
  position: absolute; z-index: 2; right: -6%; top: 2%;
  font: 600 1.7rem/1 var(--hand); color: var(--leaf-dark); transform: rotate(-6deg);
}

/* ----- About ----- */
.about { background: var(--bg-2); }
.about-grid { display: grid; gap: 56px; align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.about-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.blob-frame {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%;
  box-shadow: var(--shadow-lift);
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; }
.badge-first {
  position: absolute; right: -4%; bottom: 8%; max-width: 270px;
  display: flex; gap: .8rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 20px; background: var(--deep); color: #dbe9fb;
  font-size: .82rem; line-height: 1.35; box-shadow: var(--shadow-lift);
}
.badge-first-ico { display: grid; place-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #a9e07a; }
.badge-first-ico .ico { width: 22px; height: 22px; }
.badge-first strong { display: block; font: 600 .98rem/1.25 var(--display); color: #fff; margin-bottom: .15rem; }

/* Misión / Visión */
.mv { display: grid; gap: 14px; margin-top: .6rem; }
.mv-card { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mv-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; color: var(--deep); margin-bottom: .5rem; }
.mv-card h3 .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #fff; color: var(--leaf-dark); }
.mv-card:nth-child(2) h3 .ico { color: var(--sky); }
.mv-card p { font-size: .97rem; color: var(--ink-soft); }
.about-copy p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }

.goals-title { font: 600 1.05rem var(--display); letter-spacing: .02em; color: var(--ink-mute); margin-bottom: 1.2rem; text-align: center; }
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.goal {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; border-radius: 18px;
  background: var(--bg); color: var(--deep);
  font: 500 .98rem/1.3 var(--display);
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out);
}
.goal .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: var(--sky); transition: background-color .3s, color .3s; }
.goal:nth-child(even) .ico { color: var(--leaf-dark); }
@media (hover: hover) {
  .goal:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-soft); }
  .goal:hover .ico { background: var(--sky); color: #fff; }
  .goal:nth-child(even):hover .ico { background: var(--leaf); color: #fff; }
}

/* ----- Method ----- */
.method { background: var(--bg-2); padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(140px, 16vw, 200px); }
.method-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.method-head .eyebrow { justify-content: center; }
.method-intro { font-size: 1.08rem; color: var(--ink-soft); }
.method-intro-top { margin-bottom: 1rem; max-width: 46ch; margin-inline: auto; }
.method-steps { display: grid; gap: 18px; counter-reset: step; }
.method-step {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg) 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.method-step::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; background: var(--sky-soft); opacity: .45;
  animation: blobMorph 14s ease-in-out infinite;
}
.method-step:nth-child(2)::after { background: #cfe8b4; animation-delay: -4s; }
.method-step:nth-child(3)::after { background: #c9d9f2; animation-delay: -8s; }
.method-num { display: block; font: 700 2.6rem/1 var(--display); color: var(--sky); margin-bottom: 1rem; }
.method-step:nth-child(2) .method-num { color: var(--leaf); }
.method-step:nth-child(3) .method-num { color: var(--deep); }
.method-step h3 { font-size: 1.6rem; color: var(--deep); margin-bottom: .6rem; }
.method-step p { position: relative; z-index: 1; color: var(--ink-soft); }

/* ----- Director ----- */
.director { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-2) 100%); padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }
.director-grid { display: grid; gap: 56px; }
.director-photo { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.director-blob {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 46% 46% 28px 28px / 30% 30% 28px 28px;   /* arco arriba, esquinas suaves abajo */
  background: linear-gradient(160deg, var(--sky-soft), var(--bg));
  box-shadow: var(--shadow-lift), 0 0 0 8px #fff;
}
.director-blob img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.director-badge {
  position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem;
  width: max-content; max-width: 92%; margin: -34px auto 0;
  padding: .75rem 1.1rem .75rem .8rem; border-radius: 18px;
  background: var(--deep); color: #b8cbe6; font-size: .82rem; line-height: 1.3;
  box-shadow: var(--shadow-lift);
}
.director-badge strong { display: block; font: 600 .98rem/1.25 var(--display); color: #fff; }
.director-badge-ico { display: grid; place-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #f3d488, var(--gold)); color: #2a1f05; }
.director-badge-ico .ico { width: 22px; height: 22px; }
.director-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.director-stats li {
  display: flex; flex-direction: column; gap: .2rem; text-align: center;
  padding: 1rem .5rem; border-radius: 18px; background: var(--bg); line-height: 1.25;
}
.director-stats strong { font: 700 1.7rem/1 var(--display); color: var(--deep); }
.director-stats li > span { font-size: .78rem; color: var(--ink-mute); }
.director-role { font: 500 1.05rem var(--display); color: var(--leaf-dark); margin: -.4rem 0 1.2rem; }
.director-cols { display: grid; gap: 34px; margin-top: 2rem; }
.mini-title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; color: var(--deep); margin-bottom: 1.2rem; }
.mini-title .ico { color: var(--sky); width: 1.4em; height: 1.4em; }
.timeline { position: relative; display: grid; gap: 1rem; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sky-soft), var(--leaf-soft)); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: .9rem; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.tl-year {
  position: relative; z-index: 1; align-self: start;
  padding: .2rem 0; border-radius: 999px; text-align: center;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--sky-soft);
  font: 600 .8rem/1.4 var(--display); color: var(--deep);
}
.honors { display: grid; gap: .9rem; }
.honors li { display: flex; gap: .7rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.honors .ico { color: var(--leaf); margin-top: .15rem; }

/* ----- Deep section (procedures) ----- */
.deep {
  background:
    radial-gradient(60% 50% at 90% 10%, rgba(30, 155, 230, .35), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(106, 173, 37, .18), transparent 70%),
    var(--deep);
  color: #dbe7f7;
  padding-block: clamp(150px, 16vw, 210px);
}
.deep .section-title { color: #fff; }
.deep .section-title em { color: #8fd0ff; }
.proc-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.proc-intro { font-size: 1.1rem; color: #b8cbe6; }
.procs { display: grid; gap: 22px; }
.proc {
  display: grid; grid-template-rows: auto 1fr; align-content: start;
  overflow: hidden; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-light);
  transition: transform .5s var(--ease-out), background-color .4s;
}
@media (hover: hover) { .proc:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); } }
.proc-media { position: relative; background: #fff; aspect-ratio: 16 / 10; overflow: hidden; }
.proc-media > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.proc-media-light > img:first-child { object-fit: contain; padding: 6% 22% 6% 6%; }
.proc-media > img.proc-photo-top { object-position: center 18%; }
@media (hover: hover) { .proc:hover .proc-media > img:first-child { transform: scale(1.05); } }
.proc-inset {
  position: absolute; right: 4%; bottom: 6%; width: 30%; max-width: 160px;
  border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); border: 4px solid #fff; background: #fff;
}
.proc-inset-round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.proc-body { padding: 1.8rem 1.7rem 2rem; }
.proc-tag { display: inline-block; font: 600 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #a9e07a; margin-bottom: .8rem; }
.proc-body h3 { font-size: 1.45rem; color: #fff; margin-bottom: .7rem; }
.proc-body p:not(.proc-tag) { color: #b8cbe6; font-size: .97rem; }

/* ----- Services ----- */
.services { background: var(--bg); padding-top: clamp(40px, 6vw, 70px); }
.services-head { text-align: center; margin-bottom: clamp(32px, 5vw, 48px); }
.services-head .eyebrow { justify-content: center; }
.tab-list { display: none; }
.js .tab-list {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 2.4rem; width: max-content; max-width: 100%;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft);
  overflow-x: auto; scrollbar-width: none;
}
.js .tab-list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .8rem 1.3rem; border-radius: 999px;
  font: 600 .95rem/1.15 var(--display); color: var(--ink-soft); text-align: center;
  transition: background-color .3s, color .3s;
}
.tab small { display: block; font: 500 .72rem/1.3 var(--sans); color: var(--ink-mute); letter-spacing: .02em; }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; }
.tab[aria-selected="true"] small { color: #a9cdf5; }
.tab-panel { margin-bottom: 3.5rem; }
.js .tab-panel { margin-bottom: 0; }
.js .tab-panel[hidden] { display: none; }
.js .tab-panel.is-entering { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.panel-title { font-size: 1.6rem; color: var(--deep); margin-bottom: 1.4rem; }
.panel-title span { font-weight: 400; color: var(--ink-mute); font-size: .7em; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.panel-lead { max-width: 70ch; margin: 0 auto 26px; text-align: center; font-size: 1.08rem; color: var(--ink-soft); }
.conditions { display: grid; gap: 12px; }
.cond {
  position: relative; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.cond::before { content: ""; position: absolute; left: 1.4rem; top: 0; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--sky); transition: width .45s var(--ease-out); }
.cond:nth-child(3n+2)::before { background: var(--leaf); }
.cond:nth-child(3n)::before { background: var(--deep); }
.cond-ico {
  display: grid; place-content: center; width: 42px; height: 42px; margin: .35rem 0 .7rem;
  border-radius: 14px; background: #e3f2fc; color: var(--sky);
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.cond-ico .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.cond:nth-child(3n+2) .cond-ico { background: var(--leaf-soft); color: var(--leaf-dark); }
.cond:nth-child(3n) .cond-ico { background: #e1e8f5; color: var(--deep); }
@media (hover: hover) {
  .cond:hover .cond-ico { background: var(--sky); color: #fff; transform: scale(1.06); }
  .cond:nth-child(3n+2):hover .cond-ico { background: var(--leaf); color: #fff; }
  .cond:nth-child(3n):hover .cond-ico { background: var(--deep); color: #fff; }
}
.cond h4 { font-size: 1.12rem; color: var(--deep); margin: 0 0 .45rem; }
.cond h4 small { font: 500 .78rem var(--sans); color: var(--ink-mute); letter-spacing: 0; }
.cond p { font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
@media (hover: hover) {
  .cond:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
  .cond:hover::before { width: 64px; }
}

.prevent { display: grid; gap: 18px; }
.prev-card {
  overflow: hidden; border-radius: var(--radius-lg); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.prev-card figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.prev-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.95); }
.prev-card img.pos-top { object-position: center top; }
.prev-card img.pos-40 { object-position: center 40%; }
.prev-card div { padding: 1.3rem 1.5rem 1.6rem; }
.prev-card h4 { font-size: 1.2rem; color: var(--deep); margin-bottom: .5rem; }
.prev-card p { font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }
@media (hover: hover) {
  .prev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .prev-card:hover img { transform: scale(1.07); filter: saturate(1.1); }
}

.occup { display: grid; gap: 28px; align-items: center; }
.occup-figure { border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lift); }
.occup-figure img { width: 100%; height: 100%; object-fit: cover; }
.occup-list { display: grid; gap: 16px; justify-items: start; }
.occup-item { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); width: 100%; }
.occup-item h4 { font-size: 1.2rem; color: var(--deep); margin-bottom: .4rem; }
.occup-item p { color: var(--ink-soft); font-size: .96rem; }

/* ----- Programs ----- */
.programs { background: var(--bg-2); }
.programs-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 60px); }
.programs-head .eyebrow { justify-content: center; }
.programs-intro { color: var(--ink-mute); }
.prog-group { display: flex; align-items: center; gap: 1rem; font: 600 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 1.2rem; }
.prog-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prog-grid { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); align-items: start; }
.prog-grid:last-child { margin-bottom: 0; }
.prog-card {
  position: relative; display: flex; flex-direction: column; gap: 1.4rem;
  padding: 2rem 1.7rem; border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
@media (hover: hover) { .prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); } }
.prog-featured { background: linear-gradient(165deg, #fff 0%, #e8f5fd 100%); box-shadow: inset 0 0 0 2px var(--sky-soft), var(--shadow-soft); }
.prog-featured::before {
  content: "Programa completo"; position: absolute; top: -12px; right: 24px;
  padding: .35rem .8rem; border-radius: 999px; background: var(--leaf); color: #fff;
  font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.prog-kicker { font: 600 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin-bottom: .5rem; }
.prog-card h4 { font-size: 1.45rem; color: var(--deep); margin-bottom: .8rem; }
.price { display: flex; align-items: flex-start; gap: .25rem; color: var(--deep); }
.price .cur { font: 600 1.1rem/1.5 var(--display); }
.price .amt { font: 700 3rem/1 var(--display); letter-spacing: -0.03em; }
.price-light { color: #fff; }
.sessions { display: grid; gap: 1rem; flex: 1; }
.sessions > li { position: relative; padding-left: 1.4rem; }
.sessions > li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.sessions > li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 1.3rem; bottom: -1rem; width: 2px; background: var(--sky-soft); }
.sess-name { font: 600 1rem var(--display); color: var(--deep); margin-bottom: .35rem; }
.sess-name small { font: 500 .78rem var(--sans); color: var(--ink-mute); margin-left: .3rem; }
.sessions ul { display: grid; gap: .35rem; }
.sessions ul li { position: relative; padding-left: 1.1rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.sessions ul li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 6px; height: 2px; border-radius: 2px; background: var(--leaf); }
.sessions ul.sub { margin-top: .35rem; gap: .25rem; }
.sessions ul.sub li { font-size: .88rem; }
.sessions ul.sub li::before { width: 5px; height: 5px; border-radius: 50%; top: .5rem; background: var(--sky); }

/* ----- Online ----- */
.online { background: var(--bg); overflow: clip; }
.online-bg { position: absolute; inset: 0; pointer-events: none; }
.blob-c { width: 60vw; max-width: 760px; aspect-ratio: 1; left: 50%; top: 20%; translate: -50% 0; background: radial-gradient(circle, rgba(30,155,230,.16), transparent 70%); }
.online .container { position: relative; }
.online-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 60px); }
.online-head .eyebrow { justify-content: center; }
.online-intro { color: var(--ink-soft); }
.online-grid { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 64px); }
.online-card {
  position: relative; display: flex; flex-direction: column; gap: 1.2rem;
  padding: 2.4rem 1.8rem 2rem; border-radius: var(--radius-lg); color: #e6eefb; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.online-p21 { background: radial-gradient(80% 60% at 100% 0%, rgba(217,178,92,.35), transparent 70%), linear-gradient(160deg, #10131c, #1d2433); }
.online-eco { background: radial-gradient(80% 60% at 100% 0%, rgba(169,224,122,.35), transparent 70%), linear-gradient(160deg, #0b3a2a, #1b5e2c); }
.online-badge { position: absolute; top: 1.4rem; right: 1.4rem; width: 96px; height: 96px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.online-kicker { font: 700 .82rem var(--sans); letter-spacing: .16em; color: var(--gold); }
.online-eco .online-kicker { color: #a9e07a; }
.online-card h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: #fff; max-width: 15ch; }
.online-list { display: grid; gap: .8rem; flex: 1; }
.online-list li { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: start; font-size: .95rem; color: #c8d4e8; line-height: 1.5; }
.online-list .n { display: grid; place-content: center; height: 30px; border-radius: 10px; background: rgba(255,255,255,.1); font: 700 .9rem/1 var(--display); color: #fff; }
.eco-word { font-weight: 500; color: #fff; }
.eco-word b { color: #a9e07a; font-weight: 700; font-size: 1.15em; }
.online-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light); }
.launch { display: flex; flex-direction: column; line-height: 1.3; }
.launch-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa1bf; }
.launch-val { font: 600 1.05rem var(--display); color: #fff; }

.mind-strip {
  display: grid; align-items: center; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.mind-strip figure { aspect-ratio: 16 / 9; overflow: hidden; }
.mind-strip img { width: 100%; height: 100%; object-fit: cover; }
.mind-strip p { padding: 1.8rem; font: 400 clamp(1.25rem, 2.4vw, 1.7rem)/1.35 var(--display); color: var(--deep); }
.mind-strip strong { color: var(--leaf-dark); font-weight: 600; }

/* ----- Contact ----- */
.contact {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(30, 155, 230, .35), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(106, 173, 37, .22), transparent 70%),
    var(--deep);
  color: #dbe7f7;
  padding-block: clamp(150px, 16vw, 200px) clamp(90px, 10vw, 130px);
}
.contact .wave-into-deep path { fill: var(--bg); }
.contact .section-title { color: #fff; }
.contact .section-title em { color: #a9e07a; display: block; }
.contact .lead { color: #b8cbe6; margin-bottom: 2rem; }
.contact-grid { display: grid; gap: 48px; align-items: center; }
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-light);
}
.step-ico { display: grid; place-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #a9e07a; }
.step-ico .ico { width: 24px; height: 24px; }
.step h3 { font-size: 1.15rem; color: #fff; margin-bottom: .25rem; }
.step p { font-size: .94rem; color: #b8cbe6; }

/* ----- Footer ----- */
.footer { background: var(--deep-2); color: #a9bad5; padding: clamp(56px, 8vw, 80px) 0 96px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.footer-brand img { width: 110px; height: auto; padding: 12px; border-radius: 22px; background: #fff; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: .94rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .6rem 2rem; align-content: start; }
.footer-grid > * { min-width: 0; }
.footer-nav a { font-size: .95rem; transition: color .25s; }
.footer-nav a:hover { color: #fff; }
.footer-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.footer-wa { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.15rem var(--display); color: #fff; }
.footer-wa .ico { color: var(--wa); width: 1.4em; height: 1.4em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 22px; font-size: .82rem; }
.footer-credits a { color: #dbe7f7; text-decoration: underline; text-underline-offset: 3px; }

/* ----- Floating WhatsApp ----- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: .6rem;
  height: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: #fff; box-shadow: 0 16px 34px -12px rgba(23, 138, 72, .75);
  font: 600 .98rem var(--display);
  transition: transform .4s var(--ease-out), background-color .3s, opacity .4s, translate .5s var(--ease-out);
}
.wa-float .ico { width: 26px; height: 26px; }
.wa-float-label { display: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: waPulse 2.8s ease-out infinite; pointer-events: none;
}
@keyframes waPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.js .wa-float { translate: 0 120px; }
.js .wa-float.is-visible { translate: 0 0; }
@media (hover: hover) { .wa-float:hover { background: var(--wa-dark); transform: translateY(-3px); } }

/* ----- Credits page ----- */
.page-credits { background: var(--bg); }
.credits-main { max-width: 860px; margin-inline: auto; padding: 120px var(--gutter) 80px; }
.credits-main h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--deep); margin-bottom: 1rem; }
.credits-main > p { color: var(--ink-soft); margin-bottom: 2rem; }
.credits-main > p.form-result-back { margin-top: 2rem; }
.credits-list { display: grid; gap: 10px; }
.credits-list li { padding: 1rem 1.2rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .93rem; color: var(--ink-soft); }
.credits-list a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.credits-back { position: fixed; top: 20px; left: var(--gutter); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .goals { grid-template-columns: repeat(2, 1fr); }
  .prevent { grid-template-columns: repeat(2, 1fr); }
  .wa-float-label { display: inline; }
  .wa-float { right: 22px; bottom: 22px; padding: 0 22px 0 18px; }
}

@media (min-width: 720px) {
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .conditions { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .online-grid { grid-template-columns: repeat(2, 1fr); }
  .director-cols { grid-template-columns: 1.15fr 1fr; }
  .mind-strip { grid-template-columns: 1fr 1.2fr; }
  .mind-strip figure { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .mind-strip p { padding: 2.4rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; gap: .3rem; margin-left: auto; }
  .nav-links a:not(.btn) {
    position: relative; padding: .5rem .85rem; border-radius: 999px;
    font: 500 .97rem var(--display); color: var(--deep);
    transition: background-color .25s, color .25s;
  }
  .nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px;
    background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
  }
  .nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
  .nav-cta-mobile { display: none; }
  .nav-cta { display: inline-flex; padding: .75rem 1.2rem; }
  .nav-toggle { display: none; }
  .nav-logo img { height: 52px; }

  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 40px; }
  .hero-copy { padding-bottom: clamp(80px, 9vw, 120px); }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .goals { grid-template-columns: repeat(4, 1fr); }
  .director-grid { grid-template-columns: 0.82fr 1.18fr; gap: 72px; align-items: start; }
  .director-photo { position: sticky; top: calc(var(--nav-h) + 30px); }
  .procs { grid-template-columns: repeat(3, 1fr); }
  .conditions { grid-template-columns: repeat(3, 1fr); }
  .prevent { grid-template-columns: repeat(3, 1fr); }
  .occup { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1.15fr 1fr; gap: 72px; }
  .online-card { padding: 2.8rem 2.4rem 2.4rem; }
  .online-badge { width: 120px; height: 120px; top: 1.8rem; right: 1.8rem; }
}

@media (min-width: 1280px) {
  .prog-card { padding: 2.4rem 2.2rem; }
  .hero-title { font-size: clamp(3.6rem, 5.4vw, 5.1rem); }
}

@media (max-width: 539px) {
  .hero-proof { gap: .8rem 1.4rem; }
  .chip { font-size: .72rem; padding: .6rem .8rem; }
  .chip strong { font-size: .85rem; }
  .chip .ico { width: 30px; height: 30px; }
  .chip-a { left: 0; bottom: 20%; }
  .chip-b { right: 0; top: 34%; }
  .hand-note { font-size: 1.2rem; right: 4%; top: -2%; }
  .hero-person { height: min(62svh, 520px); }
  .badge-first { right: 0; max-width: 200px; }
  .director-stats strong { font-size: 1.4rem; }
  .goal { font-size: .9rem; padding: .85rem .8rem; gap: .6rem; }
  .goal .ico { width: 34px; height: 34px; padding: 7px; }
  .online-badge { width: 72px; height: 72px; top: 1rem; right: 1rem; }
  .online-card h3 { padding-right: 70px; }
  .online-foot { flex-wrap: wrap; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::before { animation: none; }
}

/* =============================================================
   10. Diplomas (credenciales del director) + lightbox
   ============================================================= */
.credentials { background: var(--bg); }
.cred-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 40px); }
.cred-head .eyebrow { justify-content: center; }
.cred-intro { color: var(--ink-soft); font-size: 1.05rem; }

.cred-filters { display: none; }
.js .cred-filters {
  display: flex; gap: 8px; margin: 0 auto 2rem; padding: 4px 2px 10px;
  justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
}
.js .cred-filters::-webkit-scrollbar { display: none; }
.chip-filter {
  flex: none; padding: .6rem 1.05rem; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font: 500 .9rem var(--display); color: var(--ink-soft);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip-filter span { margin-left: .3rem; font-size: .78rem; color: var(--ink-mute); }
.chip-filter.is-active { background: var(--deep); color: #fff; box-shadow: none; }
.chip-filter.is-active span { color: #a9cdf5; }
@media (hover: hover) { .chip-filter:not(.is-active):hover { box-shadow: inset 0 0 0 1.5px var(--sky); color: var(--deep); } }

.diplomas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.diploma[hidden] { display: none; }
.diploma-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.diploma-frame {
  margin: 12px 12px 0; padding: 8px; border-radius: 6px; aspect-ratio: 7 / 5;
  background: linear-gradient(145deg, #f3efe6, #ffffff); box-shadow: 0 10px 22px -14px rgba(11, 47, 110, .45), inset 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
}
.diploma-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .8s var(--ease-out); }
.diploma-meta { padding: .9rem 1rem 1.1rem; }
.diploma-year {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .45rem;
  background: var(--leaf-soft); color: var(--leaf-dark); font: 600 .74rem/1.3 var(--display);
}
.diploma-meta h3 { font-size: .95rem; line-height: 1.3; color: var(--deep); margin-bottom: .3rem; letter-spacing: -0.01em; }
.diploma-meta p { font-size: .8rem; line-height: 1.4; color: var(--ink-mute); }
@media (hover: hover) {
  .diploma-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .diploma-link:hover .diploma-frame img { transform: scale(1.04); }
}
.cred-more { display: none; text-align: center; margin-top: 2rem; }
.js .cred-more.is-visible { display: block; }

.lightbox {
  width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; margin: auto;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 20, 45, .86); }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb-figure img { max-width: 100%; max-height: 78vh; width: auto; border-radius: 6px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb-figure figcaption { color: #e6eefb; text-align: center; font-size: .95rem; max-width: 70ch; }
.lb-close, .lb-nav {
  position: fixed; display: grid; place-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font: 400 2rem/1 var(--display); transition: background-color .25s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; z-index: 2; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (min-width: 720px) {
  .diplomas { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .js .cred-filters { justify-content: center; flex-wrap: wrap; }
}
@media (min-width: 1280px) {
  .diplomas { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 539px) {
  .diploma-meta h3 { font-size: .86rem; }
  .diploma-meta { padding: .75rem .8rem .9rem; }
  .diploma-frame { margin: 8px 8px 0; padding: 5px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}

/* ----- Entrevistas y videos ----- */
.videos { display: grid; gap: 16px; }
.video-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 20, 45, .45)); }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.video-play::before { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--deep); }
.video-len { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: .15rem .45rem; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font: 600 .75rem/1.3 var(--sans); }
.video-meta { padding: 1rem 1.1rem 1.2rem; }
.video-kind { display: inline-block; margin-bottom: .45rem; padding: .2rem .55rem; border-radius: 999px; background: #fde3e1; color: #b3261e; font: 600 .74rem/1.3 var(--display); }
.video-kind.is-channel { background: var(--bg-3); color: var(--deep); }
.video-meta h3 { font-size: 1.02rem; line-height: 1.3; color: var(--deep); margin-bottom: .3rem; }
.video-meta p { font-size: .82rem; color: var(--ink-mute); }
@media (hover: hover) {
  .video-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .video-link:hover .video-thumb img { transform: scale(1.05); }
  .video-link:hover .video-play { transform: scale(1.1); background: #fff; }
}
.videos-more { text-align: center; margin-top: 2rem; }
.btn-yt { background: #e62117; color: #fff; box-shadow: 0 12px 28px -12px rgba(230, 33, 23, .6); }
@media (hover: hover) { .btn-yt:hover { background: #c41a12; } }
.footer-contact { display: grid; align-content: start; justify-items: start; gap: .6rem; }

/* ----- Dirección del consultorio ----- */
.contact-place {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-top: 1.8rem; font-style: normal; font-size: .95rem; color: #b8cbe6;
}
.contact-place > .ico { width: 1.5em; height: 1.5em; margin-top: .1em; color: #a9e07a; }
.contact-place strong { display: block; color: #fff; font: 600 1.02rem var(--display); }
.contact-place a { color: #dbe7f7; text-decoration: underline; text-decoration-color: rgba(219,231,247,.4); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
.contact-place a:hover { color: #fff; text-decoration-color: #fff; }
.contact-hours { display: block; margin-top: .15rem; font-size: .88rem; }
.footer-address { display: grid; gap: .2rem; margin-top: .3rem; font-style: normal; font-size: .9rem; }
.footer-address a { display: inline-flex; align-items: flex-start; gap: .5rem; color: #dbe7f7; transition: color .25s; }
.footer-address a:hover { color: #fff; }
.footer-address .ico { width: 1.3em; height: 1.3em; color: #a9e07a; }
.footer-address span { padding-left: 1.8em; font-size: .84rem; }

.lightbox-video { width: min(1000px, 88vw); }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: .9rem; text-align: center; color: #e6eefb; font-size: .98rem; }

@media (min-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) { .videos { grid-template-columns: repeat(3, 1fr); } }

/* ----- Listas de una fila con "Ver más" ----- */
[data-one-row] > [hidden] { display: none !important; }
.row-more { display: none; text-align: center; margin-top: 1.6rem; }
.js .row-more.is-visible { display: block; }
.video-kind.is-reel { background: #e7f0fd; color: #1877f2; }
.video-frame.is-vertical { aspect-ratio: 9 / 16; width: min(400px, 100%, calc(78vh * 9 / 16)); margin-inline: auto; }
.lightbox-video:has(.video-frame.is-vertical) { width: min(440px, 92vw); }
/* En celular el reel vertical empieza debajo de la X de cerrar, para que no la tape,
   y su alto se ajusta a la pantalla visible (dvh descuenta la barra del navegador) */
@media (max-width: 719px) {
  .lightbox-video:has(.video-frame.is-vertical) { padding-top: 72px; }
  .video-frame.is-vertical {
    width: min(400px, 100%, calc((100vh - 200px) * 9 / 16));
    width: min(400px, 100%, calc((100dvh - 200px) * 9 / 16));
  }
}

/* =============================================================
   11. Ajustes de celular (< 720 px)
   ============================================================= */
@media (max-width: 719px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; }

  /* Nosotros: sin la foto de verduras, para que no choque con la figura de la portada */
  .about-visual { display: none; }
  .about-grid { gap: 0; }

  /* Portada: figura más baja y sin elementos que tapen al director */
  .hero-person { height: min(52svh, 430px); }
  .hand-note { display: none; }
  .hero-grid { gap: 20px; }
  .hero-actions { margin-bottom: 1.6rem; }
  .chip { padding: .5rem .7rem; gap: .5rem; }
  .chip-a { left: 0; bottom: 14%; }
  .chip-b { right: 0; top: 26%; }

  /* Pestañas repartidas en todo el ancho, sin cortes */
  .js .tab-list {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    width: 100%; max-width: 100%; border-radius: 18px; overflow: visible;
  }
  .tab { padding: .7rem .35rem; font-size: .82rem; line-height: 1.2; white-space: normal; border-radius: 14px; }
  .tab small { display: none; }

  /* Filtros de diplomas en varias líneas, sin desplazamiento lateral */
  .js .cred-filters { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 6px; }
  .chip-filter { padding: .5rem .8rem; font-size: .8rem; }

  /* Filas deslizables con el dedo: se ve una tarjeta y asoma la siguiente */
  .js [data-one-row],
  .js .diplomas {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .js [data-one-row]::-webkit-scrollbar,
  .js .diplomas::-webkit-scrollbar { display: none; }
  .js [data-one-row] > *,
  .js .diplomas > * {
    flex: 0 0 84%; width: 84%; min-width: 0; max-width: 84%;   /* min-width: 0 evita que Safari estire la tarjeta al tamaño de la imagen */
    scroll-snap-align: start;
  }
  .js .diplomas > * { flex-basis: 74%; width: 74%; max-width: 74%; }
  .js [data-one-row] img,
  .js .diplomas img { max-width: 100%; }
  .js .row-more, .js .cred-more { display: none !important; }
  .js .swipe-hint { display: flex; }
}
.swipe-hint {
  display: none; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .2rem; font-size: .8rem; color: var(--ink-mute);
}
.swipe-hint::after { content: "→"; font-size: 1rem; animation: swipeNudge 1.6s ease-in-out infinite; }
@keyframes swipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* Tableta (720–959 px): una sola columna, figura de la portada contenida */
@media (min-width: 720px) and (max-width: 959px) {
  .hero-person { height: min(58svh, 600px); }
  .hero-visual { max-width: 480px; }
  .hand-note { right: 0; top: 0; }
}

/* =============================================================
   Redes sociales (pie de página)
   ============================================================= */
.footer-label-social { margin: .9rem 0 0; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a {
  display: grid; place-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line-light); color: #dbe7f7;
  transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.social .ico { width: 20px; height: 20px; }
.social a:hover { background: #fff; color: var(--deep); transform: translateY(-2px); }

/* =============================================================
   Formulario para empresas (pestaña Nutrición ocupacional)
   ============================================================= */
.occup-form {
  display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--radius-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.occup-form-intro h4 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--deep); margin-bottom: .7rem; }
.occup-form-intro > p:not(.eyebrow) { color: var(--ink-soft); }
.occup-form-alt { margin-top: 1rem; font-size: .92rem; }
.occup-form-alt a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.form { display: grid; gap: 18px; justify-items: start; }
.form-grid { display: grid; gap: 14px 16px; width: 100%; }
.field { display: grid; gap: .35rem; min-width: 0; border: 0; padding: 0; }
.field > span, .field legend { font: 600 .88rem var(--sans); color: var(--deep); padding: 0; }
.field b, .check b { color: var(--leaf-dark); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 0; border-radius: 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--sky); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #d64545; background-color: #fff6f6; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: .2rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--deep); }
.check-consent { font-size: .88rem; }
.check-consent input[aria-invalid="true"] { outline: 2px solid #d64545; outline-offset: 2px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-status:empty { display: none; }
.form-status { width: 100%; padding: .9rem 1.1rem; border-radius: 14px; font-size: .95rem; }
.form-status.is-ok { background: var(--leaf-soft); color: #2f5a0b; }
.form-status.is-error { background: #fdeaea; color: #8f2424; }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .occup-form { grid-template-columns: .8fr 1.5fr; gap: 56px; }
}

/* El formulario de empresas se abre con el botón (sin JavaScript queda siempre visible) */
.js .occup-form:not(.is-open) { display: none; }
.js .occup-form.is-open { animation: panelIn .6s var(--ease-out); }
.btn-toggle .ico { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.btn-toggle[aria-expanded="true"] .ico { transform: rotate(-90deg); }
@media (hover: hover) { .btn-toggle:hover .ico { transform: rotate(90deg) translateX(2px); } .btn-toggle[aria-expanded="true"]:hover .ico { transform: rotate(-90deg) translateX(2px); } }

/* Sprite de iconos SVG: fuera del flujo (antes era un style="" en index.html) */
.svg-sprite { position: absolute; }
