/* ============================================================
   PFCM · DESIGN TOKENS
   ============================================================ */
:root {
  --navy-900: #0B1F3A;
  --navy-800: #14304F;
  --navy-700: #1E3F66;
  --navy-600: #2B5687;
  --navy-500: #3A6FA8;
  --navy-400: #6B95C2;
  --navy-200: #C9D7E6;
  --navy-100: #E6EDF5;
  --navy-050: #F4F7FB;
  --teal-600: #1A8FA3;
  --teal-500: #2BA9BE;
  --teal-100: #DEF1F4;
  --gold-600: #C7A14A;
  --gold-500: #D7B561;
  --gold-100: #F6EED8;
  --ink:   #0E1726;
  --ink-2: #3A4658;
  --ink-3: #6B7A8F;
  --bg-soft: #F7F8FA;
  --white: #FFFFFF;
  --success: #2E8B57;
  --danger:  #B33A3A;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-serif:   'Source Serif Pro', serif;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 400ms;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Emil Kowalski — strong custom curves */
  --ease-emil-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-emil-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-sm: 0 1px 3px rgba(11,31,58,.08), 0 1px 2px rgba(11,31,58,.06);
  --shadow-md: 0 4px 16px rgba(11,31,58,.12), 0 2px 6px rgba(11,31,58,.08);
  --shadow-lg: 0 16px 48px rgba(11,31,58,.18), 0 4px 12px rgba(11,31,58,.10);
  --shadow-gold: 0 12px 40px rgba(215,181,97,.30);

  --text-hero:    clamp(2.9rem, 7.6vw, 8rem);
  --text-display: clamp(2.2rem, 5vw, 5rem);
  --text-h2:      clamp(1.6rem, 3vw, 3rem);
  --text-h3:      clamp(1.15rem, 2vw, 1.8rem);
  --text-lg:      clamp(1.0625rem, 1.5vw, 1.25rem);
  --text-base:    1.0625rem;
  --text-sm:      0.9rem;
  --text-xs:      0.775rem;
  --text-label:   0.7rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: auto;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--teal-500) 60%, var(--gold-600) 100%);
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(215,181,97,.7), 0 0 4px rgba(43,169,190,.5);
  pointer-events: none;
}

/* ============================================================
   CUSTOM CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,169,190,.07) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0.05; mix-blend-mode: screen;
}

/* ============================================================
   PREMIUM GLASS SYSTEM
   ============================================================ */
.glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.09);
}
.glass-premium {
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.03) 100%);
  backdrop-filter: blur(36px) saturate(2.2) brightness(1.06);
  -webkit-backdrop-filter: blur(36px) saturate(2.2) brightness(1.06);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 8px 32px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.09);
}
.glass-gold {
  background: linear-gradient(135deg, rgba(215,181,97,.12) 0%, rgba(215,181,97,.03) 100%);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(215,181,97,.22);
  box-shadow: 0 4px 24px rgba(215,181,97,.15), inset 0 1px 0 rgba(215,181,97,.2);
}

/* ============================================================
   3D RENDER SLOT SYSTEM
   ============================================================ */
.render-slot {
  position: relative; perspective: 900px;
  border-radius: var(--r-xl); overflow: visible;
}
.render-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition: transform .05s linear;
}
.render-overlay-glow {
  position: absolute; width: 55%; height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,169,190,.35) 0%, transparent 70%);
  pointer-events: none; z-index: 2;
  filter: blur(48px);
  top: 20%; left: 22%;
}
.render-hitl-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 6;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(11,31,58,.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(215,181,97,.45);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .6rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-500);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.render-hitl-badge svg { flex-shrink: 0; }
.render-placeholder-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background:
    linear-gradient(160deg, rgba(30,63,102,.88) 0%, rgba(11,31,58,.96) 100%);
  border: 1.5px dashed rgba(215,181,97,.32);
  border-radius: var(--r-xl);
}
.render-placeholder-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(215,181,97,.08);
  border: 1px solid rgba(215,181,97,.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  animation: icon-breathe 3s ease-in-out infinite;
}
@keyframes icon-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(215,181,97,.25); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(215,181,97,0); }
}
.render-placeholder-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: .65rem; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.4); text-align: center; line-height: 1.6;
}
.render-placeholder-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: .6rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(215,181,97,.55); text-align: center;
}

/* ============================================================
   ANIMATED STRIPE LINES
   ============================================================ */
.stripe-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(215,181,97,.0) 10%,
    rgba(215,181,97,.45) 40%, rgba(43,169,190,.35) 60%,
    rgba(215,181,97,.0) 90%, transparent 100%
  );
  background-size: 200% 100%;
  animation: stripe-move 4s ease-in-out infinite;
}
@keyframes stripe-move {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: min(92vw, 1240px); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 10rem) 0; position: relative; overflow: hidden; }
.section-light    { background: var(--bg-soft); }
.section-white    { background: var(--white); }
.section-dark     { background: var(--navy-900); }
.section-dark-mid { background: var(--navy-800); }
.section-tinted   { background: color-mix(in srgb, var(--gold-500) 5%, var(--bg-soft)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: .22em;
  color: var(--teal-500);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow.gold { color: var(--gold-500); }
.eyebrow.gold::before { background: var(--gold-500); }

.sec-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-display); color: var(--navy-900);
  letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 0;
}
.sec-title.light { color: var(--white); }
.sec-title em {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 400; color: var(--gold-500);
}
.sec-sub {
  font-family: var(--font-body); font-size: var(--text-lg);
  color: var(--ink-2); line-height: 1.75; max-width: 56ch;
  margin: 22px auto 0; text-align: center;
  font-weight: 400; letter-spacing: 0.005em;
}
.sec-sub.light { color: rgba(255,255,255,.68); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .9em 2.4em; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: .14em;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform var(--dur-2) var(--ease-spring),
              box-shadow var(--dur-3) var(--ease),
              background var(--dur-2) var(--ease);
}
.btn-action {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 20px 56px rgba(215,181,97,.45); }
.btn-action:active { transform: translateY(0) scale(.97); }
.btn-action::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-101%);
  transition: transform .4s var(--ease);
}
.btn-action:hover::before { transform: translateX(0); }
.btn-outline, .btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.28);
}
.btn-outline:hover, .btn-ghost:hover {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5);
}
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-sm  { padding: .6em 1.6em; font-size: .62rem; }
.btn-lg  { padding: 1.1em 2.8em; font-size: .76rem; }
.btn-xl  { padding: 1.3em 3.2em; font-size: .8rem; letter-spacing: .16em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,31,58,.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255,255,255,.0);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  background: rgba(11,31,58,.92);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 56px; width: auto; object-fit: contain; }
.nav-logo .glyph {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--white); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.04em;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); flex-shrink: 0;
}
.nav-logo .glyph span { color: var(--gold-500); }
.nav-logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .wordmark .top { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); letter-spacing: -.01em; }
.nav-logo .wordmark .sub { font-family: var(--font-display); font-weight: 500; font-size: 9px; color: var(--gold-500); text-transform: uppercase; letter-spacing: .22em; margin-top: 3px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.8);
  position: relative; cursor: pointer;
  transition: color var(--dur-2) var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 18px; position: relative; z-index: 1001;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--white); transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child  { bottom: 0; }
