/* =========================================================
   Respira Mejor — Premium effects (animated gradients, glass, bento,
   marquee, counter, refined hover). Capa adicional sobre site.css.
   ========================================================= */

/* === Smooth scroll y header offset === */
html { scroll-padding-top: 88px; }

/* === Noise texture overlay (premium feel) === */
.noise::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .04 0 0 0 0 .15 0 0 0 0 .27 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.45'/></svg>");
  background-size: 200px 200px;
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.noise > * { position: relative; z-index: 1; }

/* DEPRECATED v3 — reemplazado por .hero-split en landing. TODO Task 17: eliminar tras migrar sobre-el-doctor y preguntas-frecuentes */
/* === Hero v2: signature breath-wave + orbes flotantes === */
.hero-pro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 112px);
  padding-inline: clamp(16px, 4vw, 32px);
  background:
    linear-gradient(180deg, #fbfeff 0%, #eef9fc 100%);
}
/* Signature: respiratory wave grid en fondo (firma única Respira Mejor) */
.hero-pro::before {
  content: ""; position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 100 Q 200 40 400 100 T 800 100 T 1200 100' stroke='%2300b4d8' stroke-width='1.4' stroke-opacity='.28' fill='none'/%3E%3Cpath d='M0 130 Q 200 70 400 130 T 800 130 T 1200 130' stroke='%2306a77d' stroke-width='1.4' stroke-opacity='.22' fill='none'/%3E%3Cpath d='M0 160 Q 200 100 400 160 T 800 160 T 1200 160' stroke='%230077b6' stroke-width='1.4' stroke-opacity='.16' fill='none'/%3E%3C/svg%3E");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-pro::after {
  content: ""; position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: -2;
  will-change: transform;
  top: -20vmax; right: -20vmax;
  background: radial-gradient(circle, rgba(0,180,216,.42) 0%, transparent 60%);
  animation: orb-drift-a 22s ease-in-out infinite alternate;
}
/* Orbe leaf como elemento adicional */
.hero-pro .hero-pro__container::after {
  content: ""; position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: -2;
  will-change: transform;
  bottom: -25vmax; left: -15vmax;
  background: radial-gradient(circle, rgba(6,167,125,.38) 0%, transparent 65%);
  animation: orb-drift-b 26s ease-in-out infinite alternate;
}
@keyframes orb-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 4vw) scale(1.08); }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, -3vw) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pro::before, .hero-pro::after { animation: none; }
}

.hero-pro__container {
  max-width: 1240px; margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .hero-pro__container { grid-template-columns: 1fr; } }

/* === Premium eyebrow badge === */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(2,62,138,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ocean);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 16px rgba(2,62,138,.06);
}
.badge-pill .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf);
  position: relative;
  flex: 0 0 auto;
}
.badge-pill .pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  opacity: .6;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* DEPRECATED v3 — reemplazado por .hero-h1 en landing. TODO Task 17: eliminar tras migrar sobre-el-doctor y preguntas-frecuentes */
/* === Hero headline premium — signature italic con underline cursivo === */
.headline-pro {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 18px 0 22px;
  color: var(--ink);
}
.headline-pro em {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  background: linear-gradient(120deg, #03045e 0%, var(--sea) 30%, var(--sky) 55%, var(--leaf) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 220% auto;
  animation: shimmer-text 9s ease-in-out infinite;
  padding-bottom: 6px;
}
/* Signature: underline curvo SVG bajo italic words */
.headline-pro em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.06em;
  height: .22em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 50 1 100 6 T 198 5' stroke='%2306a77d' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .85;
  pointer-events: none;
}
@keyframes shimmer-text {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .headline-pro em { animation: none; }
}
/* Aplicar mismo signature underline a section-head h2 em */
.section-head h2 em {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.section-head h2 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.05em;
  height: .18em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 50 1 100 6 T 198 5' stroke='%2306a77d' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .6;
  pointer-events: none;
}

.lead-pro {
  font-size: clamp(1.05rem, 1vw + .85rem, 1.18rem);
  line-height: 1.65;
  max-width: 56ch;
  color: var(--ink);
  margin: 0 0 28px;
}
.lead-pro strong { color: var(--ocean-deep); }
/* Resalte de instituciones/universidades — azul de marca + subrayado fino de firma */
.hl-inst {
  font-weight: 700;
  color: var(--sea);
  background-image: linear-gradient(transparent calc(100% - 3px), color-mix(in oklab, var(--sky) 42%, transparent) 0);
  background-repeat: no-repeat;
  padding-bottom: 1px;
}

/* === Stats con counter scroll-driven === */
.stats-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  padding: 24px 0;
  border-block: 1px solid var(--border);
  margin-bottom: 28px;
}
.stats-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); }
@media (max-width: 640px) {
  .stats-row--4 { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}
.stat-pro__num {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--ocean), var(--sea) 50%, var(--leaf));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -.025em;
  display: block;
}
.stat-pro__num small {
  font-size: .55em;
  vertical-align: .3em;
  font-weight: 700;
  margin-left: 2px;
}
.stat-pro__label {
  font-size: .8rem;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: .02em;
  display: block;
}

/* === Buttons con shimmer === */
.btn-pro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-pro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  z-index: 0;
}
.btn-pro:hover::after { transform: translateX(120%); }
.btn-pro > * { position: relative; z-index: 1; }

/* DEPRECATED v3 — reemplazado por .portrait-editorial en landing. TODO Task 17: eliminar tras migrar bio-narrative, sobre-el-doctor y preguntas-frecuentes */
/* === Premium portrait frame con triple ring + signature pulse === */
.portrait-pro {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
/* Signature: pulse de "respiración" SVG decorativo flotando junto al portrait */
.portrait-pro::before {
  content: "";
  position: absolute;
  top: -8px; left: -16px;
  width: 88px; height: 88px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='34' fill='none' stroke='%2306a77d' stroke-width='1' stroke-opacity='.35'/%3E%3Ccircle cx='40' cy='40' r='24' fill='none' stroke='%2306a77d' stroke-width='1' stroke-opacity='.55'/%3E%3Cpath d='M14 40 L26 40 L30 30 L36 50 L42 22 L48 50 L52 40 L66 40' stroke='%2306a77d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: none;
  animation: breath-pulse 4s ease-in-out infinite;
}
@keyframes breath-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-pro::before { animation: none; }
}
.portrait-pro__ring {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  padding: 6px;
  background: conic-gradient(from 220deg, var(--sky) 0deg, var(--leaf) 120deg, var(--sea) 240deg, var(--sky) 360deg);
  box-shadow:
    0 30px 60px -20px rgba(2,62,138,.35),
    0 18px 36px -18px rgba(0,180,216,.25),
    0 0 0 1px rgba(255,255,255,.4) inset;
  animation: ring-rotate 30s linear infinite;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}
.portrait-pro__ring > .portrait-pro__inner {
  animation: ring-rotate 30s linear infinite reverse;
}
@media (prefers-reduced-motion: reduce) {
  .portrait-pro__ring,
  .portrait-pro__ring > .portrait-pro__inner { animation: none; }
}
.portrait-pro__inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(var(--r-2xl) - 6px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--mist), var(--moss));
}
.portrait-pro__inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.portrait-pro__halo {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(0,180,216,.45), transparent 60%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}
.portrait-pro__chip {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(10,37,64,.78);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .82rem;
  line-height: 1.45;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 2;
}
.portrait-pro__creds {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px;
  z-index: 2;
}
.cred-glass {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ocean-deep);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 20px rgba(2,62,138,.18);
}

/* === Pills tag con borde gradient === */
.tag-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.tag-pill {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: .85rem; font-weight: 600;
  color: var(--ocean);
  text-decoration: none;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: transform .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 2px 8px rgba(2,62,138,.06);
}
.tag-pill::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r-pill);
  padding: 1px;
  background: linear-gradient(135deg, var(--sky), var(--leaf));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5;
  transition: opacity .2s var(--ease);
}
.tag-pill:hover { transform: translateY(-1px); color: var(--ocean-deep); }
.tag-pill:hover::before { opacity: 1; }

/* === Bento grid asimétrico === */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.bento > * { grid-column: span 3; }
.bento .bento-lg { grid-column: span 4; grid-row: span 2; }
.bento .bento-tall { grid-column: span 2; grid-row: span 2; }
.bento .bento-wide { grid-column: span 6; }
@media (max-width: 880px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .bento-lg, .bento .bento-tall, .bento .bento-wide { grid-column: span 2; grid-row: auto; }
}

/* === Bento 12-col variante (para muchos tiles) === */
.bento--12 {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}
.bento--12 > * { grid-column: span 3; }
.bento--12 .bento-lg { grid-column: span 6; grid-row: span 2; }
.bento--12 .bento-wide { grid-column: span 12; }
@media (max-width: 1100px) {
  .bento--12 { grid-template-columns: repeat(6, 1fr); }
  .bento--12 > * { grid-column: span 3; }
  .bento--12 .bento-lg { grid-column: span 6; grid-row: span 2; }
  .bento--12 .bento-wide { grid-column: span 6; }
}
@media (max-width: 760px) {
  .bento--12 { grid-template-columns: repeat(2, 1fr); }
  .bento--12 > *, .bento--12 .bento-lg, .bento--12 .bento-wide { grid-column: span 2; grid-row: auto; }
}

.bento-card {
  position: relative;
  padding: clamp(20px, 2.5vw, 32px);
  background:
    linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.55)),
    linear-gradient(135deg, var(--mist), var(--moss));
  background-blend-mode: normal, multiply;
  border: 1px solid rgba(2,62,138,.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  isolation: isolate;
}
/* Scan-line signature en hover */
.bento-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky) 30%, var(--leaf) 70%, transparent);
  transform: translateY(2px);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 2;
}
.bento-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.bento-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,180,216,.18), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(2,62,138,.25);
  border-color: rgba(0,180,216,.28);
}
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }
.bento-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--sea), var(--sky));
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,180,216,.32);
}
.bento-card--leaf .bento-card__icon {
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf));
  box-shadow: 0 8px 24px rgba(6,167,125,.32);
}
.bento-card__icon svg { width: 26px; height: 26px; }
.bento-card__title { font-size: 1.18rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.bento-card__desc  { font-size: .94rem; color: var(--ink-muted); line-height: 1.6; margin: 0; }
.bento-card__hint  {
  margin-top: 16px;
  font-size: .78rem;
  color: var(--sea);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Bento card grande con stats === */
.bento-feature {
  display: grid; align-content: space-between;
  padding: clamp(28px, 3vw, 44px);
  background:
    radial-gradient(circle at 90% 10%, rgba(0,180,216,.2), transparent 55%),
    linear-gradient(135deg, var(--ocean-deep), var(--ocean) 60%, var(--sea));
  color: #fff;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.bento-feature::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.bento-feature > * { position: relative; z-index: 1; }
.bento-feature h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.bento-feature p {
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  margin: 0 0 20px;
}
.bento-feature__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.bento-feature__metric strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.bento-feature__metric span {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* === Glass card === */
.glass {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 8px 32px -8px rgba(2,62,138,.12);
}

/* === Section header premium === */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  letter-spacing: -.025em;
  margin: 14px 0 12px;
}
.section-head h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--sea);
}
.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* === CTA aurora premium (refactor: sin conic spin) === */
.cta-aurora {
  background: linear-gradient(135deg, var(--ocean), var(--sea) 60%, var(--leaf));
  color: #fff;
  padding: 56px 28px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-aurora::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 50%);
  animation: cta-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-shimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-aurora::before { animation: none; opacity: 0.6; }
}
.cta-aurora h2 { color: #fff; max-width: 22ch; margin: 0 auto 12px; font-size: clamp(1.8rem, 2.4vw, 2.6rem); letter-spacing: -.015em; }
.cta-aurora p  { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-aurora__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Section dividers premium === */
.divider-pro {
  height: 1px; max-width: 1100px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* === Reviews bloque premium === */
.reviews-pro {
  position: relative;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--cloud) 0%, var(--paper) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.reviews-pro::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.reviews-pro__big {
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--ocean), var(--sea), var(--leaf));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* === Lista feature con check-circle === */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.feat-list li::before {
  content: ""; flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf));
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>"),
    linear-gradient(135deg, var(--leaf-deep), var(--leaf));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(6,167,125,.32);
}

/* === FAQ premium con borde gradient en open === */
.faq-pro {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.faq-pro[open] {
  border-color: rgba(0,180,216,.4);
  box-shadow: 0 12px 36px -16px rgba(0,180,216,.32);
}
.faq-pro summary {
  list-style: none;
  padding: 18px 56px 18px 24px;
  cursor: pointer;
  font-weight: 600; color: var(--ink);
  position: relative;
  font-size: 1.02rem;
}
.faq-pro summary::-webkit-details-marker { display: none; }
.faq-pro summary::after {
  content: "";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cloud-alt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230077b6'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq-pro[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background-color: rgba(0,180,216,.16);
}
.faq-pro__body { padding: 0 24px 22px; }
.faq-pro__body p { color: var(--ink-muted); margin: 0 0 .55em; line-height: 1.7; }
.faq-pro__body p:last-child { margin: 0; }
.faq-pro__body strong { color: var(--ink); }

/* === Animated scroll indicator === */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  opacity: .75;
}
.scroll-cue__dot {
  width: 22px; height: 36px;
  border: 2px solid var(--ink-muted);
  border-radius: 12px;
  position: relative;
}
.scroll-cue__dot::after {
  content: ""; position: absolute;
  left: 50%; top: 6px;
  width: 4px; height: 8px;
  background: var(--ink-muted);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 12px); opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__dot::after { animation: none; }
}

