/* ==========================================================================
   Movimiento y portada en video — Dr. Luis Yesid Martínez Laguna
   Va después de los demás estilos. Colores de marca: azul #002855, naranja #e65c00.
   ========================================================================== */

/* ---------- Tipografía Poppins (títulos más compactos) ---------- */
body { font-family: 'Poppins', system-ui, sans-serif; }
.m-titulo { font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.025em; }
.m-titulo em, .h-hero-titulo em, .sp-hero h1 em, .v-hero-titulo em { font-style: normal; color: var(--m-cobre); }
.sp-hero h1 em, .v-hero-titulo em { color: #ff8f45; }
.m-eyebrow { letter-spacing: .18em; }
.h-fila-num, .h-pasos span, .h-respaldo-fila span, .h-testimonios blockquote p { font-style: normal; }
.h-fila h3 { font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.1vw, 1.85rem); }
.h-testimonios blockquote p { font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.h-hitos b, .h-hero-datos dt, .h-doctor-anios strong, .h-clinica-lista strong { font-weight: 700; letter-spacing: -.02em; }
.sp-hero h1, .hero-section-procedimiento .hero-title { font-weight: 600; letter-spacing: -.025em; }
.sp-cuerpo h2, .proc-contenido h2, .proc-reco h2 { font-weight: 600; letter-spacing: -.02em; }
.sp-card h3 { font-weight: 600; font-size: 1.2rem; }

/* ---------- Desplazamiento suave (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Títulos que entran palabra por palabra ---------- */
.g-palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.g-palabra > span { display: inline-block; will-change: transform; }
.g-ilumina .g-palabra > span { opacity: .18; transition: none; }

/* ---------- Portada en video a pantalla completa ---------- */
.v-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--m-noche); }
.v-hero-marco { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.v-hero-video, .v-hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.v-hero-poster { animation: vKen 24s ease-in-out infinite alternate; }
@keyframes vKen { from { transform: scale(1.06); } to { transform: scale(1.18) translateX(-2%); } }
.v-hero-velo { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(0, 40, 85, .92) 0%, rgba(0, 40, 85, .7) 38%, rgba(0, 40, 85, .2) 75%, rgba(0, 40, 85, .05) 100%),
    linear-gradient(0deg, rgba(0, 20, 45, .75) 0%, rgba(0, 20, 45, 0) 38%); }