.nav-toggle.active span:first-child { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:last-child  { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; background: var(--navy-900); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
  clip-path: circle(0% at calc(100% - 2rem) 2rem);
  transition: clip-path .6s var(--ease-out);
}
.nav-mobile.open { clip-path: circle(150% at calc(100% - 2rem) 2rem); }
.nav-mobile a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--white); text-transform: uppercase; letter-spacing: .04em;
}
.nav-mobile-cta {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600)) !important;
  color: var(--navy-900) !important;
  padding: .6em 2em; border-radius: var(--r-pill);
  font-size: clamp(1rem, 3vw, 1.3rem) !important;
  letter-spacing: .06em !important;
}

/* ============================================================
   HERO SECTION — overlap fix: padding-top clears fixed nav
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px clamp(1.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(43,169,190,.14), transparent 55%),
    radial-gradient(700px 500px at -5% 50%, rgba(215,181,97,.08), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px 180px; opacity: .5;
}
.hero-content-wrap { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 580px; }
.hero-eyebrow { opacity: 0; }
.hero-h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-hero); line-height: 1.08;
  letter-spacing: -0.04em; color: var(--white); margin: 24px 0 0;
}
.hero-h1 .line-accent {
  display: block; font-family: var(--font-serif); font-style: italic;
  font-weight: 400; font-size: .7em;
  color: var(--gold-500);
}
.hero-sub {
  font-size: var(--text-lg); color: rgba(255,255,255,.72);
  line-height: 1.6; max-width: 46ch; margin-top: 24px;
  opacity: 0; transform: translateY(24px);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 36px; opacity: 0; transform: translateY(18px);
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  opacity: 0;
}
.hero-stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.2rem; color: var(--gold-500); letter-spacing: -.03em; line-height: 1;
}
.hero-stat .unit { font-size: .65em; }
.hero-stat .lab {
  font-size: .7rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; line-height: 1.3;
}

.hero-visual-col {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  top: 50%; transform: translateY(-50%);
  width: 38%; max-width: 460px;
  z-index: 1;
}
.doctor-frame {
  aspect-ratio: 3/4; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; padding: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateX(40px);
}
.doctor-frame .placeholder-img {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(43,86,135,.35), transparent 60%),
              linear-gradient(180deg, rgba(30,63,102,.6) 0%, rgba(11,31,58,.95) 100%);
  display: flex; align-items: center; justify-content: center;
}
.doctor-chip {
  background: rgba(11,31,58,.8); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 14px 18px; position: relative; z-index: 2; width: 100%;
}
.chip-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--white); }
.chip-spec { font-size: .7rem; color: var(--teal-500); text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; }
.badge-float {
  position: absolute; top: 24px; right: -16px; z-index: 3;
  background: var(--gold-500); color: var(--navy-900);
  padding: 8px 14px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .65rem;
  text-transform: uppercase; letter-spacing: .12em;
  box-shadow: 0 8px 24px rgba(215,181,97,.4);
  opacity: 0; transform: scale(.8);
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05); pointer-events: none;
}
.ring-1 { width: 140%; padding-top: 140%; top: -20%; left: -20%; animation: ring-spin 24s linear infinite; }
.ring-2 { width: 115%; padding-top: 115%; top: -7%; left: -7%; animation: ring-spin 36s linear infinite reverse; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45); font-size: .62rem; text-transform: uppercase; letter-spacing: .2em;
  font-family: var(--font-display); font-weight: 500; opacity: 0; z-index: 3;
}
.scroll-line { width: 1px; height: 36px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-progress {
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold-500); animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop { 0% { top: -100%; } 100% { top: 200%; } }

/* ============================================================
   VISION — STICKY CINEMATIC SCROLL
   ============================================================ */
.section-vision {
  background: var(--bg-soft);
  position: relative;
  /* overflow must NOT be hidden — sticky child needs free scroll context */
}

.vision-sticky-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}

/* ─── LEFT: Sticky Cinema Panel ─── */
.vision-cinema-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.vision-cinema-panel {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  background: var(--navy-900);
}

.vision-cinema-bg {
  position: absolute;
  inset: -15%;
  will-change: transform;
}

.vision-cinema-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 75% at 32% 42%, rgba(43,169,190,.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 68% 58%, rgba(215,181,97,.2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 55% at 50% 18%, rgba(14,48,90,.92) 0%, transparent 60%),
    linear-gradient(168deg, #0D2845 0%, var(--navy-900) 48%, #040D18 100%);
}

.vision-cinema-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 68px);
}