/* === Linktree contacto === */
.linktree {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 22px 60px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,180,216,.18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(6,167,125,.16), transparent 60%),
    linear-gradient(180deg, #fafdff 0%, #ecf6fa 100%);
}
@media (prefers-color-scheme: dark) {
  .linktree {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0,180,216,.22), transparent 55%),
      radial-gradient(ellipse at 50% 100%, rgba(6,167,125,.18), transparent 55%),
      linear-gradient(180deg, #06121e 0%, #0a1d2e 100%);
  }
  .linktree .lt-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e8f1f7; }
  .linktree .lt-card:hover { background: rgba(255,255,255,.10); }
  .linktree h1, .linktree .lt-name, .linktree .lt-card { color: #f0f7fc; }
  .linktree .lt-tagline, .linktree .lt-meta, .linktree .lt-foot { color: rgba(255,255,255,.66); }
}
.linktree__brand {
  text-align: center; margin-bottom: 28px;
}
.lt-orb {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: conic-gradient(from 220deg, var(--sky), var(--leaf), var(--sea), var(--sky));
  padding: 4px;
  box-shadow: 0 20px 50px -10px rgba(2,62,138,.4);
  animation: ring-rotate 22s linear infinite;
}
.lt-orb__inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800;
  color: var(--ocean);
  letter-spacing: -.02em;
  font-family: var(--font-serif); font-style: italic;
  animation: ring-rotate 22s linear infinite reverse;
}
@media (prefers-color-scheme: dark) { .lt-orb__inner { background: #0a1d2e; color: #caf0f8; } }
@media (prefers-reduced-motion: reduce) { .lt-orb, .lt-orb__inner { animation: none; } }

.lt-name {
  font-size: 1.45rem; font-weight: 800; margin: 0 0 6px; color: var(--ink); letter-spacing: -.015em;
}
.lt-tagline { font-size: .94rem; color: var(--ink-muted); margin: 0 0 14px; }
.lt-creds { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lt-creds .cred-glass { background: rgba(255,255,255,.85); }

.lt-stack { width: 100%; max-width: 460px; display: grid; gap: 10px; margin-top: 24px; }
.lt-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(2,62,138,.12);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  min-height: 60px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.lt-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.85);
  box-shadow: 0 16px 36px -12px rgba(2,62,138,.22);
  color: var(--ink);
}
.lt-card__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sea), var(--sky));
  color: #fff;
  flex: 0 0 auto;
}
.lt-card--leaf .lt-card__icon { background: linear-gradient(135deg, var(--leaf-deep), var(--leaf)); }
.lt-card--wa .lt-card__icon { background: #25D366; }
.lt-card__body { flex: 1 1 auto; min-width: 0; }
.lt-card__label { display: block; font-size: 1rem; }
.lt-card__sub { display: block; font-size: .82rem; color: var(--ink-muted); font-weight: 500; }
.lt-card__arrow { color: var(--ink-muted); flex: 0 0 auto; }
.lt-foot {
  margin-top: 36px;
  font-size: .76rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 460px;
  line-height: 1.55;
}
.lt-foot a { color: inherit; }

/* === Toast (compartir tarjeta) === */
.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translateX(-50%) translateY(40px);
  background: var(--ocean-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: var(--z-toast);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* === FAQ category nav === */
.faq-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.faq-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  color: var(--ink); font-size: .88rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.faq-cat:hover { background: var(--cloud); border-color: var(--sky); color: var(--sea); }
.faq-cat.is-active { background: var(--sea); color: #fff; border-color: var(--sea); }

.faq-cat-title {
  font-size: 1.5rem;
  margin: 36px 0 18px;
  letter-spacing: -.015em;
  color: var(--ocean-deep);
  display: flex; align-items: center; gap: 12px;
}
.faq-cat-title::before {
  content: "";
  width: 6px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--sky), var(--leaf));
}

/* =========================================================
   SERVICIOS DIAGNÓSTICOS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sea), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card--leaf::before { background: linear-gradient(90deg, var(--leaf-deep), var(--leaf)); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -20px rgba(2,62,138,.22);
  border-color: rgba(0,180,216,.32);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.service-card__icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sea), var(--sky));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,180,216,.32);
}
.service-card--leaf .service-card__icon {
  background: linear-gradient(135deg, var(--leaf-deep), var(--leaf));
  box-shadow: 0 10px 24px rgba(6,167,125,.32);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 4px;
}
.service-card--leaf .service-card__eyebrow { color: var(--leaf-deep); }
.service-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.25;
}
.service-card__desc {
  color: var(--ink-muted);
  font-size: .94rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.service-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.service-card__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.5;
}
.service-card__bullets li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/9px no-repeat,
    linear-gradient(135deg, var(--leaf-deep), var(--leaf));
  box-shadow: 0 3px 8px rgba(6,167,125,.32);
}

/* =========================================================
   TESTIMONIALS — Doctoralia
   ========================================================= */
.testimonials-section { padding-block: clamp(56px, 8vw, 112px); }

.testimonials-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 3vw, 36px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55)),
    radial-gradient(ellipse at 0% 50%, rgba(0,180,216,.18), transparent 60%),
    linear-gradient(135deg, var(--cloud), var(--cloud-alt));
  border: 1px solid rgba(2,62,138,.1);
  box-shadow: 0 18px 50px -28px rgba(2,62,138,.2);
  backdrop-filter: blur(12px);
}
.testimonials-hero__count {
  display: flex; align-items: baseline; gap: 12px;
}
.testimonials-hero__big {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--ocean), var(--sea), var(--leaf));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.testimonials-hero__label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.testimonials-hero__stars {
  display: inline-flex; align-items: center; gap: 4px;
  color: #f4b41a;
}
.testimonials-hero__rating-text {
  margin-left: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.testimonials-hero__cta { flex: 0 0 auto; }
@media (max-width: 760px) {
  .testimonials-hero { flex-direction: column; align-items: flex-start; }
  .testimonials-hero__cta { width: 100%; justify-content: center; }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .testimonials-grid { grid-template-columns: 1fr; } }

.t-card {
  position: relative;
  padding: 24px 22px 18px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 20px -12px rgba(2,62,138,.15);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.t-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sky), var(--leaf));
  opacity: .7;
}
.t-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(2,62,138,.25);
  border-color: rgba(0,180,216,.32);
}
.t-card__quote-mark {
  position: absolute;
  top: 8px; right: 16px;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(0,180,216,.15);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}
.t-card__quote {
  margin: 0 0 16px;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: normal;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}
.t-card__meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin: 0;
}
.t-card__avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sea), var(--sky));
  color: #fff;
  font-weight: 800; font-size: .9rem;
  letter-spacing: .02em;
}
.t-card__avatar--leaf { background: linear-gradient(135deg, var(--leaf-deep), var(--leaf)); }
.t-card__name {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  letter-spacing: -.005em;
}
.t-card__date {
  display: block;
  font-size: .76rem;
  color: var(--ink-muted);
  margin-top: 1px;
}
.t-card__meta > div { flex: 1 1 auto; min-width: 0; }
.t-card__verified {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(6,167,125,.12);
  color: var(--leaf-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.t-card__verified svg { color: var(--leaf-deep); }

.testimonials-source {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: .82rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.6;
}
.testimonials-source a { color: var(--sea); font-weight: 600; }

/* =========================================================
   MEDIA FEATURE (entrevista en medio reputado)
   ========================================================= */
.media-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 0 18px 50px -22px rgba(2,62,138,.22);
}
@media (max-width: 880px) {
  .media-feature { grid-template-columns: 1fr; padding: 16px; }
}
.media-feature__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
}
.media-feature__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.media-feature__body {
  display: grid;
  gap: 14px;
  align-content: center;
}
.media-feature__source {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  background: rgba(6,167,125,.10);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  width: max-content;
}
.media-feature__title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
}
.media-feature__desc {
  font-size: .95rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}
.media-feature__cta { width: max-content; }
@media (max-width: 560px) {
  .media-feature__cta { width: 100%; justify-content: center; }
}

/* =========================================================
   MOBILE-FIRST OPTIMIZATION (80% del tráfico es móvil)
   ========================================================= */

/* ===== Móvil (≤640px) — densidad y legibilidad ===== */
@media (max-width: 640px) {
  /* Section padding más comprimido para no desperdiciar pantalla */
  .section { padding-block: clamp(40px, 9vw, 56px); padding-inline: 16px; }
  .section--tight { padding-block: clamp(28px, 7vw, 40px); }

  /* Hero móvil — más vertical y centrado */
  .hero-pro {
    padding-block: clamp(28px, 8vw, 48px);
    padding-inline: 16px;
  }
  .hero-pro__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    text-align: left;
  }
  .hero-pro__copy, .hero-pro__visual { min-width: 0; }
  .headline-pro {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.05;
    margin: 14px 0 16px;
  }
  .lead-pro {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 22px;
  }
  .badge-pill {
    font-size: .68rem;
    padding: 7px 12px;
  }

  /* Stats: layout 2×2 limpio con menos espacio */
  .stats-row, .stats-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 18px 0;
    margin-bottom: 22px;
  }
  .stat-pro__num { font-size: 1.55rem; }
  .stat-pro__label { font-size: .72rem; line-height: 1.3; }

  /* Hero CTAs full width tap targets */
  .hero__cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .hero__cta .btn { width: 100%; }
  .btn--lg { padding: 16px 22px; font-size: 1rem; min-height: 52px; }

  /* Tag-pills: scroll horizontal sin wrap para no romper layout */
  .tag-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tag-pills::-webkit-scrollbar { display: none; }
  .tag-pill { flex: 0 0 auto; scroll-snap-align: start; min-height: 40px; padding: 10px 16px; }

  /* Portrait móvil — limit width y center */
  .portrait-pro { max-width: 280px; margin-inline: auto; }
  .portrait-pro__chip { font-size: .72rem; padding: 8px 12px; }
  .portrait-pro__creds { top: 10px; right: 10px; }
  .cred-glass { font-size: .58rem; padding: 5px 8px; }
  .portrait-pro::before { width: 64px; height: 64px; top: -6px; left: -10px; }

  /* Marquee más compacto */
  .marquee { padding: 18px 0; }
  .marquee__item { font-size: .82rem; gap: 8px; }
  .marquee__track { gap: 28px; }

  /* Section-head más compacto */
  .section-head { margin: 0 auto 32px; }
  .section-head h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .section-head p { font-size: .95rem; max-width: none; }

  /* Bento móvil — 1 col, gaps reducidos */
  .bento, .bento--12 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    grid-auto-rows: auto;
  }
  .bento > *, .bento--12 > *, .bento .bento-lg, .bento--12 .bento-lg, .bento .bento-wide, .bento--12 .bento-wide {
    grid-column: span 1; grid-row: auto;
  }
  .bento-card { padding: 20px 18px; }
  .bento-card__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .bento-card__icon svg { width: 22px; height: 22px; }
  .bento-card__title { font-size: 1.05rem; }
  .bento-card__desc  { font-size: .9rem; line-height: 1.55; }
  .bento-feature { padding: 24px 20px; }
  .bento-feature h3 { font-size: 1.3rem; }
  .bento-feature__metrics { gap: 10px; }
  .bento-feature__metric strong { font-size: 1.4rem; }
  .bento-feature__metric span { font-size: .65rem; }

  /* Service cards móvil */
  .services-grid { gap: 12px; }
  .service-card { padding: 18px 18px; }
  .service-card__head { gap: 12px; margin-bottom: 12px; }
  .service-card__icon { width: 44px; height: 44px; }
  .service-card__icon svg { width: 22px; height: 22px; }
  .service-card__title { font-size: 1.05rem; }
  .service-card__desc { font-size: .9rem; }
  .service-card__bullets li { font-size: .85rem; padding-left: 20px; }

  /* Testimonials hero — stack vertical centrado */
  .testimonials-hero {
    padding: 18px 18px;
    gap: 14px;
    margin-bottom: 24px;
  }
  .testimonials-hero__count { align-items: center; gap: 10px; }
  .testimonials-hero__big { font-size: 2.4rem; }
  .testimonials-hero__label { font-size: .84rem; }
  .testimonials-hero__stars svg { width: 18px; height: 18px; }
  .testimonials-hero__rating-text { font-size: .72rem; margin-left: 6px; }
  .testimonials-hero__cta { width: 100%; justify-content: center; }

  /* Testimonials grid: 1 col limpio */
  .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .t-card { padding: 20px 18px 16px; }
  .t-card__quote { font-size: .94rem; line-height: 1.5; }
  .t-card__quote-mark { font-size: 3rem; top: 4px; right: 12px; }
  .t-card__name { font-size: .88rem; }
  .t-card__date { font-size: .72rem; }
  .testimonials-source { font-size: .78rem; }

  /* Faq pro móvil */
  .faq-pro summary { padding: 16px 48px 16px 16px; font-size: .96rem; }
  .faq-pro summary::after { right: 14px; width: 26px; height: 26px; }
  .faq-pro__body { padding: 0 16px 18px; }
  .faq-pro__body p { font-size: .92rem; }

  /* FAQ categorías scrollable */
  .faq-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .faq-cats::-webkit-scrollbar { display: none; }
  .faq-cat { flex: 0 0 auto; min-height: 40px; padding: 10px 16px; }

  /* CTA aurora más compacto */
  .cta-aurora { padding: 32px 22px; }
  .cta-aurora h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .cta-aurora p { font-size: .95rem; margin-bottom: 22px; }
  .cta-aurora__actions { flex-direction: column; gap: 10px; }
  .cta-aurora__actions .btn { width: 100%; }

  /* Contact grid stack */
  .contact-card { padding: 20px 18px; }
  .contact-card h3 { font-size: 1rem; }

  /* Map más bajo */
  .map-wrapper { aspect-ratio: 4 / 3; }

  /* Footer */
  footer { padding: 36px 16px 28px; }
  .footer-compliance { font-size: .82rem; }
  .footer-meta { font-size: .72rem; gap: 10px; flex-direction: column; }

  /* FAB móvil — no obstruir CTAs principales */
  .whatsapp-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  /* Top bar legal: una línea por cédula con padding limpio */
  .top-bar-legal {
    font-size: .68rem;
    padding: 8px 12px;
    line-height: 1.45;
  }
  .top-bar-legal span { display: block; margin: 2px 0; }
  .top-bar-legal .sep { display: none; }

  /* Navbar móvil: hide brand-suffix y agrandar tap targets */
  .navbar__brand-suffix { display: none; }
  .navbar__container { padding: 10px 16px; }
  .navbar__brand { font-size: 1.05rem; }

  /* Reviews-pro reset for old usage */
  .reviews-pro__big { font-size: 4rem; }

  /* Hero bio narrative */
  .bio-narrative { gap: 24px; grid-template-columns: 1fr; }
  .bio-narrative .portrait-pro { max-width: 240px; }

  /* Timeline mobile */
  .timeline { padding-left: 18px; }
  .timeline li { margin-bottom: 22px; }
  .timeline__detail { font-size: .88rem; }

  /* Credentials grid 1 col */
  .credentials-grid { grid-template-columns: 1fr; gap: 12px; }
  .credential__value { font-size: 1rem; }

  /* Societies en 2 cols */
  .societies-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .society { padding: 14px 12px; }
  .society__abbr { font-size: .95rem; }
  .society__name { font-size: .72rem; }

  /* Institutions row más sutil */
  .institutions-row { gap: 22px 28px; padding: 18px 0; }
  .institution img { max-width: 110px; }

  /* Publications cards */
  .publication { padding: 16px 14px; gap: 12px; }
  .publication__title { font-size: .92rem; }
  .publication__meta { font-size: .78rem; }
  .publication__cites strong { font-size: 1.3rem; }

  /* Linktree cards más altos para mejor tap */
  .lt-card { min-height: 64px; padding: 14px 16px; }
  .lt-card__label { font-size: .96rem; }
  .lt-card__sub { font-size: .76rem; }

  /* Media feature */
  .media-feature__title { font-size: 1.15rem; }
  .media-feature__desc { font-size: .9rem; }
  .media-feature__source { font-size: .66rem; padding: 5px 10px; }
}

