/* JS Kinesio — sitio público
   Paleta tomada del logo (cinta azul) y del video del láser (celeste clínico + coral). */
:root {
  --ink: #0b1b33;
  --ink-2: #33445f;
  --ink-3: #5d6d86;
  --paper: #f5f8fd;
  --paper-2: #eaf1fb;
  --card: #ffffff;
  --line: #d9e3f2;
  --blue: #1f5fbf;
  --blue-2: #3f7fe0;
  --blue-soft: #cfe0fb;
  --sky: #8fc0ff;
  --coral: #ff6a4d;
  --coral-soft: #ffe1d9;
  --navy: #071428;
  --navy-2: #0e2244;
  --ok: #138a63;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 12px 32px -12px rgba(11, 27, 51, .18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.35em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 95, 191, .7); }
.btn-primary:hover { background: #1a54aa; }
.btn-wa { background: #1fa855; color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-2); }
.btn-light { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(245, 248, 253, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 42px; }
.brand span { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand small { display: block; font-weight: 600; font-size: .68rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .92rem;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav .btn { padding: .65em 1.05em; font-size: .9rem; }
.nav-cta-desktop { display: none; }
.menu-cta { display: none; }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
}

/* Menú del celular */
.menu-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .85); display: grid; place-content: center; gap: 5px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 999px) {
  .site-header.menu-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .menu-open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; overflow-y: auto;
    padding: 12px var(--gutter) 32px; background: var(--paper);
    animation: menu-in .25s ease both;
  }
  .menu-open .nav-links a:not(.btn) {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink);
    padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .menu-open .menu-cta { display: block; margin-top: 20px; }
  .menu-open .menu-cta .btn { width: 100%; padding: 1em; font-size: 1rem; }
}
@media (min-width: 1000px) { .menu-btn { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (con cuerpo de puntos de fondo, estático) ---------- */
.hero { position: relative; overflow: hidden; padding: 112px 0 28px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg canvas { width: 100%; height: 100%; }
.hero-bg .glow {
  position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 192, 255, .5), rgba(143, 192, 255, 0));
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-top: 16px; }
.hero h1 .accent { color: var(--blue); font-style: italic; }
.hero .lead { margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue); }
.bps-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bps-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-2);
}
.bps-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bps-dot.bio { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.bps-dot.psico { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.bps-dot.social { background: var(--ok); box-shadow: 0 0 0 3px #d8f3e8; }

/* Celular: la figura queda tenue detrás del texto */
@media (max-width: 899px) {
  .hero-bg { opacity: .32; }
  .hero-copy { text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper); }
  .hero .btn, .bps-chips li { text-shadow: none; }
}
@media (min-width: 900px) {
  .hero { padding: 120px 0 64px; min-height: min(720px, 92vh); display: flex; align-items: center; }
  .hero-bg { left: 50%; opacity: .78; }
  .hero-inner { width: 100%; }
  .hero-copy { max-width: 52%; }
}

/* ---------- El recorrido del paciente ----------
   Sin JS o con "reducir movimiento": bloques normales con el cuerpo quieto.
   Con .is-live: sección fija (sticky) de 3 pantallas de alto = 2 pantallas de scroll. */
.journey { position: relative; padding: 32px 0 72px; }
.journey-sticky { position: relative; isolation: isolate; }
#journey-canvas { display: block; width: 100%; height: 56vh; max-height: 560px; }
.journey-steps { display: none; }
.moments { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.moment h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.moment > p { margin-top: 6px; color: var(--ink-2); }
.moment .btn { margin-top: 16px; }
.moment-link { display: inline-flex; gap: 6px; margin-top: 12px; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--blue); }
.moment-link:hover { text-decoration: underline; }

/* Versión animada */
.journey.is-live { height: 250vh; height: 250svh; padding: 0; } /* 1,5 pantallas de scroll para los 3 pasos */
.is-live .journey-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-live #journey-canvas { position: absolute; inset: 0; height: 100%; max-height: none; z-index: -1; }
.is-live .journey-text { padding-top: 92px; }
.is-live .journey-steps {
  display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0;
}
.is-live .journey-steps li {
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); color: var(--ink-3);
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.is-live .journey-steps li.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.is-live .moments { display: grid; grid-template-columns: 1fr; margin-top: 14px; max-width: 360px; }
.is-live .moment {
  grid-area: 1 / 1; background: none; border: 0; box-shadow: none; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s;
}
.is-live .moment.on { opacity: 1; visibility: visible; transition: opacity .55s ease, visibility 0s; }
.is-live .moment h3 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.is-live .moment > p { text-shadow: 0 0 14px var(--paper), 0 0 4px var(--paper); }
/* Celular: el texto de cada paso va en una tarjeta translúcida abajo del cuerpo,
   dentro de la misma pantalla y por encima de la barra fija de WhatsApp/Llamar */
@media (max-width: 899px) {
  .is-live .journey-text { padding-top: 84px; }
  .is-live .moments {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 100px; max-width: none; margin: 0;
    padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(217, 227, 242, .9);
    background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px -14px rgba(11, 27, 51, .3);
  }
  .is-live .moment h3 { font-size: 1.45rem; }
  .is-live .moment { display: none; }
  .is-live .moment.on { display: block; animation: tag-in .45s ease both; }
  .is-live .moment > p { text-shadow: none; font-size: .95rem; margin-top: 2px; }
  .is-live .moment .btn { width: 100%; margin-top: 12px; }
  .is-live .moment-link { margin-top: 8px; }
}
@keyframes tag-in { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) {
  .is-live .journey-text { padding-top: 120px; }
}

/* ---------- Secciones genéricas ---------- */
section.block { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.grid-2 { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Evidencia */
.evidence {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
}
.evidence .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
}
.evidence .tag.strong { background: #d8f3e8; color: var(--ok); }
.evidence .tag.moderate { background: var(--blue-soft); color: var(--blue); }
.evidence .tag.limited { background: #fff1d6; color: #9a6400; }
.evidence .src { margin-top: auto; font-size: .84rem; color: var(--ink-3); }
.evidence .src a { color: inherit; }
.ref { font-size: .72em; vertical-align: super; text-decoration: none; font-weight: 700; margin-left: 2px; }

/* ---------- Láser (sección oscura) ---------- */
.laser { background: radial-gradient(1200px 600px at 80% 0%, #17305c 0%, var(--navy) 60%); color: #e8eefb; overflow: hidden; }
.laser .eyebrow { color: var(--coral); }
.laser .lead, .laser p { color: #b9c7e2; }
.laser h2, .laser h3 { color: #fff; }
.laser .beam {
  position: absolute; top: -20%; right: 12%; width: 2px; height: 70%;
  background: linear-gradient(180deg, rgba(255, 106, 77, 0), rgba(255, 106, 77, .9), rgba(255, 106, 77, 0));
  filter: blur(1px); transform: rotate(18deg); opacity: .5;
}
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
  background: #0d1a33; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(7, 20, 40, 0) 40%, rgba(7, 20, 40, .55));
  color: #fff; font: inherit;
}
.video-frame .play span {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25); font-weight: 700;
}
.video-frame .play b { width: 42px; height: 42px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.video-frame .play b svg { width: 18px; height: 18px; margin-left: 3px; }
.video-frame.playing .play { display: none; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); padding: 16px; background: rgba(255, 255, 255, .03); }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; line-height: 1.1; }
.fact span { font-size: .86rem; color: #a6b5d3; }
.laser .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.laser .card p { color: #b9c7e2; }
.laser .evidence .tag { background: rgba(255, 255, 255, .08); color: #dbe4f7; }
.laser .evidence .tag.moderate { background: rgba(143, 192, 255, .16); color: var(--sky); }
.laser .evidence .tag.limited { background: rgba(255, 196, 92, .14); color: #ffcd75; }
.laser .evidence .src { color: #8ea0c3; }
.how { display: grid; gap: 14px; margin-top: 8px; counter-reset: how; }
.how li { list-style: none; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.how li::before {
  counter-increment: how; content: counter(how);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 106, 77, .14); color: var(--coral); font-weight: 800;
}
.how { padding: 0; margin: 0; }
.how b { color: #fff; display: block; }

/* ---------- Vestibular ---------- */
.vestibular { background: linear-gradient(180deg, var(--paper) 0%, #e6effc 100%); }
.ear-stage { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.ear-stage canvas { width: 100%; height: 100%; }
.ear-stage .label {
  position: absolute; font-size: .78rem; font-weight: 700; color: var(--ink-2);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
}
.symptoms { display: grid; gap: 10px; margin-top: 24px; }
.symptom { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.symptom svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.alert {
  margin-top: 20px; display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-sm);
  background: #fff3f0; border: 1px solid #ffd0c4; color: #8a2a14; font-size: .94rem;
}
.alert svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* ---------- Nutrición ---------- */
.nutri-hero { border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #fff 0%, #eef9f3 100%); border: 1px solid #d7efe2; }
.nutri-hero .eyebrow { color: var(--ok); }
.nutri .card .icon { background: #d8f3e8; color: var(--ok); }

/* ---------- Primera consulta ---------- */
.timeline { display: grid; gap: 16px; counter-reset: tl; padding: 0; margin: 0; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { list-style: none; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.timeline li::before {
  counter-increment: tl; content: "0" counter(tl);
  font-family: var(--font-display); font-size: 2.4rem; color: var(--blue-soft); font-weight: 600; display: block; line-height: 1; margin-bottom: 12px;
  -webkit-text-stroke: 1px var(--blue-2);
}
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--ink-2); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- Bibliografía ---------- */
.biblio { background: var(--paper-2); }
.biblio ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); columns: 1; }
@media (min-width: 900px) { .biblio ol { display: block; columns: 2; column-gap: 48px; } .biblio li { break-inside: avoid; margin-bottom: 12px; } }
.biblio a { color: var(--ink); font-weight: 600; text-decoration-color: var(--blue-soft); text-underline-offset: 3px; }

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: #dbe4f7; }
.contact h2 { color: #fff; }
.contact .lead { color: #b9c7e2; }
.contact-list { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list svg { width: 22px; height: 22px; color: var(--sky); flex: none; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.pending { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff1d6; color: #9a6400; vertical-align: middle; }

/* ---------- Footer ---------- */
footer { background: #050e1d; color: #8ea0c3; font-size: .88rem; padding: 40px 0 120px; }
footer p + p { margin-top: 10px; }
@media (min-width: 1000px) { footer { padding-bottom: 40px; } }

/* ---------- Barra fija en celular ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(11, 27, 51, .35); border: 1px solid var(--line);
  transform: translateY(140%); transition: transform .35s ease;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { padding: .8em 1em; }
@media (min-width: 1000px) { .mobile-cta { display: none; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- WhatsApp por tratamiento ---------- */
.topic-cta {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.topic-cta p { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.topic-cta.dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.laser .topic-cta.dark p { color: #fff; }
@media (max-width: 559px) { .topic-cta .btn { width: 100%; } }

/* ---------- Blog (tarjetas) ---------- */
.blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--blue-soft); }
.post-card h3 { margin: 0; }
.post-card[hidden] { display: none; }
.post-cat {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue);
}
.post-card[data-cat="Casos"] .post-cat { background: var(--coral-soft); color: #b8381f; }
.post-card[data-cat="Reflexiones"] .post-cat { background: #d8f3e8; color: var(--ok); }
.post-meta { margin-top: auto; font-size: .84rem; color: var(--ink-3); }

/* ---------- Opiniones e Instagram ---------- */
.social-grid { align-items: stretch; }
.social-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); }
.social-card .hero-actions { margin-top: 6px; }
.stars { display: flex; gap: 4px; color: #f5a623; }
.stars svg { width: 22px; height: 22px; }
.insta-head { display: flex; align-items: center; gap: 14px; }
.insta-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 80%, #4f5bd5);
}
.insta-icon svg { width: 28px; height: 28px; }
.social-grid { grid-template-columns: minmax(0, 1fr) !important; }
.social-card { min-width: 0; } /* sin esto la fila de Instagram ensancha toda la página en el celular */
.insta-posts {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.insta-posts iframe {
  width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); scroll-snap-align: start;
}
.social-card > .btn { align-self: flex-start; }
.nav-links .menu-cta .btn-wa { color: #fff; display: flex; }

/* ---------- Páginas del blog ---------- */
.page-blog main { padding-top: 72px; }
.blog-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); }
.blog-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-top: 14px; }
.blog-hero .lead { margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filters button {
  font: inherit; font-weight: 700; font-size: .9rem; padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-list { padding-bottom: clamp(80px, 10vw, 120px); }

.post { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(80px, 10vw, 120px); }
.post .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: .92rem; }
.post .back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.post header { margin: 28px 0 36px; display: grid; gap: 16px; }
.post h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.post .post-meta { font-size: .9rem; }
.post-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-top: 1.8em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-body strong { color: var(--ink); }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--coral);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--ink);
}
.post-body .alert { margin-top: 1.6em; }
.post-refs { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.post-refs ol { padding-left: 1.2em; }
.post-end { margin-top: 48px; }
.post header .post-cat { justify-self: start; }

/* ---------- Fotos y videos del consultorio ---------- */
.tile {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow); isolation: isolate;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #dbe4f7; font-size: .9rem; line-height: 1.4;
  background: linear-gradient(to top, rgba(7, 20, 40, .85), rgba(7, 20, 40, 0));
}
.tile figcaption b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 2px; }

/* Bento del espacio */
.espacio { background: linear-gradient(to bottom, var(--paper), var(--paper-2)); overflow: hidden; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.bento .tile-video { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.bento .tile:not(.tile-video) { aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; height: min(78vh, 720px); }
  .bento .tile-video { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .bento .tile:not(.tile-video) { aspect-ratio: auto; }
}
@media (max-width: 559px) {
  .bento .tile:not(.tile-video) figcaption { padding: 36px 12px 12px; font-size: .78rem; }
  .bento .tile:not(.tile-video) figcaption b { font-size: 1.02rem; }
}

/* Carrusel de ejercicios */
.reel-head { margin: clamp(56px, 7vw, 88px) 0 20px; display: grid; gap: 6px; }
.reel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.reel::-webkit-scrollbar { display: none; }
.clip {
  flex: 0 0 clamp(170px, 42vw, 240px); aspect-ratio: 9 / 16; margin: 0; position: relative;
  border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: var(--paper-2); box-shadow: var(--shadow);
}
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Láser */
.laser-media { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 56px; }
.laser-media .tile { aspect-ratio: 4 / 5; background: var(--navy-2); box-shadow: none; border: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .laser-media .tile { aspect-ratio: 16 / 11; } }
@media (max-width: 559px) {
  .laser-media figcaption { padding: 36px 12px 12px; font-size: .78rem; }
  .laser-media figcaption b { font-size: 1.02rem; }
}


/* Contacto */
.contact-media { display: grid; gap: 14px; }
.contact-media .tile { aspect-ratio: 16 / 10; box-shadow: none; }
.contact-media .tile img { object-position: 50% 30%; }
.contact-media .map { aspect-ratio: 16 / 10; }

@media (prefers-reduced-motion: reduce) { .tile img, .tile video { transition: none; } .tile:hover img, .tile:hover video { transform: none; } }
.laser-media video { object-position: 50% 72%; }
.contact-media .facade { aspect-ratio: 4 / 3; }
.contact-media .facade img { object-position: 50% 42%; }
@media (min-width: 560px) and (max-width: 899px) { .bento .tile-video { aspect-ratio: 16 / 10; } }

/* ---------- Menú: compacto en compu, completo en celular ---------- */
@media (min-width: 1000px) { .nav-links .m-only { display: none; } }
@media (max-width: 999px) { .nav-links .d-only { display: none; } }

/* ---------- Resumen de servicios ---------- */
.servicios { padding-bottom: 0 !important; }
.svc-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.svc {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink-2); font-size: .9rem; line-height: 1.45;
  transition: transform .25s ease, border-color .25s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--blue-soft); }
.svc b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.svc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.svc-icon svg { width: 22px; height: 22px; }
@media (max-width: 559px) { .svc { padding: 16px; } .svc b { font-size: 1.08rem; } }

/* ---------- RPG ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
}
.checks svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checks b { display: block; color: var(--ink); }

/* ---------- Plantillas ---------- */
.plantillas { background: var(--paper-2); }
.plantillas-grid { display: grid; gap: 32px; align-items: center; }
.plantillas-clip { aspect-ratio: 9 / 14; max-height: 640px; width: 100%; }
@media (min-width: 900px) { .plantillas-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
@media (max-width: 899px) { .plantillas-clip { aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; } }
.how.light b { color: var(--ink); }
.how.light div { color: var(--ink-2); }

/* ---------- Psicología ---------- */
.psico-card {
  display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #f1ecfb, #e7f0fd); border: 1px solid #e0d8f3;
}
.psico .eyebrow { color: #7353b8; }
.psico-side { display: grid; gap: 14px; }
@media (min-width: 900px) { .psico-card { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; } }


/* ---------- Equipo ---------- */
.team-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em;
}
.member h3 { font-size: 1.25rem; }
.member .role { color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.member .cred { color: var(--ink-3); font-size: .88rem; margin-top: 2px; }
.member-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.member-link svg { width: 16px; height: 16px; }


.journey:not(.has-3d) #journey-canvas { display: none; }
h2.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; }
.is-live .journey-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 38% 46% at 50% 48%, rgba(143, 192, 255, .32), rgba(143, 192, 255, 0) 70%);
}
@media (max-width: 899px) { .is-live .journey-sticky::before { background: radial-gradient(ellipse 60% 34% at 50% 36%, rgba(143, 192, 255, .34), rgba(143, 192, 255, 0) 70%); } }

/* ---------- Obras sociales ---------- */
.obras-card {
  padding: clamp(22px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--paper-2), #ffffff); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.obras-head { display: grid; gap: 20px; align-items: end; margin-bottom: 22px; }
@media (min-width: 900px) { .obras-head { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.obras-search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
}
.obras-search:focus-within { border-color: var(--blue-2); }
.obras-search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.obras-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; width: 100%; color: var(--ink); }
.obras-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-height: 320px; overflow-y: auto; }
.obras-list li {
  padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
}
.obras-list li[hidden] { display: none; }
.obras-empty { margin-top: 10px; }

/* Con el menú abierto el header no puede tener desenfoque: el backdrop-filter
   encierra al panel fijo dentro del header y el menú queda cortado */
.site-header.menu-open, .site-header.menu-open.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