.vision-cinema-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, transparent 0%, transparent 72%, rgba(247,248,250,.28) 100%),
    linear-gradient(to bottom, rgba(4,13,24,.45) 0%, transparent 22%, transparent 72%, rgba(4,13,24,.7) 100%);
}

/* Vertical pip progress tracker */
.vision-panel-track {
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 7px;
  z-index: 6;
}
.vpt-pip {
  width: 3px; height: 18px; border-radius: 2px;
  background: rgba(255,255,255,.18);
  transition: height .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.vpt-pip.active {
  height: 48px;
  background: var(--gold-500);
  box-shadow: 0 0 12px rgba(215,181,97,.55);
}

/* Counter badge top-left */
.vision-cinema-wordmark {
  position: absolute; bottom: 28px; left: 28px; z-index: 6;
  font-family: var(--font-display); font-weight: 600;
  font-size: .56rem; text-transform: uppercase; letter-spacing: .3em;
  color: rgba(255,255,255,.28);
}

.vision-hitl-badge {
  top: auto !important;
  bottom: 28px !important;
  left: auto !important;
  right: 28px !important;
}

/* ─── RIGHT: Content Column ─── */
.vision-content-col {
  padding: clamp(5rem, 9vw, 9rem) clamp(2.5rem, 5vw, 5rem) clamp(5rem, 9vw, 9rem);
  background: var(--bg-soft);
}

.vision-section-header {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
  max-width: 520px;
}
.vision-section-header .sec-sub {
  margin-top: 20px; max-width: 50ch;
}

/* ─── Vision Panels (individual scrolling entries) ─── */
.vision-panel {
  position: relative;
  min-height: 62vh;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(11,31,58,.1);
  opacity: 0;
  transform: translateY(64px);
  will-change: transform, opacity;
}

/* Ghost oversized number behind content */
.vp-num-bg {
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem); right: -4px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(8rem, 16vw, 14rem);
  line-height: 1; letter-spacing: -.07em;
  color: rgba(11,31,58,.055);
  user-select: none; pointer-events: none; z-index: 0;
}

.vp-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-050); border: 1px solid var(--navy-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700); flex-shrink: 0; position: relative; z-index: 1;
}
.vp-icon--gold {
  background: var(--gold-100) !important;
  border-color: rgba(215,181,97,.32) !important;
  color: var(--gold-600) !important;
}

.vp-tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: .65rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--teal-500); position: relative; z-index: 1;
}
.vp-tag--gold { color: var(--gold-600); }

.vp-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: var(--navy-900); line-height: 1.04;
  letter-spacing: -.045em;
  position: relative; z-index: 1;
}

.vp-body {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  color: var(--ink-2); line-height: 1.85;
  max-width: 50ch; font-weight: 400;
  position: relative; z-index: 1;
}

.vp-accent-line {
  height: 2px; width: 56px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--gold-500) 100%);
  position: relative; z-index: 1;
}
.vp-accent-line--gold {
  background: linear-gradient(90deg, var(--gold-600) 0%, var(--gold-500) 100%);
}

/* Vision bottom (quote + CTA) */
.vision-bottom {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 32px;
  padding: clamp(3rem, 5vw, 5rem) 0 0;
  border-top: 1px solid rgba(11,31,58,.1);
  opacity: 0; transform: translateY(40px);
  will-change: transform, opacity;
}
.vision-cta { display: flex; }

.vision-quote-editorial {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.18rem, 1.95vw, 1.5rem);
  color: var(--navy-700); line-height: 1.68; max-width: 50ch;
}
.vision-quote-editorial::before {
  content: '\201C'; color: var(--gold-500);
  font-size: 2.2em; line-height: 0; vertical-align: -.45em; margin-right: .05em;
}

/* Legacy aliases (kept for zero-breakage) */
.vision-quote-center {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 1.85vw, 1.38rem);
  color: var(--navy-700); line-height: 1.7; max-width: 54ch;
}
.vision-quote-center::before {
  content: '\201C'; color: var(--gold-500);
  font-size: 2.1em; line-height: 0; vertical-align: -.42em; margin-right: .06em;
}

/* ============================================================
   ALGOLOGÍA SECTION
   ============================================================ */
/* Algología section base — full layout lives in the cinematic block below */

/* ============================================================
   RESULTADOS SECTION
   ============================================================ */
.section-results {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%, #060F1E 100%);
  overflow: hidden;
}
.results-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 600px at 85% 50%, rgba(43,169,190,.1), transparent 55%),
              radial-gradient(600px 400px at 15% 80%, rgba(215,181,97,.07), transparent 55%);
}
.results-header { text-align: center; margin-bottom: 64px; }
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 64px;
}
.result-stat {
  padding: 44px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.result-stat:last-child { border-right: none; }
.result-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 5vw, 5rem); line-height: 1; letter-spacing: -.03em; color: var(--white);
}
.stat-pre { color: var(--gold-500); font-size: .7em; vertical-align: super; }
.stat-suf { color: var(--gold-500); font-size: .6em; vertical-align: super; margin-left: 2px; }
.result-bar {
  height: 2px; background: rgba(255,255,255,.1); border-radius: 2px;
  margin: 18px auto 14px; width: 80%; overflow: hidden;
}
.result-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
  width: var(--pct, 0%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-bar-fill.animated { transform: scaleX(1); }
.result-lab {
  font-family: var(--font-display); font-weight: 500; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); line-height: 1.4;
}
.results-cta { text-align: center; margin-top: 56px; }

/* ============================================================
   CONOCE TU DOLOR — Award-tier cinematic stage (ScrollTrigger pin)
        Left  · 3D render fixed across the segment · parallax + scrubbed time
        Right · staged text reveals — intro + 11 conditions, one at a time
                (mirrors ¿Qué es la algología? — no cards, pure text)
   The whole wrap is one 100vh segment pinned by GSAP; the pin distance maps
   1:1 to the 11 condition reveals (the intro title is the non-synced entry
   state), so there is no empty/dead scroll space and no CTA after it.
   ============================================================ */