/* ===== Tablet pequeña (641px–768px) ===== */
@media (min-width: 641px) and (max-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Tap targets globales ≥ 44px (a11y + Apple HIG) ===== */
@media (pointer: coarse) {
  .btn, .lt-card, .faq-cat, .tag-pill, .nav-toggler, .footer-meta a {
    min-height: 44px;
  }
  /* Links inline también con padding generoso vertical */
  .contact-card a { padding-block: 8px; }
}

/* ===== Performance: contain layout en cards repetitivas ===== */
.bento-card, .t-card, .service-card, .video-card, .society, .credential {
  contain: layout style;
}

/* ===== Hover only en pointer fino (no en táctiles) ===== */
@media (hover: none) {
  .bento-card:hover, .t-card:hover, .service-card:hover, .lt-card:hover {
    transform: none;
  }
  .whatsapp-float:hover {
    transform: none;
  }
  .whatsapp-float__label { display: none; }
}

/* =========================================================
   HERO v3 — Split editorial (mobile-first)
   ========================================================= */

.hero-split {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}

.hero-split__left {
  padding: 32px 22px 28px;
  position: relative;
}
.hero-split__left > * { position: relative; z-index: 1; }
.hero-split__left .atmen-flow-bg { z-index: 0; opacity: 0.42; }

.atmen-kicker {
  margin: 0 0 18px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 9vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-lede {
  font-size: 16px;
  line-height: 1.55;
  color: #33414a;
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero-lede b { color: var(--ocean); font-weight: 600; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.hero-stats__cell { margin: 0; display: flex; flex-direction: column; }
.hero-stats__cell dt {
  order: 2;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin: 4px 0 0;
}
.hero-stats__cell dd {
  order: 1;
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--sea) 55%, var(--leaf) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-stats__cell dd b { font-weight: inherit; }
.hero-stats__cell dd small { font-size: 18px; -webkit-text-fill-color: var(--leaf); color: var(--leaf); }

.hero-split__right {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #e9f1f8 0%, #d4e6ed 50%, #c8ddd5 100%);
  padding: 28px 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Textura editorial: rejilla de puntos sutil + onda respiratoria firma al pie */
.hero-split__right::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(2,62,138,.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 35%, transparent 78%);
  opacity: .5; z-index: 0; pointer-events: none;
}
.hero-split__right::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80 Q 100 30 200 80 T 400 80 T 600 80' stroke='%2306a77d' stroke-width='1.6' stroke-opacity='.35' fill='none'/%3E%3Cpath d='M0 98 Q 100 52 200 98 T 400 98 T 600 98' stroke='%230077b6' stroke-width='1.6' stroke-opacity='.28' fill='none'/%3E%3C/svg%3E")
    no-repeat bottom center / 100% 100%;
  z-index: 0; pointer-events: none;
}
.hero-split__right > * { position: relative; z-index: 1; }

.portrait-editorial {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin: 0;
  position: relative;
  box-shadow: 0 18px 36px -20px rgba(2,62,138,0.3);
}
.portrait-editorial__fig {
  position: absolute;
  top: -10px; left: 14px;
  background: var(--cream);
  padding: 2px 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ocean);
  font-weight: 700;
}
.portrait-editorial__img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #94c5d6, #2a6f8a);
  border-radius: 6px;
  overflow: hidden;
}
.portrait-editorial__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-mono { width: 100%; height: 100%; display: block; }
.portrait-editorial figcaption {
  font-size: 12px;
  color: #444;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.portrait-editorial figcaption b { color: #111; }

.credentials {
  display: grid;
  gap: 7px;
  font-size: 11.5px;
  color: #3a4a55;
  background: rgba(255,255,255,0.6);
  padding: 12px;
  border-radius: 8px;
  margin: 0;
}
.credentials > div { display: flex; justify-content: space-between; margin: 0; }
.credentials dt { font-weight: 400; }
.credentials dd { margin: 0; color: var(--ocean); font-weight: 700; }

.condition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.condition-pills li {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
  scroll-snap-align: start;
  min-height: 32px;
  display: inline-flex; align-items: center;
}
.condition-pills li.condition-pills__hot { background: var(--ocean); color: #fff; border-color: var(--ocean); }

/* Desktop: 2-col split */
@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1.2fr 1fr;
    min-height: 540px;
  }
  .hero-split__left { padding: 56px 48px 36px; }
  .hero-split__right {
    border-top: none;
    border-left: 1px solid var(--line-soft);
    padding: 32px;
  }
  .hero-h1 { font-size: clamp(48px, 5vw, 64px); }
  .hero-lede { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats__cell dd { font-size: 30px; }
  .condition-pills { overflow: visible; }
}

@media (pointer: coarse) {
  .condition-pills li { min-height: 44px; padding: 10px 14px; }
}

/* =========================================================
   AGENDAR — botón + dropdown (desktop) + bottom sheet (mobile)
   ========================================================= */

.agendar { position: relative; display: inline-block; }
@media (max-width: 700px) { .agendar { display: block; } }

.agendar__btn {
  background: var(--leaf);
  color: #fff;
  padding: 16px 24px;
  border-radius: 14px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(6,167,125,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  min-height: 56px;
  width: 100%;
  justify-content: center;
}
.agendar__chev { font-size: 13px; opacity: 0.9; transition: transform .15s; }
.agendar__btn[aria-expanded="true"] .agendar__chev { transform: rotate(180deg); }
.agendar__btn:hover { filter: brightness(1.04); }
.agendar__btn:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }

.agendar__menu {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 18px 36px -12px rgba(2,62,138,0.25);
  padding: 8px;
  list-style: none;
  margin: 0;
}

.agendar__head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  padding: 10px 12px 6px;
  margin: 0;
}

.agendar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.agendar__item:hover, .agendar__item:focus-visible { background: #f3f8fb; outline: none; }

.agendar__ic {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #eef4f9;
  color: var(--ocean);
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.agendar__item--wa .agendar__ic { background: rgba(6,167,125,0.12); color: var(--leaf); }

.agendar__lbl { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.agendar__lbl b { font-size: 14px; font-weight: 600; color: var(--ink); }
.agendar__lbl span { font-size: 11.5px; color: #777; }
.agendar__arr { color: #bbb; font-size: 14px; }

/* Desktop popover */
@media (min-width: 701px) {
  /* el popover de agendar no debe recortarse por el overflow del hero */
  .hero-split { overflow-x: clip; overflow-y: visible; }
  .agendar__btn { width: auto; min-width: 230px; }
  .agendar--popover .agendar__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 320px;
    z-index: 50;
  }
  .agendar--popover .agendar__menu::before {
    content: "";
    position: absolute;
    top: -7px; left: 32px;
    width: 14px; height: 14px;
    background: #fff;
    border-left: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
    transform: rotate(45deg);
  }
}

/* Mobile bottom sheet */
@media (max-width: 700px) {
  .agendar--sheet .agendar__menu {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    border-radius: 16px 16px 0 0;
    padding: 14px 12px max(14px, env(safe-area-inset-bottom));
    animation: agendar-up .22s ease-out;
  }
  .agendar__backdrop {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.4);
    animation: agendar-fade .22s ease-out;
  }
  @keyframes agendar-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes agendar-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  .agendar__menu, .agendar__backdrop, .agendar__chev { animation: none !important; transition: none !important; }
}

/* =========================================================
   INSTITUTIONS RIBBON — franja delgada entre hero y padecimientos
   Task 6 — reemplaza .marquee como seccion propia
   ========================================================= */
.institutions-ribbon {
  background: #fff;
  border-top: 1px solid var(--line-soft, var(--border));
  border-bottom: 1px solid var(--line-soft, var(--border));
  padding: 10px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.institutions-ribbon__track {
  display: flex;
  gap: 36px;
  align-items: center;
  animation: ribbon-scroll 50s linear infinite;
  width: max-content;
}
.institutions-ribbon__item {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.institutions-ribbon__item::after {
  content: "·";
  color: var(--line-soft, var(--border));
  margin-left: 24px;
}
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .institutions-ribbon__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 22px;
  }
}

/* =========================================================
   SWITCHER — Padecimientos índice clínico
   Mobile: details nativo. Desktop (>=900): JS upgrade a tabs.
   ========================================================= */

.switcher-section { padding: 56px 22px; background: var(--paper-warm); }
.switcher-section__head { max-width: 720px; margin: 0 auto 28px; }
.switcher-section__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.5vw, 36px);
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  color: var(--ink);
}

.switcher { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.sw-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.sw-item summary {
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  min-height: 56px;
}
.sw-item summary::-webkit-details-marker { display: none; }
.sw-num { font-size: 12px; color: #bbb; font-variant-numeric: tabular-nums; min-width: 24px; }
.sw-name { flex: 1; font-size: 16px; color: #222; }
.sw-arr { color: var(--ocean); opacity: 0; transition: opacity .15s; }
.sw-item[open] .sw-arr { opacity: 1; }
.sw-item[open] summary { background: var(--ocean); color: #fff; }
.sw-item[open] summary .sw-num { color: rgba(255,255,255,0.6); }
.sw-item[open] summary .sw-name { color: #fff; }
.sw-item[open] summary .sw-arr { color: #fff; }

.sw-detail { padding: 22px 18px 24px; }
.sw-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--leaf);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px;
}
.sw-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.sw-detail h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--ink);
}
.sw-desc { font-size: 15px; line-height: 1.6; color: #3a4a55; margin: 0 0 18px; max-width: 60ch; }

.sw-pillars { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 18px; }
.sw-pillar { background: var(--paper-warm); border-radius: 10px; padding: 14px; }
.sw-pl { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ocean); margin: 0 0 6px; }
.sw-pv { display: block; font-size: 13.5px; color: #222; line-height: 1.45; }

.sw-foot { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sw-more { color: var(--ocean); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.sw-more:hover { text-decoration: underline; }

/* Desktop tabs layout — activado por JS añadiendo .switcher--tabs */
@media (min-width: 900px) {
  .switcher--tabs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 30px 60px -30px rgba(2,62,138,0.12);
    position: relative;
    min-height: 480px;
  }
  /* Todos los tabs apilados en la columna izquierda; el detalle ocupa la derecha (absolute). */
  .switcher--tabs .sw-item { grid-column: 1; align-self: start; border: none; border-radius: 0; background: transparent; overflow: visible; }
  .switcher--tabs .sw-item + .sw-item { margin-top: 2px; }
  .switcher--tabs .sw-item summary {
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 46px;
    font-size: 14.5px;
    background: transparent;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .switcher--tabs .sw-item[open] summary,
  .switcher--tabs .sw-item summary:hover { background: #f5f8fa; color: var(--ink); }
  .switcher--tabs .sw-item[open] summary { background: var(--ocean); color: #fff; }
  .switcher--tabs .sw-detail { display: none; }
  .switcher--tabs .sw-item[open] .sw-detail {
    display: block;
    position: absolute;
    inset: 32px 32px 32px 340px;
    padding: 0;
    overflow-y: auto;
  }
  .sw-pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sw-arr, .sw-item summary { transition: none !important; }
}

/* =========================================================
   SPLITS 2-UP — secciones en par lateral
   ========================================================= */
.splits-2up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.splits-2up > .split-cell {
  padding: 40px 22px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .splits-2up { grid-template-columns: 1fr 1fr; }
  .splits-2up > .split-cell { padding: 64px 36px; }
}

/* =========================================================
   TESTIMONIALS WALL — marquee 3 filas (desktop) / 1 fila (mobile)
   ========================================================= */
.wall {
  background: #fff;
  border-block: 1px solid var(--line-soft);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.wall__head {
  padding: 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wall__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.025em;
  margin: 8px 0;
  color: var(--ink);
}
.wall__sub { font-size: 14px; color: var(--ink-muted); margin: 0; max-width: 60ch; }
.wall__meta { display: flex; gap: 18px; }
.wall__mt b { display: block; font-size: 22px; font-weight: 800; color: var(--ocean); letter-spacing: -0.02em; line-height: 1; }
.wall__mt span { font-size: 11px; color: var(--ink-muted); }

/* Reseña destacada — pull quote editorial (jerarquía sobre el marquee) */
.wall__featured {
  max-width: 920px;
  margin: 0 auto 30px;
  padding: 8px 22px 0;
  text-align: center;
  position: relative;
}
@media (min-width: 768px) { .wall__featured { padding-inline: 36px; } }
.wall__featured-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-muted); text-transform: uppercase;
  margin-bottom: 16px;
}
.wall__featured-stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.wall__featured-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 29px);
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.wall__featured-cite {
  display: inline-flex; align-items: center; gap: 12px;
  justify-content: center;
}
.wall__featured-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), var(--ocean));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; flex: 0 0 auto;
}
.wall__featured-meta { text-align: left; display: flex; flex-direction: column; }
.wall__featured-meta b { font-size: 14px; color: var(--ink); }
.wall__featured-meta span { font-size: 12px; color: var(--ink-muted); }

.wall__mask { position: relative; }
.wall__mask::before, .wall__mask::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.wall__mask::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.wall__mask::after  { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

.marquee-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  width: max-content;
}
.marquee-row--r1 { animation: scroll-l 60s linear infinite; }
.marquee-row--r2 { animation: scroll-r 75s linear infinite; }
.marquee-row--r3 { animation: scroll-l 90s linear infinite; }
.marquee-row:hover { animation-play-state: paused; will-change: transform; }

@keyframes scroll-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.tcard {
  flex: 0 0 auto;
  width: 300px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  contain: layout style;
}
.tcard__stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }
.tcard__quote { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin: 0; }
.tcard__person { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tcard__av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sea), var(--ocean)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tcard__nm { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tcard__src { font-size: 10.5px; color: var(--ink-muted); }
.tcard__src b { color: var(--leaf); }

.wall__foot {
  padding: 18px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.wall__note { font-size: 12.5px; color: var(--ink-muted); }
.wall__cta {
  align-self: flex-start;
  background: #fff;
  border: 1.5px solid var(--ocean);
  color: var(--ocean);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}

@media (max-width: 700px) {
  .marquee-row--r2, .marquee-row--r3 { display: none; }
  .marquee-row--r1 { animation-duration: 90s; }
  .tcard { width: 280px; }
}

@media (min-width: 768px) {
  .wall__head { padding-inline: 36px; flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .wall__foot { padding-inline: 36px; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ===== Desktop: reseña destacada IZQUIERDA + carrusel de tarjetas DERECHA ===== */
@media (min-width: 960px) {
  .wall {
    display: grid;
    grid-template-columns: minmax(330px, 0.94fr) 1.06fr;
    grid-template-areas:
      "head head"
      "feat cards"
      "foot foot";
    column-gap: clamp(36px, 3.6vw, 64px);
    align-items: start;
    max-width: 1340px;
    margin-inline: auto;
    padding-inline: clamp(36px, 4vw, 56px);
  }
  .wall__head { grid-area: head; padding-inline: 0; margin-bottom: 32px; }
  .wall__foot { grid-area: foot; padding-inline: 0; margin-top: 34px; }

  /* Panel destacado: tarjeta editorial alineada a la izquierda, sticky */
  .wall__featured {
    grid-area: feat;
    max-width: none; margin: 0;
    padding: 34px 36px 32px;
    text-align: left;
    position: sticky; top: 92px;
    background: linear-gradient(162deg, var(--paper-warm) 0%, #fff 70%);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    box-shadow: 0 34px 70px -42px rgba(2,40,80,.5);
  }
  .wall__featured::before {
    content: "\201C";
    position: absolute; top: 2px; left: 24px;
    font-family: var(--font-serif); font-style: italic;
    font-size: 120px; line-height: 1; color: var(--sea);
    opacity: .12; pointer-events: none;
  }
  .wall__featured-eyebrow { margin-bottom: 18px; }
  .wall__featured-quote { font-size: clamp(21px, 1.9vw, 27px); margin-bottom: 26px; }
  .wall__featured-cite  { justify-content: flex-start; }

  /* Carrusel de tarjetas a la derecha (3 filas marquee, recortadas en la columna) */
  .wall__mask { grid-area: cards; overflow: hidden; }
  .wall__mask::before { background: linear-gradient(90deg, #fff, transparent); }
  .wall__mask::after  { background: linear-gradient(-90deg, #fff, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .wall__mask::before, .wall__mask::after { display: none; }
  .marquee-row--r2, .marquee-row--r3 { display: flex; }
}

/* =========================================================
   FAQ ACCORDION COMPACTO
   ========================================================= */
.faq-accordion { padding: 56px 22px; background: var(--cream); }
.faq-accordion__head { max-width: 720px; margin: 0 auto 22px; }
.faq-accordion__h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 4.5vw, 34px);
  letter-spacing: -0.025em; margin: 8px 0 0; color: var(--ink);
}
.faq-accordion__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; cursor: pointer; min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15.5px; font-weight: 600; color: var(--ink); flex: 1; }
.faq-chev { color: var(--ocean); font-size: 18px; font-weight: 700; transition: transform .15s; }
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; font-size: 14.5px; line-height: 1.6; color: #3a4a55; }
.faq-a p { margin: 0 0 .6em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-accordion__more {
  display: inline-flex; max-width: 760px; margin: 18px auto 0;
  color: var(--ocean); font-weight: 600; font-size: 14px; text-decoration: none;
}
@media (prefers-reduced-motion: reduce) { .faq-chev { transition: none !important; } }

/* =========================================================
   REDISEÑO 2026-05-29 — mobile-first, menos scroll, UX premium
   ========================================================= */

/* --- 1. Padecimientos: explorador chips + panel único (.cond) --- */
.cond { max-width: 1100px; margin: 0 auto; }
/* fallback sin JS: el acordeón nativo ya funciona; ocultamos nada */
.cond-tabs {
  display: flex; gap: 8px; padding: 4px 2px 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.cond-tabs::-webkit-scrollbar { display: none; }
.cond-tab {
  flex: 0 0 auto; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; min-height: 44px;
  border-radius: 99px; border: 1px solid var(--line-soft);
  background: #fff; color: var(--ink);
  font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cond-tab__n { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 800; }
.cond-tab:hover { border-color: var(--sky); }
.cond-tab[aria-selected="true"] {
  background: var(--ocean); color: #fff; border-color: var(--ocean);
  box-shadow: 0 12px 24px -12px rgba(2,62,138,.6);
}
.cond-tab[aria-selected="true"] .cond-tab__n { color: rgba(255,255,255,.62); }
.cond-panel {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: 18px; padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 30px 60px -34px rgba(2,62,138,.2);
  animation: cond-in .3s var(--ease);
}
@keyframes cond-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cond-panel .sw-detail { padding: 0; }
.cond-panel .sw-tag { margin-top: 0; }
.cond-panel h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 4vw, 30px); letter-spacing: -.025em;
  margin: 0 0 10px; color: var(--ink);
}
.cond-panel .sw-desc { font-size: 15px; line-height: 1.6; color: #3a4a55; margin: 0 0 18px; max-width: 64ch; }
.cond-panel .sw-pillars { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; }
.cond-panel .sw-foot { padding-top: 14px; border-top: 1px solid var(--line-soft); }
@media (min-width: 760px) { .cond-panel .sw-pillars { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cond-panel { animation: none; } }

/* --- 2. Servicios: carrusel horizontal en móvil (menos scroll vertical) --- */
@media (max-width: 720px) {
  .services-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 14px;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { scroll-snap-align: center; height: auto; }
}

/* --- 3. Video Once Noticias: nunca desbordar en móvil --- */
.media-feature { max-width: 100%; overflow: hidden; }
.media-feature__frame { width: 100%; max-width: 100%; }
.media-feature__frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%; border: 0; }

/* --- 4. FAQ: un solo indicador "+" circular limpio (mata duplicado de site.css) --- */
.faq-accordion .faq-item summary::after { content: none !important; display: none !important; }
.faq-accordion .faq-item summary { padding-right: 20px; }
.faq-accordion .faq-chev {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cloud-alt); color: var(--ocean);
  font-size: 0; line-height: 0;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.faq-accordion .faq-chev::before {
  content: ""; width: 13px; height: 13px;
  background:
    linear-gradient(currentColor, currentColor) center/13px 2.2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2.2px 13px no-repeat;
}
.faq-accordion .faq-item[open] .faq-chev { transform: rotate(45deg); background: var(--ocean); color: #fff; }

/* --- 5. Aseguradoras --- */
.insurers-band { padding: clamp(40px,7vw,64px) 22px; background: var(--paper); border-top: 1px solid var(--line-soft); }
.insurers-band__head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.insurers-band__head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px,4.5vw,32px); letter-spacing: -.025em; margin: 10px 0 8px; color: var(--ink);
}
.insurers-band__head h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 600; color: var(--sea); }
.insurers-band__head p { color: var(--ink-muted); margin: 0; font-size: 1rem; }
.insurers-logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.insurer-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px;
  background: linear-gradient(180deg,#fff,var(--cloud));
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  font-weight: 800; color: var(--ocean); font-size: 14px; letter-spacing: .01em;
}
.insurer-chip svg { width: 16px; height: 16px; color: var(--leaf); }
.insurers-note { text-align: center; font-size: 12.5px; color: var(--ink-muted); margin: 18px auto 0; max-width: 56ch; }

/* --- 6. "Cómo abordo cada caso" → proceso elegante (.approach) --- */
.approach { max-width: 1040px; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: ap; }
@media (min-width: 820px) { .approach { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.approach__item {
  position: relative; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 26px 24px 24px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.approach__item::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--leaf)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.approach__item:hover { transform: translateY(-4px); box-shadow: 0 26px 56px -30px rgba(2,62,138,.28); border-color: rgba(0,180,216,.3); }
.approach__item:hover::before { transform: scaleX(1); }
.approach__n {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 2.4rem; line-height: 1;
  background: linear-gradient(135deg, var(--ocean), var(--sea) 55%, var(--leaf));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  margin-bottom: 12px; display: block;
}
.approach__item h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); letter-spacing: -.01em; }
.approach__item p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* --- 7. Hero: rebalanceo desktop + credenciales en chips --- */
@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1.28fr .82fr; }
  .hero-split__right { justify-content: center; }
  .portrait-editorial { max-width: 340px; margin-inline: auto; width: 100%; }
}
.credentials {
  grid-template-columns: 1fr 1fr; gap: 8px;
  background: transparent; padding: 0;
}
.credentials > div {
  flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.7);
  border-radius: 11px; padding: 10px 12px;
  box-shadow: 0 6px 16px -10px rgba(2,62,138,.25);
}
.credentials dt { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 700; }
.credentials dd { color: var(--ocean); font-weight: 800; font-size: 13.5px; font-feature-settings: "tnum"; }

/* --- 8. WhatsApp FAB: más reconocible + etiqueta persistente en móvil --- */
.whatsapp-float::after {
  content: "Escríbeme"; position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  background: #fff; color: var(--ocean); font-weight: 800; font-size: 12.5px;
  padding: 7px 13px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(2,62,138,.22); pointer-events: none;
}
@media (min-width: 541px) { .whatsapp-float::after { display: none; } } /* en desktop ya hay label hover */
@media (max-width: 540px) {
  .whatsapp-float { width: 58px; height: 58px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
  .whatsapp-float::after { font-size: 11.5px; padding: 6px 11px; right: calc(100% + 9px); }
}

/* --- 9. Footer rediseñado (CSS sobre estructura existente) --- */
footer {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0,180,216,.18), transparent 45%),
    radial-gradient(ellipse at 100% 0%, rgba(6,167,125,.16), transparent 45%),
    linear-gradient(180deg, #04124c 0%, #020b33 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--sky), var(--leaf)) 1;
  padding: clamp(44px,7vw,72px) clamp(16px,4vw,32px) 28px;
}
.footer-compliance {
  display: grid; gap: 14px;
  padding-bottom: var(--sp-5); margin-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-compliance p { color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.65; margin: 0; }
.footer-compliance strong { color: #fff; font-weight: 700; }
.footer-compliance a { color: var(--mist); }
.footer-compliance .address { color: rgba(255,255,255,.78); }
.footer-compliance .disclaimer-emergency {
  margin: 0; padding: 12px 14px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.05); font-size: .78rem; color: rgba(255,255,255,.62);
}
.footer-meta {
  margin-top: 0; align-items: center;
}
.footer-meta a {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600;
  padding: 4px 0; transition: color .2s var(--ease);
}
.footer-meta a:hover { color: var(--sky); }
@media (max-width: 640px) {
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   POLISH PASS 2026-05-29 — refinamiento premium "Editorial
   Pulmonar v3". Capa final: profundidad, ritmo, jerarquía y
   micro-interacciones (Apple/Linear/Stripe). No cambia familias
   tipográficas, paleta ni estructura/JS. Guías: UI/UX Pro Max
   (whitespace-balance, elevation-consistent, scale-feedback,
   visual-hierarchy, touch-spacing) + frontend-design (depth,
   intencionalidad, micro-motion).
   ========================================================= */

/* --- P1. WhatsApp FAB: quitar la etiqueta flotante que se
   encimaba sobre el contenido en móvil (anti-patrón
   whitespace-balance / touch-spacing). El glifo verde de WA ya
   es universalmente reconocible y hay CTA en navbar + hero. En
   desktop se conserva la etiqueta hover existente. --- */
.whatsapp-float::after { content: none !important; display: none !important; }

/* --- P2. Easing/timing unificado del FAB (motion-consistency) --- */
.whatsapp-float { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.whatsapp-float:active { transform: translateY(-1px) scale(.97); }

/* --- P3. Hero: más aire, profundidad y jerarquía --- */
/* Lede con medida de lectura controlada y color de mayor contraste AA */
.hero-lede { color: #2c3a44; }
/* Stats: figuras tabulares (number-tabular) + etiqueta con tracking
   editorial; refuerzo de jerarquía sin tocar el gradiente firma */
.hero-stats__cell dd { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.hero-stats__cell dt { letter-spacing: .01em; }
/* Botón Agendar: feedback de press sutil (scale-feedback) y foco
   coherente con el sistema */
.agendar__btn { transition: filter .18s var(--ease), transform .18s var(--ease), box-shadow .25s var(--ease); }
.agendar__btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(6,167,125,.6), inset 0 1px 0 rgba(255,255,255,.22); }
.agendar__btn:active { transform: translateY(0) scale(.985); }

/* Portrait editorial: marco más refinado (hairline interior + sombra
   en escala azul-tinte del sistema) y textura de puntos un poco más
   presente para dar profundidad al panel derecho (depth) */
.portrait-editorial {
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-split__right::before { opacity: .62; }

/* Underline firma en <em> de section-head h2 (consistencia con
   .headline em): mismo trazo cursivo verde leaf en TODAS las
   secciones, incluido el bloque .section-head heredado */
.section-head h2 em { color: var(--sea); }
.section-head h2 em::after { opacity: .7; }

/* --- P4. Ritmo vertical consistente (whitespace-balance):
   alinear el respiro de los heads v3 con la escala editorial.
   Antes variaban 22/24/28px de forma arbitraria. --- */
.switcher-section__head,
.faq-accordion__head { margin-bottom: clamp(28px, 4vw, 40px); }
.insurers-band__head { margin-bottom: clamp(24px, 3.5vw, 34px); }
.switcher-section { padding-block: clamp(56px, 8vw, 88px); }
.faq-accordion    { padding-block: clamp(56px, 8vw, 88px); }

/* Kicker → título: micro-espaciado para jerarquía clara */
.switcher-section__head .atmen-kicker,
.faq-accordion__head .atmen-kicker { margin-bottom: 12px; }
.switcher-section__head > p { margin-top: 12px; color: var(--ink-muted); line-height: 1.6; }

/* --- P5. Chips de Padecimientos (.cond-tab): elevación y motion
   consistentes; estado activo con sombra del sistema y micro-lift
   (scale-feedback). NO toca data-switcher ni aria. --- */
.cond-tab { box-shadow: var(--shadow-xs); }
.cond-tab:hover { border-color: var(--sky); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cond-tab:active { transform: translateY(0) scale(.98); }
.cond-tab[aria-selected="true"] { box-shadow: var(--shadow-md); transform: none; }
.cond-tab__n { font-variant-numeric: tabular-nums; }
/* Panel: sombra de elevación del sistema (elevation-consistent) */
.cond-panel { box-shadow: var(--shadow-lg); border-color: var(--border); }
/* Pilares del panel con hairline y un punto de color para ritmo */
.cond-panel .sw-pillar { border: 1px solid var(--line-soft); transition: border-color .2s var(--ease); }
.cond-panel .sw-pillar:hover { border-color: var(--accent-soft); }

/* Acordeón nativo (mobile/fallback): elevación coherente */
.sw-item { box-shadow: var(--shadow-xs); transition: box-shadow .25s var(--ease); }
.sw-item[open] { box-shadow: var(--shadow-sm); }

/* --- P6. Switcher desktop: tabs más refinados + flecha que se
   desliza en hover (motion-meaning) --- */
@media (min-width: 900px) {
  .switcher--tabs { box-shadow: var(--shadow-lg); }
  .switcher--tabs .sw-item summary .sw-arr { transform: translateX(-4px); transition: transform .2s var(--ease), opacity .2s var(--ease); }
  .switcher--tabs .sw-item[open] summary .sw-arr,
  .switcher--tabs .sw-item summary:hover .sw-arr { opacity: 1; transform: translateX(0); }
}

/* --- P7. Service cards: tipografía con figuras tabulares en
   bullets numéricos y consistencia de elevación en reposo
   (elevation-consistent) para que no se vean "planas" --- */
.service-card { box-shadow: var(--shadow-xs); }

/* --- P8. Contact cards: dar profundidad y micro-interacción
   (estaban planas). Hairline + sombra del sistema + lift en hover.
   No toca textos de cumplimiento. --- */
.contact-card {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,180,216,.28);
}
.contact-card h3 .icon {
  background: linear-gradient(135deg, var(--sea), var(--sky));
  color: #fff;
  border-radius: var(--r-md);
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  box-shadow: 0 8px 18px -8px rgba(0,180,216,.5);
}
.contact-card a:not(.btn) {
  position: relative;
  text-decoration: none;
  color: var(--sea);
  font-weight: 600;
  width: max-content;
}
.contact-card a:not(.btn):hover { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }

/* Mapa: encuadre coherente con las cards (radius + hairline + sombra) */
.map-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-wrapper iframe { display: block; width: 100%; }

/* --- P9. Aseguradoras: chips con micro-lift e icono check verde
   más vivo; mejor ritmo de la nota --- */
.insurer-chip { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.insurer-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(0,180,216,.25); }

/* --- P10. CTA aurora: borde luminoso sutil + profundidad para
   que "flote" sobre la sección (depth, primary-action) --- */
.cta-aurora {
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.14);
}
.cta-aurora .btn--whatsapp { box-shadow: 0 14px 36px rgba(0,0,0,.18); }

/* --- P11. Institutions ribbon: jerarquía tipográfica más
   editorial (tracking + tamaño) sin romper el loop --- */
.institutions-ribbon { padding-block: 12px; }
.institutions-ribbon__item { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }

/* --- P12. Media feature (Once Noticias): tarjeta con elevación
   y CTA con micro-motion --- */
.media-feature__cta { transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.media-feature__cta:hover { transform: translateX(2px); }

/* --- P13. FAQ: hairline activo + transición de fondo suave al
   abrir (state-transition) --- */
.faq-item { transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(0,180,216,.2); }
.faq-item summary:hover .faq-q { color: var(--sea); }

/* --- P14. Approach: número con la misma escala de sombra; ya tiene
   hover-lift. Refuerzo de hairline superior animado. --- */
.approach__item { box-shadow: var(--shadow-xs); }

/* --- P15. Reseñas: avatar y meta con jerarquía más limpia;
   tarjetas con hairline coherente --- */
.tcard { box-shadow: var(--shadow-xs); }
.wall__cta { transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.wall__cta:hover { background: var(--ocean); color: #fff; transform: translateY(-1px); }

/* --- P16. Foco visible global coherente (accessibility) para los
   elementos interactivos del rediseño v3 que carecían de uno
   explícito --- */
.cond-tab:focus-visible,
.sw-more:focus-visible,
.wall__cta:focus-visible,
.faq-item summary:focus-visible,
.contact-card a:focus-visible,
.insurer-chip:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --- P17. Respetar reduced-motion en todas las micro-interacciones
   nuevas --- */
@media (prefers-reduced-motion: reduce) {
  .agendar__btn, .cond-tab, .contact-card, .insurer-chip,
  .service-card, .faq-item, .tcard, .wall__cta, .sw-item,
  .media-feature__cta, .switcher--tabs .sw-item summary .sw-arr {
    transition: none !important;
  }
  .agendar__btn:hover, .cond-tab:hover, .contact-card:hover,
  .insurer-chip:hover, .wall__cta:hover, .media-feature__cta:hover {
    transform: none !important;
  }
}

/* =========================================================
   AJUSTES 2026-05-29 (b): hint de scroll, credenciales, top-bar, footer
   ========================================================= */

/* Hint "desliza" en banda de padecimientos (solo móvil) */
.cond-hint { display: none; }
@media (max-width: 760px) {
  .cond-hint {
    display: flex; align-items: center; justify-content: flex-end; gap: 6px;
    margin: 0 2px 8px; font-size: 12px; font-weight: 600; color: var(--ocean);
  }
  .cond.cond-scrolled .cond-hint { opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
  .cond-hint__arrow { animation: cond-nudge 1.4s ease-in-out infinite; }
}
@keyframes cond-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .cond-hint__arrow { animation: none; } }

/* Credenciales del hero: formato más premium (icono verificado + jerarquía) */
.credentials { gap: 8px; }
.credentials > div {
  position: relative; padding: 11px 13px 11px 12px;
  border-left: 3px solid var(--leaf);
  background: rgba(255,255,255,.82);
}
.credentials dt {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; letter-spacing: .09em; color: var(--ink-muted);
}
.credentials dt::before {
  content: ""; width: 11px; height: 11px; flex: 0 0 auto;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/8px no-repeat,
    var(--leaf);
  border-radius: 50%;
}
.credentials dd { font-size: 14px; margin-top: 2px; }

/* Top-bar legal en UNA sola banda en móvil (scroll horizontal, sin saltos de línea) */
@media (max-width: 720px) {
  .top-bar-legal {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    white-space: nowrap; font-size: .7rem; padding: 7px 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }
  .top-bar-legal::-webkit-scrollbar { display: none; }
  .top-bar-legal span { display: inline-flex; margin: 0; flex: 0 0 auto; }
  .top-bar-legal .sep { display: inline-flex; margin: 0 .6em; opacity: .45; }
}

/* Footer: ritmo limpio para versión abreviada */
.footer-compliance__legal { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-compliance__legal strong { color: #fff; }

/* =========================================================
   AJUSTES 2026-05-29 (c): CTA ghost, video, hero-stats wow, tarjetas dx
   ========================================================= */

/* 1. Botón secundario sobre el degradado del CTA aurora (era invisible) */
.cta-aurora .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06);
}
.cta-aurora .btn--ghost:hover { background: #fff; color: var(--ocean); border-color: #fff; }

/* 3. Video Once Noticias: evitar desbordamiento (pill de fuente fuerza ancho) */
.media-feature__body { min-width: 0; }
.media-feature__source { width: auto; max-width: 100%; white-space: normal; line-height: 1.4; }
.media-feature__title, .media-feature__desc, .media-feature__cta { max-width: 100%; }
.media-feature__cta { white-space: normal; }

/* 2. Distinciones del hero: tiles con más impacto */
.hero-stats {
  gap: 10px;
  border-top: 0; padding-top: 0;
}
.hero-stats__cell {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px 14px 12px;
  box-shadow: 0 8px 22px -16px rgba(2,62,138,.4);
}
.hero-stats__cell::before {
  content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--leaf));
  border-radius: 0 0 3px 0;
}
.hero-stats__cell dd {
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 800; letter-spacing: -.04em;
  font-feature-settings: "tnum";
}
.hero-stats__cell dt { font-size: 11px; color: var(--ink-muted); letter-spacing: .01em; }
@media (min-width: 960px) {
  .hero-stats { gap: 12px; }
  .hero-stats__cell dd { font-size: 38px; }
}

/* 5. Tarjetas de padecimientos: menos texto, más visuales */
.dx-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .dx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .dx-grid { grid-template-columns: repeat(5, 1fr); } }
.dx-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px 16px 16px;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: 16px; text-decoration: none; color: var(--ink);
  box-shadow: 0 10px 26px -20px rgba(2,62,138,.4);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.dx-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--sea), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.dx-card--leaf::before { background: linear-gradient(90deg, var(--leaf-deep), var(--leaf)); }
.dx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(2,62,138,.4); border-color: rgba(0,180,216,.34); color: var(--ink); }
.dx-card:hover::before { transform: scaleX(1); }
.dx-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.dx-card__ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sea), var(--sky)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0,180,216,.55);
}
.dx-card--leaf .dx-card__ic { background: linear-gradient(135deg, var(--leaf-deep), var(--leaf)); box-shadow: 0 8px 18px -8px rgba(6,167,125,.5); }
.dx-card__ic svg { width: 24px; height: 24px; }
.dx-card__name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.dx-card__tag { font-size: 11.5px; color: var(--ink-muted); line-height: 1.35; margin-top: auto; }
.dx-card__go { position: absolute; top: 16px; right: 14px; color: var(--ink-muted); transition: transform .25s var(--ease), color .25s var(--ease); }
.dx-card:hover .dx-card__go { color: var(--sea); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .dx-card, .dx-card::before, .dx-card__go, .hero-stats__cell { transition: none; }
}

/* =========================================================
   AJUSTES 2026-05-29 (d): hero efectos, chips con personalidad,
   ficha modal de padecimientos, hint servicios, timeline "cómo abordo"
   ========================================================= */

/* 1. Hero: entrada escalonada (sin tocar el LCP h1 con opacity) */
@media (prefers-reduced-motion: no-preference) {
  body.js-enabled .hero-split__left .atmen-kicker,
  body.js-enabled .hero-split__left .hero-lede,
  body.js-enabled .hero-split__left .agendar,
  body.js-enabled .hero-split__left .hero-stats {
    animation: hero-rise .7s var(--ease) both;
  }
  body.js-enabled .hero-split__left .atmen-kicker { animation-delay: .05s; }
  body.js-enabled .hero-split__left .hero-lede   { animation-delay: .14s; }
  body.js-enabled .hero-split__left .agendar     { animation-delay: .22s; }
  body.js-enabled .hero-split__left .hero-stats  { animation-delay: .30s; }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
/* Lede más legible: resalta términos clave */
.hero-lede b { color: var(--ocean); font-weight: 700; }
.hero-lede .hl { color: var(--leaf-deep); font-weight: 600; }

/* 2. Chips de padecimientos del hero: personalidad por categoría */
.condition-pills li {
  --cp: var(--sea);
  gap: 7px; font-weight: 600; color: #2e3d49;
  border-color: color-mix(in oklab, var(--cp) 32%, var(--line-soft));
  background: #fff;
}
.condition-pills li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cp); flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--cp) 16%, transparent);
}
.condition-pills li.condition-pills__hot {
  background: color-mix(in oklab, var(--cp) 12%, #fff);
  color: color-mix(in oklab, var(--cp) 78%, #000);
  border-color: color-mix(in oklab, var(--cp) 45%, transparent);
}
.cp-asma  { --cp: var(--sea); }
.cp-epoc  { --cp: var(--bay); }
.cp-apnea { --cp: var(--ocean-deep); }
.cp-tab   { --cp: var(--leaf); }
.cp-post  { --cp: var(--pine); }
.cp-disnea{ --cp: var(--sky); }
.cp-tos   { --cp: var(--aqua); }

/* 5b. dx-cards: color por condición (variedad cohesiva dentro de la paleta respiratoria) */
.dx-card { --cp: var(--sea); }
.dx-card[data-dx="asma"]            { --cp: var(--sea); }
.dx-card[data-dx="epoc"]            { --cp: var(--ocean); }
.dx-card[data-dx="tos-cronica"]     { --cp: var(--bay); }
.dx-card[data-dx="disnea"]          { --cp: var(--pine); }
.dx-card[data-dx="apnea-del-sueno"] { --cp: var(--ocean-deep); }
.dx-card[data-dx="tabaquismo"]      { --cp: var(--leaf); }
.dx-card[data-dx="post-covid"]      { --cp: var(--leaf-deep); }
.dx-card[data-dx="cancer-pulmon"]   { --cp: var(--ocean); }
.dx-card[data-dx="derrame-pleural"] { --cp: var(--bay); }
.dx-card[data-dx="broncoscopia"]    { --cp: var(--sea); }

.dx-card__ic {
  background: linear-gradient(135deg, var(--cp), color-mix(in oklab, var(--cp) 60%, #fff));
  box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--cp) 55%, transparent);
}
.dx-card::before {
  background: linear-gradient(90deg, var(--cp), color-mix(in oklab, var(--cp) 55%, #fff));
}
.dx-card:hover { border-color: color-mix(in oklab, var(--cp) 38%, transparent); }
.dx-card:hover .dx-card__go { color: var(--cp); }
.dx-card:focus-visible { outline-color: color-mix(in oklab, var(--cp) 72%, var(--sky)); }

/* 7. service-cards: textura de "onda respiratoria" + glow de acento (escapa al look genérico SaaS) */
.service-card { --sc: var(--sea); background: radial-gradient(115% 75% at 100% 0%, color-mix(in oklab, var(--sc) 7%, transparent), transparent 55%), var(--paper); }
.service-card--leaf { --sc: var(--leaf); }
.service-card::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 168px; height: 92px;
  background: color-mix(in oklab, var(--sc) 34%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 92'%3E%3Cpath d='M0 72 H42 L56 44 L74 86 L92 28 L110 86 L126 72 H168' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat bottom right / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 92'%3E%3Cpath d='M0 72 H42 L56 44 L74 86 L92 28 L110 86 L126 72 H168' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat bottom right / contain;
  opacity: .55;
  z-index: -1;
  pointer-events: none;
}

/* 3. Tarjetas dx → ahora abren ficha (button) + iconos propios */
button.dx-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.dx-card__go { background: none; border: 0; }
.dx-fichas { display: none; }

/* Ficha modal (dialog nativo) */
.dx-modal {
  --cp: var(--sea);
  border: 0; padding: 0; border-radius: 20px;
  width: min(560px, calc(100vw - 32px));
  /* dvh: en móvil la barra del navegador reduce el alto real; vh la ignora */
  max-height: min(86vh, 720px);
  max-height: min(86dvh, 720px);
  box-shadow: 0 40px 90px -30px rgba(2,16,60,.6);
  background: #fff; color: var(--ink);
  overflow: hidden;
  /* flex: el head queda fijo y el body scrollea; sin esto el body
     desbordaba el dialog y overflow:hidden recortaba los CTA en móvil */
  display: flex; flex-direction: column;
}
.dx-modal__head { flex: 0 0 auto; }
.dx-modal::backdrop { background: rgba(3,12,40,.55); backdrop-filter: blur(3px); }
.dx-modal[open] { animation: dx-pop .28s var(--ease); }
@keyframes dx-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.dx-modal__head {
  position: relative; padding: 22px 24px 18px;
  background:
    radial-gradient(ellipse at 88% -20%, color-mix(in oklab, var(--cp) 62%, transparent), transparent 60%),
    linear-gradient(135deg, var(--ocean-deep) 0%, color-mix(in oklab, var(--cp) 55%, var(--ocean-deep)) 58%, var(--cp) 100%);
  color: #fff;
}
.dx-modal__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); margin-bottom: 12px; }
.dx-modal__ic svg { width: 26px; height: 26px; }
.dx-modal__tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.dx-modal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px,5vw,28px); letter-spacing: -.02em; margin: 4px 0 0; color: #fff; }
.dx-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  font-size: 20px; line-height: 1;
  transition: background .2s var(--ease);
}
.dx-modal__close:hover { background: rgba(255,255,255,.3); }
.dx-modal__body { padding: 20px 24px 24px; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.dx-modal__lead { font-size: 15px; color: #3a4a55; margin: 0 0 16px; line-height: 1.55; }
.dx-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.dx-points li {
  position: relative;
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  background: linear-gradient(180deg, color-mix(in oklab, var(--cp) 6%, #fff), #fff);
  border: 1px solid color-mix(in oklab, var(--cp) 18%, var(--line-soft));
  border-left: 3px solid var(--cp);
  border-radius: 12px; padding: 14px 16px;
}
.dx-points__ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cp), color-mix(in oklab, var(--cp) 58%, #fff));
  color: #fff;
  box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--cp) 60%, transparent);
}
.dx-points__ic svg { width: 20px; height: 20px; }
.dx-points b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in oklab, var(--cp) 82%, #000); margin-bottom: 3px; }
.dx-points span { font-size: 13.5px; color: #3a4a55; line-height: 1.5; }
/* CTA como pie fijo del dialog: siempre visible, sin depender del scroll del body */
.dx-modal__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex: 0 0 auto;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.dx-modal__cta .btn { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .dx-modal[open] { animation: none; } }

/* Móvil: ficha compacta para que todo quepa en una sola vista */
@media (max-width: 480px) {
  .dx-modal { max-height: min(92dvh, 720px); }
  .dx-modal__head { padding: 12px 18px 10px; }
  .dx-modal__ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 8px; }
  .dx-modal__ic svg { width: 22px; height: 22px; }
  .dx-modal__title { font-size: 21px; }
  .dx-modal__body { padding: 12px 15px; }
  .dx-modal__lead { font-size: 13.5px; margin-bottom: 8px; line-height: 1.4; }
  .dx-points { gap: 6px; margin-bottom: 0; }
  .dx-points li { grid-template-columns: 32px 1fr; gap: 10px; padding: 7px 10px; border-radius: 10px; }
  .dx-points b { margin-bottom: 2px; }
  .dx-points__ic { width: 32px; height: 32px; border-radius: 9px; }
  .dx-points__ic svg { width: 16px; height: 16px; }
  .dx-points span { font-size: 12.5px; line-height: 1.35; }
  .dx-modal__close { width: 34px; height: 34px; top: 12px; right: 12px; }
  .dx-modal__cta { padding: 10px 16px 14px; gap: 8px; }
}

/* 4. Servicios: hint de "desliza" + fade de borde (móvil) */
@media (max-width: 720px) {
  .services-grid {
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
            mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
}
.svc-hint { display: none; }
@media (max-width: 720px) {
  .svc-hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 4px auto 14px; font-size: 12px; font-weight: 600; color: var(--ocean);
  }
  .svc-hint__arrow { animation: cond-nudge 1.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .svc-hint__arrow { animation: none; } }

/* 5. "Cómo abordo cada caso" → timeline conectada */
.flow { max-width: 760px; margin: 0 auto; position: relative; display: grid; gap: 0; }
.flow::before {
  content: ""; position: absolute; left: 27px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--sky), var(--leaf));
  opacity: .5;
}
.flow__step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 14px 0;
}
.flow__node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ocean), var(--sea));
  color: #fff; box-shadow: 0 12px 26px -12px rgba(2,62,138,.7);
}
.flow__step:nth-child(2) .flow__node { background: linear-gradient(135deg, var(--sea), var(--sky)); }
.flow__step:nth-child(3) .flow__node { background: linear-gradient(135deg, var(--leaf-deep), var(--leaf)); }
.flow__node svg { width: 26px; height: 26px; }
.flow__n { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ocean); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(2,62,138,.25); font-feature-settings: "tnum"; }
.flow__body { padding-top: 4px; }
.flow__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-deep); }
.flow__title { font-size: 1.18rem; font-weight: 700; margin: 4px 0 6px; color: var(--ink); letter-spacing: -.01em; }
.flow__body p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
@media (min-width: 880px) {
  .flow { max-width: 1000px; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flow::before { left: 8%; right: 8%; top: 28px; bottom: auto; width: auto; height: 2px; }
  .flow__step { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 0; }
  .flow__node { margin-inline: auto; }
  .flow__n { right: calc(50% - 36px); }
}

/* Menú "Agendar cita" dentro de la ficha modal */
.dx-modal__cta .dx-agendar-btn { gap: 8px; }
.dx-agendar-btn .agendar__chev { font-size: 13px; transition: transform .15s var(--ease); }
.dx-agendar-btn[aria-expanded="true"] .agendar__chev { transform: rotate(180deg); }
.dx-agendar-menu { margin-top: 12px; box-shadow: 0 14px 30px -16px rgba(2,62,138,.3); }
.dx-agendar-menu[hidden] { display: none; }

/* FAQ: citas con superíndice + menú de fuentes */
.faq-ref { font-size: .68em; font-weight: 700; white-space: nowrap; }
.faq-ref a { color: var(--sea); text-decoration: none; }
.faq-ref a:hover { text-decoration: underline; }
.refs-block summary { font-weight: 700; }
.refs-note { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px; }
.refs-list { margin: 0; padding-left: 24px; display: grid; gap: 12px; }
.refs-list li { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.refs-list li:target { background: var(--cloud-alt); border-radius: 8px; padding: 8px 10px; scroll-margin-top: 96px; }
.refs-list .ref-authors { color: var(--ink); font-weight: 600; }
.refs-list .ref-title { color: var(--ink); }
.refs-list .ref-src { font-style: italic; }
.refs-list a { color: var(--sea); font-weight: 600; }
.faq-cat-title { scroll-margin-top: 90px; }

/* =========================================================
   ============  REDISEÑO v4 (overrides finales)  ===========
   Hero simétrico + foto impactante · modal Agendar global ·
   contraste de iconos · reseñas adaptables · CTA premium.
   Esta capa va al final: gana en orden de cascada.
   ========================================================= */

/* ---------- 1. MODAL GLOBAL "AGENDAR CITA" ---------- */
.ag-modal {
  border: 0; padding: 0; margin: auto;
  width: min(480px, calc(100vw - 28px));
  background: transparent; color: var(--ink);
  overflow: visible;
  /* en pantallas bajas el dialog no debe exceder el viewport */
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}
.ag-modal::backdrop { background: rgba(3,12,40,.58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ag-modal[open] { animation: ag-pop .26s var(--ease); }
@keyframes ag-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
body.ag-modal-open { overflow: hidden; }

.ag-modal__inner {
  position: relative; background: #fff;
  border-radius: 24px; padding: 32px 26px 22px;
  box-shadow: 0 36px 80px -28px rgba(2,18,55,.62);
  overflow: hidden;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ag-modal__inner::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--leaf), var(--sea) 55%, var(--ocean));
}
.ag-modal__close {
  position: absolute; top: 15px; right: 15px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cloud); border: 1px solid var(--line-soft);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-muted);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ag-modal__close svg { width: 18px; height: 18px; }
.ag-modal__close:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); }