.v-hero-contenido { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; padding-bottom: 150px; }
.v-hero .m-eyebrow { color: #ff8f45; }
.v-hero-titulo { font-weight: 600; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 900px; margin: 0 0 24px; color: #fff; }
.v-hero-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; color: rgba(255, 255, 255, .84); max-width: 560px; margin: 0 0 34px; }
.v-hero-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.v-hero .m-btn--claro:hover { color: var(--m-noche) !important; }
.v-hero-datos { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .18); background: linear-gradient(0deg, rgba(0, 25, 55, .55), rgba(0, 25, 55, 0)); }
.v-hero-datos dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.v-hero-datos dl > div { padding: 22px 24px 26px 0; }
.v-hero-datos dl > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.v-hero-datos dt { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.v-hero-datos dd { margin: 8px 0 0; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.v-sonido { position: absolute; z-index: 3; right: var(--m-margen); bottom: 128px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 40, 85, .35); color: #fff; backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.v-sonido:hover { background: var(--m-cobre); border-color: var(--m-cobre); }
.v-bajar { position: absolute; z-index: 3; left: 50%; bottom: 118px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8) !important; text-decoration: none !important; font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.v-bajar i { width: 1px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.v-bajar i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #ff8f45; animation: vBaja 1.8s ease-in-out infinite; }
@keyframes vBaja { to { top: 100%; } }
@media (max-width: 991.98px) {
  .v-hero-datos dl { grid-template-columns: 1fr 1fr; }
  .v-hero-datos dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .v-hero-datos dl > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .v-hero-contenido { padding-bottom: 210px; }
  .v-bajar { display: none; }
  .v-sonido { bottom: 200px; }
}
@media (max-width: 575.98px) {
  .v-hero { min-height: 700px; }
  .v-hero-velo { background: linear-gradient(0deg, rgba(0, 30, 65, .95) 0%, rgba(0, 40, 85, .7) 55%, rgba(0, 40, 85, .45) 100%); }
  .v-hero-datos dl > div { padding: 14px 12px 16px 0; }
  .v-hero-datos dl > div + div { padding-left: 12px; }
  .v-hero-datos dd { font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- Franja de instituciones en movimiento ---------- */
.h-respaldo { overflow: hidden; padding: 22px 0; background: #fff; }
.h-respaldo .m-contenedor { max-width: none; padding: 0; }
.h-respaldo-fila { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; animation: vMarquesina 38s linear infinite; }
.h-respaldo-fila span { font-size: 1rem; font-weight: 500; color: var(--m-noche); padding: 0 34px; display: inline-flex; align-items: center; gap: 34px; }
.h-respaldo-fila span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--m-cobre); flex: 0 0 auto; }
.h-respaldo:hover .h-respaldo-fila { animation-play-state: paused; }
@keyframes vMarquesina { to { transform: translateX(-50%); } }

/* ---------- Especialista: retrato ---------- */
.h-doctor-f1 { background: linear-gradient(170deg, #eaf1f9 0%, #c8d9ec 100%); }
.h-doctor-f1 img.es-retrato { object-fit: cover; object-position: center 8%; mix-blend-mode: multiply; }
.h-doctor-sello { position: absolute; left: 6%; bottom: -18px; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: var(--m-sombra); z-index: 2; }
.h-doctor-sello img { width: 42px; height: 42px; object-fit: contain; }
.h-doctor-sello p { margin: 0; font-size: .74rem; line-height: 1.4; color: var(--m-gris); }
.h-doctor-sello strong { display: block; color: var(--m-noche); font-size: .8rem; }
.h-doctor .h-firma { position: static; display: block; margin: 0 0 6px; transform: rotate(-3deg); font-size: 2.4rem; }

/* ---------- Resultados en desplazamiento horizontal (computador) ---------- */
@media (min-width: 992px) {
  .h-resultados.g-horizontal { overflow: hidden; }
  .g-horizontal .h-casos { display: flex; gap: 28px; width: max-content; will-change: transform; }
  .g-horizontal .h-caso { width: clamp(320px, 30vw, 430px); flex: 0 0 auto; }
}

/* ---------- Proceso: línea que se llena ---------- */
.h-pasos { position: relative; }
.g-linea { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .14); }
.g-linea i { position: absolute; inset: 0; background: linear-gradient(90deg, #ff8f45, var(--m-cobre)); transform-origin: left; transform: scaleX(0); }
@media (max-width: 991.98px) { .g-linea { display: none; } }

/* ---------- Imágenes con zoom al aparecer ---------- */
[data-zoom] { overflow: hidden; }
[data-zoom] img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .v-hero-poster, .h-respaldo-fila, .v-bajar i::after { animation: none; }
}
.h-financia h2, .m-footer-cta h2 { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -.025em; }
.h-financia h2 em, .m-footer-cta h2 em { font-style: normal; color: #ff8f45; }
.h-financia-caja { background: linear-gradient(120deg, #002855 0%, #0a3a73 60%, #c94f00 140%); }
html { overflow-x: clip; }
.h-contacto-grid > *, .h-doctor-grid > *, .h-clinica-grid > *, .h-faq-grid > * { min-width: 0; }
@media (max-width: 575.98px) {
  .h-clinica-lista strong { font-size: 1.65rem; white-space: nowrap; }
  .m-titulo { font-size: 1.85rem; }
}
.h-hero-titulo { font-weight: 600; font-size: clamp(2.3rem, 4.1vw, 3.8rem); line-height: 1.06; letter-spacing: -.03em; }
.h-hero-datos dt { font-size: 2.1rem; }