.section-dolor {
  position: relative;
  padding: 0;
  background: var(--navy-900);
}

/* The pinned segment — exactly one viewport tall. Render gets the full left
   half (a touch more) so it reads edge-to-edge. */
.dolor-sticky-wrap {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: stretch;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ─── LEFT · render fixed across the segment (parallax via JS) ─── */
.dolor-cinema-col {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--navy-900);
}
.dolor-cinema-panel {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  background: var(--navy-900);
}
.dolor-cinema-bg {
  position: absolute;
  inset: 0;                   /* render fills the whole left half — no free borders.
                                 object-fit:cover already overscales, so the JS
                                 y-drift parallax never reveals a navy gap. */
  will-change: transform;
}
#dolor-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;          /* fill the entire left half edge-to-edge (crop is OK) */
  object-position: center;
  display: block;
}

/* ─── RIGHT · static title (upper quarter) + stage of the 11 condition reveals ─── */
.dolor-content-col {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.25rem, 3vh, 3rem);
  padding: clamp(9vh, 12vh, 14vh) clamp(2.5rem, 5vw, 5rem) clamp(4vh, 7vh, 9vh);
  background: var(--navy-900);
}

/* Static section title — upper-right quarter · always visible, never animates */
.dolor-fixed-header {
  flex: 0 0 auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 18px);
}
.dolor-eyebrow { width: fit-content; }
.dolor-fixed-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0;
}
.dolor-fixed-title em { color: var(--gold-500); font-style: normal; font-weight: 800; }
.dolor-fixed-copy {
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  color: rgba(255,255,255,.64);
  line-height: 1.62;
  max-width: 46ch;
  margin: 0;
}
.dolor-fixed-line {
  height: 2px; width: 70px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--gold-500) 100%);
  margin-top: clamp(4px, .6vw, 8px);
}

/* Stage fills the lower area; the 11 conditions cross-fade in place here */
.dolor-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 680px;
  min-height: 0;
}

/* Each condition is stacked; GSAP cross-fades them as you scroll */
.dolor-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 26px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}
.dolor-state.is-active { pointer-events: auto; }

/* ── States 01–11 · Conditions — larger type, generous spacing, no card ── */
.dolor-pain {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.dolor-pain-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  line-height: .85;
  letter-spacing: -.06em;
  color: rgba(43,169,190,.38);
  display: block;
  will-change: opacity, transform;
}
.dolor-pain.dolor-pain--gold .dolor-pain-num {
  color: rgba(215,181,97,.38);
}
.dolor-pain-body {
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 1.6vw, 22px);
  padding-top: clamp(6px, 1vw, 14px);
}
.dolor-pain-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--teal-500);
  width: fit-content;
}
.dolor-pain--gold .dolor-pain-tag { color: var(--gold-600); }
.dolor-pain-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);   /* tipografía más grande */
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0;
}
.dolor-pain-copy {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  color: rgba(255,255,255,.72);
  line-height: 1.72;
  max-width: 46ch;
  margin: 0;
}
.dolor-pain-line {
  height: 2px; width: 76px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--gold-500) 100%);
  transform-origin: left center;
  margin-top: clamp(4px, .7vw, 10px);
}
.dolor-pain--gold .dolor-pain-line {
  background: linear-gradient(90deg, var(--gold-600) 0%, var(--gold-500) 100%);
}

/* ── Responsive · no pin; render is a sticky top band, states stack statically ── */
@media (max-width: 1024px) {
  .dolor-sticky-wrap {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .dolor-cinema-col {
    position: sticky; top: 0;
    height: 46vh; min-height: 280px;
    order: -1; z-index: 0;
  }
  .dolor-cinema-bg { inset: 0; }
  .dolor-content-col {
    height: auto;
    position: relative; z-index: 1;
    gap: clamp(2rem, 6vw, 3.5rem);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  }
  .dolor-fixed-header { max-width: 100%; }
  .dolor-stage {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(44px, 6.5vw, 72px);
    min-height: 0;
    max-width: 100%;
  }
  .dolor-state {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .dolor-pain-num { font-size: clamp(3rem, 12vw, 4.6rem); }
}
@media (max-width: 640px) {
  .dolor-cinema-col { height: 40vh; min-height: 240px; }
  .dolor-content-stage { padding: 2.5rem 1.25rem; }
  .dolor-pain-title { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }
  .dolor-state-title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* Highlight pulse when navigating from pain to treatment */
@keyframes card-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(215,181,97,.6); }
  50%  { box-shadow: 0 0 0 6px rgba(215,181,97,.3), 0 0 48px rgba(215,181,97,.2); }
  100% { box-shadow: 0 0 0 0 rgba(215,181,97,0); }
}
.tx-flip-card.highlight { animation: card-highlight .9s ease-out; }

/* ============================================================
   TRATAMIENTOS — 3D FLIP CARDS
   ============================================================ */
.tx-header { text-align: center; margin-bottom: 56px; }
.tx-flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.tx-flip-card {
  perspective: 1000px; cursor: pointer;
  height: 390px;
}
.tx-flip-card:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; border-radius: var(--r-xl); }
.tx-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--r-xl);
}
.tx-flip-card.flipped .tx-flip-inner { transform: rotateY(180deg); }

.tx-flip-front, .tx-flip-back {
  position: absolute; inset: 0;
  border-radius: var(--r-xl); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
}
/* Bulletproof flip fix — hide front at mid-point of 0.7s flip */
.tx-flip-front { transform: rotateY(0deg); transition: visibility 0s linear 0s; }
.tx-flip-card.flipped .tx-flip-front { visibility: hidden; transition-delay: 0.35s; }
.tx-flip-front {
  display: flex; flex-direction: column;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
}
.tx-front-img {
  flex: 0 0 55%; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--grad-a, var(--navy-700)), var(--grad-b, var(--navy-900)));
}
.tx-img-fill {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 30%, rgba(255,255,255,.12), transparent 55%);
}
.tx-img-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, transparent 50%);
}
.tx-chip {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(11,31,58,.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: .6rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--white);
}
.tx-chip-back {
  position: static; display: inline-flex;
  background: rgba(43,169,190,.15); border-color: rgba(43,169,190,.3); color: var(--teal-500);
}
.tx-img-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px;
  background: linear-gradient(0deg, rgba(11,31,58,.85) 0%, transparent 100%);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--white); letter-spacing: .02em;
}
.tx-front-body {
  flex: 1; padding: 16px 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.tx-front-body h4 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--white); }