.ag-modal__head { margin-bottom: 18px; padding-right: 38px; }
.ag-modal__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-deep); }
.ag-modal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 28px); letter-spacing: -.02em; margin: 7px 0 7px; color: var(--ink); }
.ag-modal__title em { font-style: italic; color: var(--sea); }
.ag-modal__sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); margin: 0; }

.ag-modal__grid { display: grid; gap: 10px; }
.ag-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px; border-radius: 15px;
  background: var(--paper); border: 1.5px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s var(--ease), transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.ag-opt:hover, .ag-opt:focus-visible {
  border-color: var(--sea); transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(2,62,138,.55); outline: none; background: #fff;
}
.ag-opt__ic { width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, var(--sea), var(--ocean)); color: #fff; }
.ag-opt__ic svg { width: 24px; height: 24px; }
.ag-opt--wa  .ag-opt__ic { background: linear-gradient(135deg, #25d366, #0f8a44); }
.ag-opt--cal .ag-opt__ic { background: linear-gradient(135deg, var(--leaf), var(--leaf-deep)); }
.ag-opt__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-opt__txt b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ag-opt__txt span { font-size: 12px; color: var(--ink-muted); }
.ag-opt__arr { color: var(--line); flex: 0 0 auto; transition: transform .2s var(--ease), color .2s var(--ease); }
.ag-opt__arr svg { width: 18px; height: 18px; }
.ag-opt:hover .ag-opt__arr, .ag-opt:focus-visible .ag-opt__arr { color: var(--sea); transform: translateX(4px); }

.ag-modal__foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-muted); margin: 16px 2px 0; line-height: 1.45; }
.ag-modal__foot svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--leaf-deep); }
.ag-modal__foot a { color: var(--sea); font-weight: 700; }

@media (max-width: 520px) {
  .ag-modal { width: 100%; margin: auto auto 0; }
  .ag-modal__inner { border-radius: 24px 24px 0 0; padding: 26px 18px max(20px, env(safe-area-inset-bottom)); }
  .ag-modal[open] { animation: ag-up .3s var(--ease); }
  @keyframes ag-up { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .ag-modal[open] { animation: none; } }

/* ---------- 2. HERO v4 — simétrico + foto impactante ---------- */
.hero-tags {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-tags li {
  font-size: 12.5px; font-weight: 600; color: var(--ocean);
  background: rgba(0,119,182,.08); border: 1px solid rgba(0,119,182,.16);
  padding: 6px 13px; border-radius: 99px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-cta__primary {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  color: #fff; border: 0; border-radius: 15px; padding: 17px 30px;
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  box-shadow: 0 16px 32px -10px rgba(6,167,125,.6), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
}
.hero-cta__primary svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.hero-cta__primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(6,167,125,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.hero-cta__primary:hover svg { transform: translateX(4px); }
.hero-cta__primary:active { transform: translateY(0) scale(.985); }
.hero-cta__primary:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }

.hero-cta__wa {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--leaf-deep);
  border-radius: 15px; padding: 17px 24px;
  background: #fff; border: 1.5px solid rgba(6,167,125,.4);
  transition: background .2s var(--ease), transform .18s var(--ease), border-color .2s var(--ease);
}
.hero-cta__wa svg { width: 20px; height: 20px; }
.hero-cta__wa:hover { background: rgba(6,167,125,.07); transform: translateY(-2px); border-color: var(--leaf); }
.hero-cta__wa:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

/* Columna derecha: escenario limpio para la foto (sin marco "chafa") */
.hero-split__right {
  background: linear-gradient(165deg, #eef5fb 0%, #e1eef1 52%, #d3e7dd 100%);
  padding: 0; display: block; overflow: visible;
  min-height: 440px;
}
.hero-split__right::before { opacity: .38; }
.hero-split__right::after { z-index: 0; }

.hero-portrait {
  position: relative; margin: 0; height: 100%; min-height: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 34px 22px 26px;
}
.hero-portrait__glow {
  position: absolute; z-index: 0; width: 80%; aspect-ratio: 1;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,180,216,.42) 0%, rgba(6,167,125,.22) 46%, transparent 70%);
  filter: blur(44px); pointer-events: none;
}
.hero-portrait__frame {
  position: relative; z-index: 1; width: min(360px, 86%);
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  box-shadow: 0 34px 64px -26px rgba(2,40,80,.6), 0 0 0 1px rgba(2,62,138,.05);
}
.hero-portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-portrait__badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(3,18,55,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: 99px;
}
.hero-portrait__badge svg { width: 14px; height: 14px; color: #5ee0a0; }

.hero-portrait__cap { text-align: center; margin-top: 20px; position: relative; z-index: 2; }
.hero-portrait__cap b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  background: linear-gradient(120deg, var(--ocean-deep) 0%, var(--sea) 62%, var(--leaf) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ocean-deep);
}
.hero-portrait__cap span { font-size: 12px; color: var(--ink-muted); }

@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1.12fr 1fr; min-height: 620px; align-items: stretch; }
  .hero-split__left { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; }
  .hero-split__right { border-top: none; border-left: 1px solid var(--line-soft); padding: 0; min-height: 620px; }
  .hero-portrait { padding: 44px 28px 30px; }
  .hero-portrait__frame { width: min(404px, 88%); aspect-ratio: 4 / 5; }
  .hero-cta { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta__primary, .hero-cta__wa { transition: none; }
  .hero-cta__primary:hover, .hero-cta__wa:hover { transform: none; }
}