.tx-front-body p { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.5; flex-grow: 1; }
.tx-flip-hint {
  display: flex; align-items: center; gap: 6px; margin-top: auto;
  font-family: var(--font-display); font-weight: 600; font-size: .62rem;
  color: var(--gold-500); text-transform: uppercase; letter-spacing: .14em;
  animation: hint-pulse 2.5s ease-in-out infinite;
}
@keyframes hint-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.tx-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(43,169,190,.2);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 11px; color: var(--white);
}
.tx-flip-back h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--white); line-height: 1.25; margin-top: 4px;
}
.tx-flip-back > p { font-size: .83rem; color: rgba(255,255,255,.75); line-height: 1.6; flex-grow: 1; }
.tx-back-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.tx-back-list li {
  font-size: .78rem; color: rgba(255,255,255,.75);
  font-family: var(--font-display); font-weight: 500; letter-spacing: .04em;
  padding-left: 14px; position: relative;
}
.tx-back-list li::before { content: '·'; position: absolute; left: 4px; color: var(--teal-500); font-weight: 800; }
.tx-back-list li:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 6px; }
.tx-all-cta { text-align: center; margin-top: 56px; }

/* ============================================================
   MÉDICOS SECTION
   ============================================================ */
.medicos-header { text-align: center; margin-bottom: 60px; }
.medicos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 960px; margin-inline: auto; align-items: stretch; }
.medico-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-xl); overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease),
              border-color var(--dur-3) var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.medico-card .medico-info { flex: 1; }
.medico-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 72px rgba(0,0,0,.45), 0 0 0 1px rgba(43,169,190,.2) inset;
  border-color: rgba(43,169,190,.22);
}
.medico-photo-wrap {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.medico-photo-placeholder {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(58,111,168,.3), transparent 55%),
              linear-gradient(180deg, rgba(30,63,102,.5) 0%, rgba(11,31,58,.9) 100%);
  display: flex; align-items: center; justify-content: center;
}
.medico-photo-placeholder svg { width: 80px; opacity: .22; }
.medico-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,31,58,.9) 0%, transparent 55%);
}
.medico-info { padding: 22px 22px 26px; }
.medico-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .6rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--teal-500); margin-bottom: 10px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(43,169,190,.1); border: 1px solid rgba(43,169,190,.2);
}
.medico-info h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--white); line-height: 1.2; margin-bottom: 4px;
}
.medico-title { font-size: .78rem; color: var(--gold-500); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.medico-bio { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 14px; }
.medico-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.medico-tags span {
  font-family: var(--font-display); font-weight: 500; font-size: .58rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.6); padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.medicos-cta { text-align: center; margin-top: 56px; }

/* ============================================================
   CONTACTO SECTION
   ============================================================ */
.section-contact {
  background: linear-gradient(160deg, var(--navy-900) 0%, #060F1E 100%);
  overflow: hidden;
}
.contact-header { text-align: center; margin-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info-col { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: var(--teal-500);
}
.contact-item h5 {
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); margin-bottom: 3px;
}
.contact-item p { font-size: .9rem; color: var(--white); line-height: 1.5; }
.contact-item a { color: var(--teal-500); transition: color var(--dur-2) var(--ease); }
.contact-item a:hover { color: var(--gold-500); }
.map-wrap { margin-top: 4px; }
.map-placeholder, .map-embed {
  aspect-ratio: 16/9; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  display: block;
}
.map-grid {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px);
}
.map-pin-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.map-pin {
  width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gold-500); box-shadow: 0 4px 12px rgba(215,181,97,.5);
  animation: pin-pulse 2s ease-in-out infinite;
}
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(215,181,97,.5), 0 0 0 0 rgba(215,181,97,.3); }
  50% { box-shadow: 0 4px 12px rgba(215,181,97,.5), 0 0 0 12px rgba(215,181,97,0); }
}
.map-label-chip {
  background: rgba(11,31,58,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  color: var(--white); letter-spacing: .06em;
}
.map-open-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  background: rgba(11,31,58,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); padding: 8px 14px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .64rem;
  color: var(--teal-500); text-transform: uppercase; letter-spacing: .12em;
  transition: color var(--dur-2) var(--ease);
}
.map-open-btn:hover { color: var(--gold-500); }

.contact-cta-col { position: sticky; top: 96px; }
.contact-cta-card {
  background: linear-gradient(160deg, rgba(30,63,102,.7) 0%, rgba(11,31,58,.9) 100%);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 48px 44px 44px; text-align: center;
  box-shadow:
    0 40px 80px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 1px 0 rgba(255,255,255,.15) inset;
  position: relative; overflow: hidden;
}
.contact-cta-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,181,97,.5) 40%, rgba(43,169,190,.4) 60%, transparent);
}
.contact-cta-card .eyebrow { display: block; margin-bottom: 14px; }
.contact-cta-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--white); line-height: 1.2; margin-bottom: 14px;
}
.contact-cta-card > p { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: 24px; }
.cta-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; text-align: left; }
.cta-check-item { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.8); }
.contact-cta-card .btn-xl { width: 100%; justify-content: center; }
.contact-note { margin-top: 18px; font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.5; }
.contact-note a { color: var(--teal-500); transition: color var(--dur-2) var(--ease); }
.contact-note a:hover { color: var(--gold-500); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #060F1E; padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-top: 14px; max-width: 28ch; }
.footer-logo-img { height: 260px; width: auto; object-fit: contain; }
.footer-afil { display: flex; gap: 16px; margin-top: 20px; }
.footer-afil span {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35);
  transition: color var(--dur-2) var(--ease);
}
.footer-afil span:hover { color: rgba(255,255,255,.65); }
.footer-col h6 { font-family: var(--font-display); font-weight: 600; font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--dur-2) var(--ease); }
.footer-col ul li a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .72rem; color: rgba(255,255,255,.35); font-family: var(--font-display); letter-spacing: .06em; }
.footer-cta-mini {
  font-family: var(--font-display); font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold-500);
  transition: color var(--dur-2) var(--ease);
}
.footer-cta-mini:hover { color: var(--gold-600); }