/* ---------- 3. CONTRASTE DE ICONOS (padecimientos) ---------- */
/* Gradiente más profundo → el glifo blanco resalta (WCAG en glifos UI) */
.dx-card__ic {
  background: linear-gradient(135deg, var(--cp) 0%, color-mix(in oklab, var(--cp) 78%, #000) 100%);
  box-shadow: 0 10px 20px -8px color-mix(in oklab, var(--cp) 60%, transparent);
}
.dx-card__ic svg { stroke-width: 2; }
.dx-points__ic {
  background: linear-gradient(140deg, var(--cp) 0%, color-mix(in oklab, var(--cp) 70%, #000) 100%);
  box-shadow: 0 7px 15px -7px color-mix(in oklab, var(--cp) 70%, transparent),
              inset 0 1px 0 rgba(255,255,255,.25);
}
/* Glifo SIEMPRE blanco: `.dx-points span` (0,1,1) ganaba a `.dx-points__ic` (0,1,0)
   y dejaba el icono gris (#3a4a55) sobre azul → invisible. */
.dx-points__ic svg { color: #fff; stroke: #fff; stroke-width: 2; }
.dx-modal__ic {
  background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4);
}

/* ---------- 4. RESEÑAS — tarjetas simétricas + márgenes con fade ---------- */
/* Tamaño uniforme: poco o mucho texto, mismas dimensiones → simetría */
.tcard {
  width: 320px; min-width: 320px; max-width: 320px;
  min-height: 200px;
  justify-content: flex-start;
}
.tcard__quote {
  font-size: 14px; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6;
  overflow: hidden;
}
.tcard__person { margin-top: auto; }
.marquee-row { align-items: stretch; padding-inline: clamp(8px, 3vw, 26px); }
/* margen visible en los bordes + desvanecimiento al cruzarlo */
.wall__mask::before, .wall__mask::after { width: clamp(56px, 11vw, 150px); }
.wall__mask::before { background: linear-gradient(90deg, #fff 12%, transparent); }
.wall__mask::after  { background: linear-gradient(-90deg, #fff 12%, transparent); }

@media (max-width: 700px) {
  .tcard { width: 300px; min-width: 300px; max-width: 300px; }
}

/* ---------- 5. CTA FINAL premium ---------- */
.cta-aurora {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0,180,216,.35), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(6,167,125,.4), transparent 55%),
    linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 55%, var(--sea) 100%);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 56px);
  border-radius: 28px;
}
.cta-aurora h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.025em; max-width: 18ch; margin-bottom: 14px; }
.cta-aurora h2 em { font-style: italic; color: #aef0d4; }
.cta-aurora p { font-size: 1.05rem; max-width: 42ch; margin-bottom: 30px; }
.cta-aurora__actions { gap: 14px; }
.cta-aurora__primary {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  color: var(--ocean-deep); background: #fff; border: 0;
  border-radius: 15px; padding: 17px 32px;
  box-shadow: 0 18px 38px -14px rgba(0,0,0,.45);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
}
.cta-aurora__primary svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.cta-aurora__primary:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -16px rgba(0,0,0,.55); }
.cta-aurora__primary:hover svg { transform: translateX(4px); }
.cta-aurora__primary:focus-visible { outline: 3px solid #aef0d4; outline-offset: 3px; }
.cta-aurora__wa {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; text-decoration: none; color: #fff;
  border-radius: 15px; padding: 17px 26px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .18s var(--ease), border-color .2s var(--ease);
}
.cta-aurora__wa svg { width: 20px; height: 20px; }
.cta-aurora__wa:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); border-color: #fff; }
.cta-aurora__wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) {
  .cta-aurora__actions { flex-direction: column; }
  .cta-aurora__primary, .cta-aurora__wa { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-aurora__primary, .cta-aurora__wa { transition: none; }
  .cta-aurora__primary:hover, .cta-aurora__wa:hover { transform: none; }
}

/* =========================================================
   ============  REDISEÑO v5 (overrides finales 2)  =========
   Hero con fondo difuminado (sin división franca) ·
   CTA final más premium con botones que resaltan.
   ========================================================= */

/* ---------- #2 · HERO: fondo difuminado unificado ---------- */
.hero-split {
  position: relative; isolation: isolate;
  background:
    radial-gradient(58% 54% at 16% 20%, rgba(0,180,216,.18), transparent 62%),
    radial-gradient(56% 62% at 90% 80%, rgba(6,167,125,.16), transparent 62%),
    radial-gradient(50% 50% at 70% 8%, rgba(2,119,182,.10), transparent 60%),
    linear-gradient(165deg, #f4faf8 0%, #eef6fb 48%, #eaf4f0 100%);
}
/* La columna de la foto deja de ser un bloque de color aparte */
.hero-split__right {
  background: transparent;
  border-left: none !important;
  border-top: none !important;
}
.hero-split__right::before { opacity: .2; }
/* halo de la foto un poco más amplio para fundir con el fondo */
.hero-portrait__glow {
  width: 92%;
  background: radial-gradient(circle, rgba(0,180,216,.34) 0%, rgba(6,167,125,.2) 48%, transparent 72%);
  filter: blur(54px);
}

/* ---------- #13 · CTA FINAL: fondo premium + botones que resaltan ---------- */
.cta-aurora {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(85% 120% at 12% -10%, rgba(0,180,216,.48), transparent 55%),
    radial-gradient(80% 120% at 105% 110%, rgba(6,167,125,.52), transparent 55%),
    radial-gradient(55% 75% at 62% 42%, rgba(72,202,228,.20), transparent 62%),
    linear-gradient(135deg, #021634 0%, #033463 46%, #0a5a86 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 32px;
  padding: clamp(52px, 7vw, 88px) clamp(26px, 4vw, 60px);
  box-shadow: 0 44px 96px -42px rgba(2,26,62,.85), inset 0 1px 0 rgba(255,255,255,.14);
}
.cta-aurora::after {
  content: ""; position: absolute; z-index: -1;
  right: -12%; bottom: -42%; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,224,160,.42), transparent 66%);
  filter: blur(54px); pointer-events: none;
}
.cta-aurora h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.cta-aurora h2 em { color: #8ef0c6; }

/* Primario: blanco sólido, grande, con doble halo */
.cta-aurora__primary {
  font-size: 17px; font-weight: 800; padding: 19px 40px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.14);
}
.cta-aurora__primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 64px -18px rgba(0,0,0,.66), 0 0 0 6px rgba(255,255,255,.2);
}
/* Secundario: verde WhatsApp sólido para que resalte */
.cta-aurora__wa {
  background: #25d366; border: 1.5px solid #25d366; color: #053d22;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 22px 44px -16px rgba(37,211,102,.6);
}
.cta-aurora__wa:hover { background: #1fc05c; border-color: #1fc05c; transform: translateY(-3px); }

/* =========================================================
   ====  REDISEÑO v6 — Página "Sobre el doctor" (premium)  ==
   Foto de lujo, credenciales premium, investigación amigable,
   logos institucionales, trayectoria impactante.
   ========================================================= */

/* ---------- #7 · Foto de lujo (rostro centrado, reloj visible) ---------- */
.portrait-lux { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.portrait-lux::before {
  content: ""; position: absolute; inset: -6% -10% -12%; z-index: -1;
  background: radial-gradient(58% 58% at 50% 34%, rgba(0,180,216,.3), transparent 70%);
  filter: blur(48px); pointer-events: none;
}
.portrait-lux__frame {
  position: relative; aspect-ratio: 0.72; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #e9f1f8, #d7e7e2);
  box-shadow: 0 46px 92px -34px rgba(2,26,62,.6), 0 8px 24px -12px rgba(2,26,62,.3);
}
/* Doble marco editorial: hairline dorado + mat blanco (lujo) */
.portrait-lux__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(184,147,47,.55), inset 0 0 0 7px rgba(255,255,255,.92);
}
.portrait-lux__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.portrait-lux__creds { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; z-index: 4; }

/* ---------- #11 · Credenciales premium ---------- */
.creds-lux {
  display: grid; gap: 18px; max-width: 980px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cred-lux {
  position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 30px 24px 24px; text-align: center; overflow: hidden;
  box-shadow: 0 22px 46px -28px rgba(2,40,80,.42);
}
.cred-lux::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #b8932f, #e6cd86 50%, #b8932f);
}
.cred-lux__seal {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ocean), var(--sea)); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(2,62,138,.6);
}
.cred-lux__seal svg { width: 28px; height: 28px; }
.cred-lux__logo { height: 56px; width: auto; max-width: 140px; margin: 0 auto 14px; display: block; object-fit: contain; }
.cred-lux__label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.cred-lux__value { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ocean-deep); margin: 5px 0 6px; }
.cred-lux__note { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px; }
.cred-lux__verify { font-size: 13px; font-weight: 700; color: var(--sea); text-decoration: none; }
.cred-lux__verify:hover { text-decoration: underline; }
.cred-lux--featured { background: linear-gradient(180deg, #fffdf6, #fff); border-color: rgba(184,147,47,.38); }

/* ---------- #8 · Investigación amigable ---------- */
.research-figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; max-width: 820px; margin: 0 auto var(--sp-6); }
.research-figure { text-align: center; }
.research-figure b {
  display: block; font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(120deg, var(--ocean), var(--sea) 60%, var(--leaf));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.research-figure span { font-size: 13px; color: var(--ink-muted); }
.research-grid { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.research-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px 20px;
  box-shadow: 0 14px 32px -24px rgba(2,40,80,.4); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.research-card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgba(2,40,80,.5); }
.research-card__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sea), var(--ocean)); color: #fff; margin-bottom: 14px; }
.research-card__ic svg { width: 26px; height: 26px; }
.research-card h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); letter-spacing: -.01em; }
.research-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.research-verify { text-align: center; margin-top: var(--sp-6); font-size: 13.5px; color: var(--ink-muted); }
.research-verify a { color: var(--sea); font-weight: 700; text-decoration: none; }
.research-verify a:hover { text-decoration: underline; }

/* ---------- #9 · Instituciones con logos ---------- */
.institutions-row--lux { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.institutions-row--lux .institution {
  flex: 1 1 180px; max-width: 240px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 18px;
  text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.institutions-row--lux .institution:hover { transform: translateY(-4px); box-shadow: 0 22px 42px -26px rgba(2,40,80,.42); border-color: rgba(0,180,216,.32); }
.institution__logo { height: 66px; display: grid; place-items: center; margin-bottom: 8px; }
.institution__logo img { max-height: 66px; max-width: 150px; width: auto; object-fit: contain; }
.institutions-row--lux .institution b { font-size: 1rem; color: var(--ocean-deep); }
.institutions-row--lux .institution > span:last-child { font-size: 12px; color: var(--ink-muted); }

/* ---------- #10 · Trayectoria impactante ---------- */
.tl-lux { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.tl-lux::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--leaf)); opacity: .45; }
.tl-lux__item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 24px; }
.tl-lux__item:last-child { padding-bottom: 0; }
.tl-lux__node { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-soft); color: var(--sea); position: relative; z-index: 1; box-shadow: 0 8px 20px -10px rgba(2,40,80,.3); }
.tl-lux__node svg { width: 23px; height: 23px; }
.tl-lux__item--key .tl-lux__node { background: linear-gradient(135deg, var(--ocean), var(--sea)); border-color: transparent; color: #fff; }
.tl-lux__card { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 15px 18px; box-shadow: 0 12px 28px -22px rgba(2,40,80,.32); }
.tl-lux__item--key .tl-lux__card { border-color: rgba(184,147,47,.42); box-shadow: 0 16px 34px -22px rgba(2,40,80,.46); }
.tl-lux__year { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-deep); }
.tl-lux__item--key .tl-lux__year { color: #b8932f; }
.tl-lux__title { font-size: 1.06rem; font-weight: 700; margin: 4px 0 6px; color: var(--ink); letter-spacing: -.01em; }
.tl-lux__detail { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

@media (max-width: 560px) {
  .portrait-lux { max-width: 320px; }
  .tl-lux__item { grid-template-columns: 42px 1fr; gap: 14px; }
  .tl-lux::before { left: 20px; }
  .tl-lux__node { width: 42px; height: 42px; }
}

/* =========================================================
   ====  v8 — Contacto "cédula digital" + compactación móvil  ===
   ========================================================= */

/* ---- Cédula digital: columna centrada, simétrica y de ancho constante ---- */
.lt-shell {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.linktree { justify-content: flex-start; }

/* En tablet/desktop la cédula se presenta como tarjeta flotante centrada */
@media (min-width: 680px) {
  .linktree {
    justify-content: center;
    padding-block: clamp(44px, 6vh, 76px);
  }
  .lt-shell {
    max-width: 484px;
    padding: 42px 40px 34px;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
            backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    box-shadow:
      0 54px 104px -38px rgba(2,40,80,.44),
      0 0 0 1px rgba(201,162,77,.30),
      inset 0 1px 0 rgba(255,255,255,.7);
  }
  .lt-shell .lt-foot { margin-top: 26px; }
}
@media (prefers-color-scheme: dark) and (min-width: 680px) {
  .lt-shell { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12); }
}

/* ---- Contacto: foto + jerarquía premium ---- */
.lt-photo {
  width: 130px; height: 130px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 20px 42px -18px rgba(2,40,80,.55),
              inset 0 0 0 4px rgba(255,255,255,.92),
              0 0 0 5px rgba(201,162,77,.5);
}
.lt-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
.lt-name em { font-style: italic; font-family: var(--font-serif); color: var(--sea); }
.lt-loc { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); margin: 14px 0 0; text-align: center; }
.lt-loc svg { width: 15px; height: 15px; color: var(--leaf-deep); flex: 0 0 auto; }

.lt-primary {
  display: flex; align-items: center; gap: 14px; width: 100%;
  margin: 24px 0 6px; padding: 16px 18px; border: 0; border-radius: 16px; cursor: pointer;
  text-align: left; font: inherit; color: #fff;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--sea) 58%, var(--leaf) 100%);
  box-shadow: 0 22px 44px -16px rgba(2,62,138,.6), 0 0 0 1px rgba(201,162,77,.5);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
}
.lt-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 56px -18px rgba(2,62,138,.7), 0 0 0 1px rgba(201,162,77,.65); }
.lt-primary:active { transform: translateY(0) scale(.99); }
.lt-primary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.lt-primary__ic { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.lt-primary__ic svg { width: 24px; height: 24px; }
.lt-primary__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lt-primary__txt b { font-size: 17px; font-weight: 800; }
.lt-primary__txt span { font-size: 11.5px; color: rgba(255,255,255,.85); }
.lt-primary__arr { flex: 0 0 auto; }
.lt-primary__arr svg { width: 22px; height: 22px; }

.lt-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 22px 0 10px; text-align: left; }