/* ============================================================
   WHATSAPP FLOAT — joinchat style
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; align-items: center; gap: 0;
  cursor: pointer;
  animation: wa-bounce-in .8s var(--ease-spring) 2s both;
}
.wa-icon {
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) var(--ease);
  position: relative;
}
.wa-float:hover .wa-icon { transform: scale(1.1); box-shadow: 0 14px 40px rgba(37,211,102,.55); }
@keyframes wa-bounce-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: wa-pulse 2.5s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--navy-900); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  white-space: nowrap; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  transform: translateY(-50%) translateX(8px);
}
.wa-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-right: none; border-left-color: var(--navy-900);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   DIVIDER
   ============================================================ */
.div-stripe { position: relative; height: 2px; overflow: visible; }
.div-stripe::after {
  content: ''; display: block; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(215,181,97,.35) 30%, rgba(43,169,190,.25) 70%, transparent 100%);
  animation: stripe-move 5s ease-in-out infinite; background-size: 200% 100%;
}

/* ============================================================
   UTILS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left { opacity: 0; transform: translateX(-56px); }
.reveal-left.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(56px); }
.reveal-right.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.stagger > * { opacity: 0; transform: translateY(36px); }

/* ============================================================
   FINTECH NUMBERS — counting state
   ============================================================ */
.result-stat.counting .result-num {
  color: var(--white);
  text-shadow: 0 0 40px rgba(215,181,97,.3);
}
.result-stat {
  transition: transform var(--dur-3) var(--ease), background var(--dur-3) var(--ease);
}
.result-stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.03);
  border-radius: var(--r-lg);
}

/* ============================================================
   VISION QUOTE — kept for backwards compat
   ============================================================ */
.vision-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.22rem); color: var(--navy-700);
  border-left: 2px solid var(--gold-500); padding: 14px 20px;
  margin-top: 30px; line-height: 1.72;
  background: linear-gradient(90deg, rgba(215,181,97,.05) 0%, transparent 80%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ============================================================
   HERO VISUAL — doctor chip glass upgrade
   ============================================================ */
.doctor-chip.glass-premium {
  background: linear-gradient(135deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.65) 100%) !important;
}

/* ============================================================
   SECTION — algología visual override for render slot
   ============================================================ */

/* ============================================================
   MEDICO PHOTO WRAP — render slot compat
   ============================================================ */
.medico-photo-wrap.render-slot {
  overflow: visible;
}
.medico-photo-wrap.render-slot .render-inner {
  height: 100%;
  border-radius: 0;
}
.medico-photo-wrap.render-slot .render-placeholder-content {
  border-radius: 0;
  border: none;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(58,111,168,.28), transparent 55%),
              linear-gradient(180deg, rgba(30,63,102,.5) 0%, rgba(11,31,58,.9) 100%);
}

/* ============================================================
   HERO SECTION — subtle animated gradient
   ============================================================ */
.hero-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(43,169,190,.16), transparent 55%),
    radial-gradient(700px 500px at -5% 50%, rgba(215,181,97,.09), transparent 55%);
  animation: hero-bg-drift 12s ease-in-out infinite alternate;
}
@keyframes hero-bg-drift {
  0%   { opacity: .8; transform: scale(1) translate(0, 0); }
  100% { opacity: 1; transform: scale(1.05) translate(1%, -1%); }
}

/* ============================================================
   PAIN CARD h4 — all-caps to mixed weight
   ============================================================ */
.pain-card h4 {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--white); text-transform: none; letter-spacing: 0; line-height: 1.3;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-section::before { animation: none; }
  .shimmer-text { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-visual-col { display: none; }
  .hero-text { max-width: 100%; }
  /* Vision sticky → stack on tablet */
  .vision-sticky-wrap { grid-template-columns: 1fr; }
  .vision-cinema-col {
    position: relative; top: auto;
    height: 60vw; min-height: 320px; max-height: 520px;
  }
  .vision-content-col { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-flip-grid { grid-template-columns: repeat(2, 1fr); }
  .medicos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-cta-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --text-hero: clamp(3rem, 13vw, 5rem); }
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .vision-sticky-wrap { grid-template-columns: 1fr; }
  .vision-cinema-col {
    position: relative; top: auto;
    height: 56vw; min-height: 280px; max-height: 420px;
  }
  .vision-content-col { padding: 2.5rem 1.25rem; }
  .vision-panel { min-height: auto; padding: 2.5rem 0; }
  .vp-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .vp-body { font-size: 1rem; }
  .vp-num-bg { font-size: clamp(5rem, 18vw, 9rem); right: -2px; }
  .vision-bottom { align-items: flex-start; }
  .pain-grid { grid-template-columns: 1fr; }
  .tx-flip-grid { grid-template-columns: 1fr; }
  .medicos-grid { grid-template-columns: 1fr !important; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-cta-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tx-flip-card { height: 350px; }
  .vision-cinema-col { height: 72vw; min-height: 260px; }
}

/* ============================================================
   CINEMATIC PRELOADER — curtains open with logo center
   ============================================================ */
html.is-preloading, html.is-preloading body { overflow: hidden !important; height: 100vh; }
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.preloader.is-done { display: none; }
.preloader-curtain {
  position: absolute; top: 0; bottom: 0; width: 51%;
  z-index: 1;
  transform: translateX(0);
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
/* Gradientes off-axis: focos lejos del eje central para que la unión sea invisible */
.preloader-curtain--left {
  left: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 30%, rgba(43,169,190,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 10% 75%, rgba(215,181,97,.10) 0%, transparent 55%),
    linear-gradient(168deg, #0D2845 0%, var(--navy-900) 50%, #040D18 100%);
}
.preloader-curtain--right {
  right: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 30%, rgba(43,169,190,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 75%, rgba(215,181,97,.10) 0%, transparent 55%),
    linear-gradient(168deg, #0D2845 0%, var(--navy-900) 50%, #040D18 100%);
}
.preloader.is-opening .preloader-curtain--left  { transform: translateX(-102%); }
.preloader.is-opening .preloader-curtain--right { transform: translateX(102%); }
/* Línea dorada del cortinaje eliminada — el logo respira sin interferencias */

.preloader-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.preloader.is-loaded  .preloader-center { opacity: 1; }
.preloader.is-opening .preloader-center { opacity: 0; transition: opacity .45s ease; }

.preloader-logo-wrap {
  width: clamp(440px, 50vw, 680px);
  filter: drop-shadow(0 12px 36px rgba(215,181,97,.4));
  transform: scale(.92);
  animation: preloader-logo-breathe 2.6s ease-in-out infinite;
}
.preloader-logo { width: 100%; height: auto; display: block; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; shape-rendering: geometricPrecision; }
.nav-logo-img, .footer-logo-img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; shape-rendering: geometricPrecision; }
@keyframes preloader-logo-breathe {
  0%, 100% { transform: scale(.92); filter: drop-shadow(0 8px 24px rgba(215,181,97,.32)); }
  50%      { transform: scale(1);   filter: drop-shadow(0 14px 44px rgba(215,181,97,.5)); }
}

.preloader-logo-fallback {
  flex-direction: column; align-items: center; gap: 8px;
  color: var(--white);
}
.preloader-glyph {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  color: var(--gold-500); letter-spacing: -.04em;
}
.preloader-glyph span { color: var(--teal-500); }
.preloader-wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--white);
  display: flex; flex-direction: column; gap: 2px;
}
.preloader-wordmark span {
  font-size: .65rem; color: var(--gold-500);
  text-transform: uppercase; letter-spacing: .22em;
}

.preloader-tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .42em;
  color: rgba(215,181,97,.75);
}
.preloader-loader-bar {
  width: 120px; height: 1px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  margin-top: 4px;
}
.preloader-loader-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  animation: preloader-shimmer 1.4s ease-in-out infinite;
}
@keyframes preloader-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   HERO — Accent line / award-winning entry tweaks
   ============================================================ */
.hero-eyebrow {
  display: inline-block;
  max-width: 38ch;
  line-height: 1.5;
  transform: translateY(20px);
}
.hero-accent-line {
  display: block; width: 0; height: 1px; margin-top: 22px;
  background: linear-gradient(90deg, var(--gold-500) 0%, rgba(215,181,97,.4) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(215,181,97,.4);
  opacity: 0;
}

/* ============================================================
   ALGOLOGÍA — Award-tier cinematic stage
                Left  · sticky header + numbered feature stage (5 features)
                Right · full-bleed parallax video (sized like filosofía)
   ============================================================ */
.section-algologia {
  position: relative;
  background: var(--navy-900);
  /* overflow must NOT be hidden — both sticky children need free scroll context */
}

.algo-sticky-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  position: relative;
}

/* ── LEFT COLUMN ────────────────────────────────────────────
   Tall scroll-driver column. Inside it a sticky stage that pins
   100vh while the reveals cross-fade in place (intro + 5 features). */
.algo-content-col {
  position: relative;
  min-height: 480vh;          /* 6 reveals (intro + 5 features) × 80vh — snappier pacing */
  background: var(--navy-900);
}
.algo-content-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;   /* header · reveal stage · CTA persistente */
  gap: clamp(28px, 3.5vw, 48px);
  padding: clamp(4.5rem, 7vw, 7.5rem) clamp(2.5rem, 5vw, 5rem) clamp(4rem, 6vw, 6rem);
  max-width: 700px;
  width: 100%;
  justify-self: end;
}

/* Header block — eyebrow + title + subtitle + progress */
.algo-header-block {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  will-change: opacity, transform;
}
.algo-eyebrow {
  display: inline-block;
  width: fit-content;
}
.algo-title {
  margin: 0;
}
.algo-subtitle {
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  letter-spacing: .005em;
  margin: 0;
  max-width: 52ch;
}
.algo-subtitle em {
  color: var(--gold-500);
  font-style: normal;
  font-weight: 500;
}

/* ── Feature stage — 5 features stacked, one visible at a time ── */
.algo-feature-stage {
  position: relative;
  min-height: clamp(200px, 36vh, 320px);
}
.algo-feature {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}
.algo-feature.is-active {
  pointer-events: auto;
}

/* Intro reveal — el antiguo subtítulo como primer reveal · mismo diseño, a todo el ancho */
.algo-feature--intro {
  grid-template-columns: 1fr;
  align-content: center;
}
.algo-intro-copy {
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  letter-spacing: .004em;
  max-width: 46ch;
}
.algo-intro-copy em {
  color: var(--gold-500);
  font-style: normal;
  font-weight: 500;
}

.algo-feature-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.8rem, 7.2vw, 6.4rem);
  line-height: .85;
  letter-spacing: -.06em;
  color: rgba(215,181,97,.35);
  display: block;
  will-change: opacity, transform;
}

.algo-feature-body {
  display: flex;
  flex-direction: column;
  gap: clamp(11px, 1.3vw, 17px);
  padding-top: clamp(8px, 1.1vw, 13px);
}
.algo-feature-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--teal-500);
  display: inline-block;
  width: fit-content;
}
.algo-feature-tag--gold { color: var(--gold-600); }