.lt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.72); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -22px rgba(2,40,80,.4);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.lt-tile:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -22px rgba(2,40,80,.5); border-color: rgba(0,180,216,.3); color: var(--ink); }
.lt-tile__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 9px; background: linear-gradient(135deg, var(--sea), var(--ocean)); color: #fff; }
.lt-tile__ic svg { width: 21px; height: 21px; }
.lt-tile--wa .lt-tile__ic { background: linear-gradient(135deg, #25d366, #0f8a44); }
.lt-tile b { font-size: 14.5px; font-weight: 700; }
.lt-tile span { font-size: 11.5px; color: var(--ink-muted); }

.lt-links { display: grid; gap: 8px; }
.lt-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 13px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid var(--line-soft);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease);
}
.lt-link:hover { background: #fff; border-color: rgba(0,180,216,.3); color: var(--ink); transform: translateY(-1px); }
.lt-link__txt { display: flex; flex-direction: column; }
.lt-link__txt b { font-size: 14px; font-weight: 700; }
.lt-link__txt span { font-size: 11.5px; color: var(--ink-muted); }
.lt-link__arr { color: var(--sea); font-weight: 700; flex: 0 0 auto; }

.lt-utils { display: flex; gap: 10px; margin-top: 14px; }
.lt-util {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; border-radius: 12px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  background: transparent; border: 1px solid var(--line-soft); text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lt-util:hover { color: var(--sea); border-color: rgba(0,180,216,.4); }
.lt-util svg { width: 17px; height: 17px; }
.lt-doctoralia { text-align: center; margin: 16px 0 0; }
.lt-doctoralia a { font-size: 12.5px; color: var(--ink-muted); text-decoration: none; }
.lt-doctoralia a:hover { color: var(--sea); text-decoration: underline; }

/* ---- Sobre el doctor: compactación móvil (menos scroll) ---- */
@media (max-width: 640px) {
  .section { padding-block: clamp(28px, 6vw, 40px); }

  /* Credenciales → filas compactas (sin sello, valor más chico) */
  .creds-lux { grid-template-columns: 1fr; gap: 10px; }
  .cred-lux { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 13px 16px; text-align: left; }
  .cred-lux__seal { display: none; }
  .cred-lux__logo { display: none; }
  .cred-lux__label { grid-column: 1; grid-row: 1; }
  .cred-lux__value { grid-column: 1; grid-row: 2; font-size: 19px; margin: 0; }
  .cred-lux__note { grid-column: 1; grid-row: 3; margin: 2px 0 0; font-size: 11px; }
  .cred-lux__verify { grid-column: 2; grid-row: 1 / span 3; align-self: center; white-space: nowrap; }
  .cred-lux::before { height: 3px; }

  /* Investigación → figuras en fila + 2×2 compacto */
  .research-figures { gap: 8px 18px; flex-wrap: nowrap; }
  .research-figure b { font-size: 1.55rem; }
  .research-figure span { font-size: 11px; }
  .research-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .research-card { padding: 14px 13px; }
  .research-card__ic { width: 38px; height: 38px; margin-bottom: 9px; }
  .research-card h3 { font-size: .95rem; }
  .research-card p { font-size: 12.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

  /* Timeline más plano */
  .tl-lux__item { padding-bottom: 16px; }
  .tl-lux__card { padding: 12px 14px; }
  .tl-lux__title { font-size: 1rem; }

  /* Respaldo institucional: logos un poco más compactos */
  .institutions-row--lux .institution { padding: 18px 14px; }
}