.algo-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.75vw, 2.4rem);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 0;
}

.algo-feature-copy {
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 50ch;
  letter-spacing: .003em;
  margin: 0;
}

.algo-feature-line {
  height: 2px;
  width: 66px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--gold-500) 100%);
  transform-origin: left center;
  margin-top: clamp(6px, .8vw, 10px);
}
.algo-feature-line--gold {
  background: linear-gradient(90deg, var(--gold-600) 0%, var(--gold-500) 100%);
}

/* ── CTA persistente — anclado al fondo de la columna izquierda ── */
.algo-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ── RIGHT COLUMN — full-bleed parallax video (mirrors filosofía) ── */
.algo-cinema-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.algo-cinema-panel {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}
.algo-cinema-bg {
  position: absolute;
  inset: -12%;
  will-change: transform;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .algo-sticky-wrap { grid-template-columns: 1fr; }
  .algo-cinema-col {
    position: relative;
    top: auto;
    height: 72vw;
    min-height: 320px;
    order: -1;
  }
  .algo-cinema-bg { inset: 0; }
  .algo-content-col {
    min-height: auto;
  }
  .algo-content-stage {
    position: static;
    height: auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    max-width: 100%;
    justify-self: stretch;
  }
  .algo-feature-stage {
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 5.5vw, 56px);
  }
  .algo-feature {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .algo-feature-num {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
  }
}
@media (max-width: 640px) {
  .algo-cinema-col { height: 90vw; min-height: 260px; }
  .algo-content-stage { padding: 2.5rem 1.25rem; }
}

/* ============================================================
   TESTIMONIALES — Auto-loop horizontal marquee (Emil Kowalski + Taste)
                  Continuous, seamless loop · pause on hover · no CTA
   ============================================================ */
.section-testimonials {
  background: linear-gradient(160deg, #060F1E 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.testi-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% 30%, rgba(43,169,190,.10), transparent 55%),
    radial-gradient(700px 500px at 88% 70%, rgba(215,181,97,.08), transparent 55%);
}
.testi-header {
  text-align: left; max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative; z-index: 2;
}
.testi-header .sec-sub {
  margin-top: 18px; max-width: 52ch; text-align: left; margin-left: 0;
}

/* Marquee viewport — overflow hidden, GSAP transforms the track */
.testi-scroller {
  position: relative; z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  /* edge fade-mask for cinematic feel */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testi-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.testi-card {
  flex: 0 0 clamp(260px, 26vw, 340px);
  max-height: 700px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.testi-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,169,190,.08) 0%, transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,181,97,.32);
  box-shadow:
    0 24px 56px rgba(0,0,0,.45),
    0 0 0 1px rgba(215,181,97,.12) inset;
}
.testi-card:hover::before { opacity: 1; }

.testi-card-top {
  display: flex; justify-content: space-between; align-items: center;
}
.testi-quote-icon {
  color: var(--gold-500);
  opacity: .5;
}
.testi-quote-icon svg { width: 22px; height: 22px; }
.testi-rating {
  display: flex; gap: 2px;
  font-size: .74rem;
  letter-spacing: .04em;
}
.testi-rating .star {
  position: relative;
  display: inline-block;
  line-height: 1;
  color: var(--gold-500);
}
.testi-rating .star.is-empty {
  color: rgba(215,181,97,.22);
}
.testi-rating .star.is-half {
  color: rgba(215,181,97,.22);
}
.testi-rating .star.is-half::before {
  content: '★';
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: var(--gold-500);
}

.testi-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: .95rem; line-height: 1.55;
  color: rgba(255,255,255,.86);
  flex-grow: 1;
  letter-spacing: .005em;
}

.testi-meta {
  display: flex; align-items: center; gap: 11px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.testi-meta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testi-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: .85rem; color: var(--white);
  letter-spacing: .005em;
}
.testi-age {
  font-weight: 400; color: rgba(255,255,255,.5); font-size: .76rem;
}
.testi-condition {
  font-family: var(--font-display); font-weight: 500;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal-500);
}

.testi-result {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 14px;
  background: rgba(215,181,97,.08);
  border: 1px solid rgba(215,181,97,.18);
  border-radius: 12px;
}
.testi-result-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; color: var(--gold-500); letter-spacing: -.03em; line-height: 1;
}
.testi-result-unit { font-size: .55em; margin-left: 1px; }
.testi-result-lab {
  font-size: .66rem; color: rgba(255,255,255,.72);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .testi-card { flex-basis: clamp(240px, 72vw, 300px); padding: 20px 20px 18px; max-height: 620px; }
  .testi-quote { font-size: .9rem; }
}

/* ============================================================
   ACCESSIBILITY · TEXT SAFETY · INTERACTION FEEDBACK
   Emil Kowalski lens  → press feedback + keyboard-only focus ring
   Taste / Impeccable  → no word ever clips or overflows its container
   ============================================================ */

/* Long clinical terms (Viscosuplementación, Neuromodulación, intervencionista)
   must wrap inside their box, never spill out or force a horizontal scroll.
   Hyphenation only triggers when a word genuinely can't fit; lang="es-MX"
   supplies the break points. */
h1, h2, h3, h4, h5, h6, p, li, a, span, blockquote, figcaption {
  overflow-wrap: break-word;
}
.tx-front-body h4, .tx-flip-back h4, .tx-front-body p, .tx-flip-back > p,
.testi-quote, .medico-bio, .vp-body, .algo-feature-copy, .dolor-pain-copy {
  -webkit-hyphens: auto;
          hyphens: auto;
}

/* Press feedback for the non-magnetic secondary buttons — magnetic CTAs get
   theirs from GSAP. Nothing pressable should feel dead. */
.btn-ghost:active, .btn-outline:active, .btn-navy:active, .btn-sm:active {
  transform: scale(0.97);
}

/* Visible focus for keyboard users only (no ring flash on mouse/tap). The
   outline follows each element's own border-radius in modern browsers. */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
