:root {
  /* Color Palette faithful to Aliviaterapia PDF + Apple High-Craft Polish */
  --indigo-950: #180C3D;
  --indigo-900: #231257;
  --indigo-800: #291765;
  --indigo-700: #392184;
  --blue-600: #2557D6;
  --blue-500: #3B6EF0;
  --violet-500: #635BFF;
  --surface-lavender: #F3F1FA;
  --surface-lavender-deep: #EAE6F7;
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text-primary: #1D1046;
  --text-secondary: #514B6B;
  --text-muted: #787196;
  --border-subtle: rgba(41, 23, 101, 0.08);
  --border-strong: rgba(41, 23, 101, 0.16);
  --success-green: #10B981;

  /* Apple-grade Easing Curves */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(29, 16, 70, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(29, 16, 70, 0.08), 0 2px 6px -1px rgba(29, 16, 70, 0.04);
  --shadow-lg: 0 24px 56px -12px rgba(29, 16, 70, 0.14), 0 4px 12px -2px rgba(29, 16, 70, 0.06);
  --shadow-glow: 0 20px 45px -10px rgba(37, 87, 214, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--surface-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scroll Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo-800), var(--blue-600), #7C3AED);
  transition: width 0.08s linear;
}

/* Ambient Background Orbs */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
  animation: orbFloat 18s var(--ease-apple) infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.22), transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(37, 87, 214, 0.16), transparent 70%);
  top: 38%;
  left: -140px;
  animation-delay: -6s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 23, 101, 0.14), transparent 70%);
  bottom: 8%;
  right: 5%;
  animation-delay: -11s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Apple-Style Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(41, 23, 101, 0.06);
  transition: all 0.35s var(--ease-apple);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px -10px rgba(29, 16, 70, 0.07);
}

.nav-container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo with Spine Vertebrae Icon */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--indigo-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.spine-logo-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px;
}

.vertebra {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--indigo-800);
  transition: transform 0.4s var(--ease-spring), background-color 0.3s ease;
}

.vertebra.v-1 { width: 10px; background: var(--blue-600); }
.vertebra.v-2 { width: 16px; }
.vertebra.v-3 { width: 14px; }
.vertebra.v-4 { width: 8px; background: var(--blue-600); }

.brand-logo:hover .v-1 { transform: translateX(-2px) scaleX(1.15); }
.brand-logo:hover .v-2 { transform: translateX(2px) scaleX(1.1); }
.brand-logo:hover .v-3 { transform: translateX(-2px) scaleX(1.1); }
.brand-logo:hover .v-4 { transform: translateX(2px) scaleX(1.15); }

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 241, 250, 0.65);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(41, 23, 101, 0.06);
}

.nav-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--indigo-800);
}

.nav-pill-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background: var(--surface-white);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(29, 16, 70, 0.08);
  transition: all 0.38s var(--ease-apple);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clinic-panel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(243, 241, 250, 0.7);
  color: var(--indigo-800);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.btn-clinic-panel:hover {
  background: var(--surface-lavender-deep);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 0.96rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 8px 22px -6px rgba(41, 23, 101, 0.45);
}

.btn-primary:hover {
  background: var(--indigo-700);
  box-shadow: 0 14px 28px -6px rgba(41, 23, 101, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.65);
  color: var(--indigo-800);
  border-color: rgba(41, 23, 101, 0.32);
}

.btn-outline:hover {
  background: var(--surface-white);
  border-color: var(--indigo-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: #FFFFFF;
  color: var(--indigo-800);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.25);
}

.btn-white:hover {
  background: #F8F7FF;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px -6px rgba(0, 0, 0, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface-lavender);
  color: var(--indigo-800);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-apple);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  cursor: pointer;
  padding: 0 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--indigo-800);
  border-radius: 2px;
  transition: 0.3s ease;
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(41, 23, 101, 0.1);
  box-shadow: 0 16px 36px rgba(29, 16, 70, 0.14);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: drawerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer-top {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(41, 23, 101, 0.08);
}

.mobile-drawer-eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.mobile-drawer-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(243, 241, 250, 0.85);
  color: var(--indigo-800);
}

.mobile-link-icon {
  font-size: 1.1rem;
}

.mobile-drawer-cta-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(41, 23, 101, 0.08);
  border-bottom: 1px solid rgba(41, 23, 101, 0.08);
}

.mobile-drawer-admin-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.mobile-drawer-admin-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mobile-admin-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-clinic-panel-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(243, 241, 250, 0.85);
  color: var(--indigo-800);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* HERO SECTION (Lavender background per PDF Page 1) */
.hero-section {
  background: linear-gradient(180deg, var(--surface-lavender) 0%, #EFEBF9 100%);
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 0 rgba(37, 87, 214, 0.6);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 87, 214, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(37, 87, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 87, 214, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--indigo-800);
  margin-bottom: 22px;
}

.title-line {
  display: block;
}

.highlight-gradient {
  background: linear-gradient(125deg, var(--indigo-800) 0%, var(--blue-600) 60%, #635BFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(41, 23, 101, 0.1);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--indigo-800);
}

.trust-item span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(41, 23, 101, 0.12);
}

/* Apple-Style 3D Interactive Visual Stage */
.hero-visual-wrapper {
  perspective: 1200px;
  width: 100%;
}

.hero-card-3d {
  position: relative;
  background: var(--surface-white);
  border-radius: 28px;
  min-height: 520px;
  border: 1px solid rgba(41, 23, 101, 0.1);
  box-shadow: 0 20px 48px -12px rgba(29, 16, 70, 0.16);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.35s var(--ease-apple);
  display: flex;
  flex-direction: column;
}

.hero-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(500px circle at 50% 50%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-card-3d:hover .hero-card-glare {
  opacity: 1;
}

/* Apple-style Top View Switcher Pill */
.visual-mode-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(24, 12, 61, 0.12);
}

.visual-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  white-space: nowrap;
}

.visual-mode-btn.active {
  background: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(41, 23, 101, 0.25);
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.visual-pane {
  display: none;
  width: 100%;
  min-height: 520px;
}

.visual-pane.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ========================================================
   MODE 1: CLINICAL PHOTO (Clean framing, zero overlapping)
   ======================================================== */
.clinical-photo-container {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EAE6F7;
}

.clinical-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-apple);
}

.hero-card-3d:hover .clinical-hero-img {
  transform: scale(1.05);
}

/* Interactive Hotspots Over Photo */
.spine-hotspot {
  position: absolute;
  z-index: 12;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-cervical { top: 27%; left: 51%; }
.hs-dorsal   { top: 43%; left: 49%; }
.hs-lumbar   { top: 59%; left: 51%; }

.hs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--blue-600);
  box-shadow: 0 2px 10px rgba(37, 87, 214, 0.6);
  transition: transform 0.25s var(--ease-spring);
}

.hs-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: hsPulse 2.2s infinite;
}

.hs-tooltip {
  position: absolute;
  left: 36px;
  background: rgba(24, 12, 61, 0.92);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s var(--ease-apple);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.spine-hotspot:hover .hs-tooltip,
.spine-hotspot.active .hs-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.spine-hotspot.active .hs-dot {
  background: var(--blue-600);
  border-color: #FFFFFF;
  transform: scale(1.3);
}

/* Clean Docked Status at Bottom of Photo (NO OVERLAPPING!) */
.photo-dock-status {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(24, 12, 61, 0.16);
}

.dock-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 87, 214, 0.12);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dock-status-text {
  display: flex;
  flex-direction: column;
}

.dock-status-text strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--indigo-800);
  line-height: 1.25;
}

.dock-status-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========================================================
   MODE 2: BIOMECHANICAL STUDIO (Pro Apple Anatomical Explorer)
   ======================================================== */
.biomechanical-studio {
  background: radial-gradient(circle at 50% 25%, #241457 0%, #120830 100%);
  min-height: 520px;
  padding: 72px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #FFFFFF;
}

/* Zone Selector Tabs */
.spine-zone-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zone-tab-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  text-align: center;
  white-space: nowrap;
}

.zone-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.zone-tab-btn.active {
  color: #FFFFFF;
  background: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37, 87, 214, 0.5);
}

/* Biomechanical Body (Graphic + Inspector) */
.biomechanical-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.spine-interactive-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spine-model-svg {
  width: 105px;
  height: 320px;
  filter: drop-shadow(0 0 16px rgba(37, 87, 214, 0.25));
}

.spine-svg-segment {
  cursor: pointer;
  transition: all 0.3s var(--ease-apple);
}

.vert-bone {
  fill: rgba(255, 255, 255, 0.22);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
  transition: all 0.3s ease;
}

.spine-svg-segment:hover .vert-bone {
  fill: rgba(99, 91, 255, 0.6);
  stroke: #818CF8;
  filter: drop-shadow(0 0 8px rgba(99, 91, 255, 0.7));
}

.spine-svg-segment.active .vert-bone {
  fill: #2557D6;
  stroke: #93C5FD;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 12px rgba(37, 87, 214, 0.95));
}

.pulse-scan-ring {
  stroke: #60A5FA;
  stroke-width: 1.5;
  fill: none;
  opacity: 0;
  transform-origin: center;
}

.spine-svg-segment.active .pulse-scan-ring {
  opacity: 0.85;
  animation: scanRingPulse 2s infinite;
}

@keyframes scanRingPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.interactive-hint {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

/* Inspector Pro Card (Zero overlapping text) */
.biomechanical-inspector {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.inspector-header {
  display: flex;
  flex-direction: column;
}

.inspector-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 4px;
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.inspector-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 12px;
}

.m-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.m-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

.inspector-summary {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin: 0;
}

.inspector-footer .btn {
  box-shadow: 0 8px 20px rgba(37, 87, 214, 0.45);
  font-size: 0.84rem;
  padding: 11px 16px;
}

/* ASESORAMIENTO EN LÍNEA BANNER (Deep Indigo Card per PDF Page 1) */
.online-advisory-section {
  padding: 56px 0 36px;
}

.advisory-banner {
  position: relative;
  background: linear-gradient(135deg, #271563 0%, #1D0E4B 60%, #2D1B73 100%);
  border-radius: 26px;
  padding: 44px 48px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(39, 21, 99, 0.35);
}

.advisory-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 110, 240, 0.35), transparent 70%);
  right: -80px;
  top: -120px;
  pointer-events: none;
}

.advisory-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A5B4FC;
  margin-bottom: 10px;
}

.advisory-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.advisory-description {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 680px;
}

.advisory-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.advisory-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

.advisory-visual {
  display: flex;
  justify-content: flex-end;
}

.call-preview-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 310px;
}

.call-avatar-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.call-meta {
  display: flex;
  flex-direction: column;
}

.call-meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.call-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  color: var(--indigo-800);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
}

/* NAV COUNT BADGE */
.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 4px;
}

/* ========================================================
   BIBLIOTECA CLÍNICA DE PADECIMIENTOS Y GUÍAS DE SALUD
   ======================================================== */
.conditions-section {
  padding: 60px 0 90px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF9FD 100%);
}

.padecimientos-search-station {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px -8px rgba(29, 16, 70, 0.06);
  margin-bottom: 36px;
}

.search-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-lens-icon {
  position: absolute;
  left: 18px;
  color: var(--blue-600);
  pointer-events: none;
}

.padecimientos-search-input {
  width: 100%;
  padding: 15px 46px 15px 50px;
  border-radius: 999px;
  border: 2px solid rgba(41, 23, 101, 0.12);
  background: var(--surface-lavender);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-primary);
  transition: all 0.25s var(--ease-apple);
}

.padecimientos-search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 87, 214, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(41, 23, 101, 0.12);
  color: var(--indigo-800);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-chips-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.chip-tag-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(243, 241, 250, 0.7);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo-800);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.chip-tag-btn:hover {
  background: var(--blue-600);
  color: #FFFFFF;
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

.symptom-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-lavender);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--indigo-800);
  color: #FFFFFF;
  border-color: var(--indigo-800);
}

.padecimientos-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 8px;
}

/* Conditions Dynamic Grid (Apple Health Cards) */
.conditions-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.condition-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  background: var(--surface-white);
  border-radius: 22px;
  padding: 26px 24px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.3s ease;
}

.condition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 87, 214, 0.3);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.condition-zone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.08);
  color: var(--blue-600);
}

.reading-time-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-common-question {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--indigo-800);
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-medical-name {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-lavender);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.card-symptoms-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.card-keywords-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.card-kw-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(41, 23, 101, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-bottom-action {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.condition-zone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-lavender);
  color: var(--indigo-700);
  white-space: nowrap;
}

.condition-symptoms {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
}

.condition-symptoms strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--indigo-800);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(41, 23, 101, 0.35);
  cursor: pointer;
  transition: color 0.2s ease, gap 0.25s var(--ease-apple);
}

.btn-text-arrow:hover {
  color: var(--blue-600);
  text-decoration-color: var(--blue-600);
  gap: 10px;
}

/* ========================================================
   CÓMO TRABAJAMOS SECTION (3D APPLE LIQUID GLASS + TIMELINE)
   ======================================================== */
.how-we-work-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F2EFFA 0%, #EAE5F7 50%, #F5F3FB 100%);
  padding: 96px 0;
}

.how-ambient-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glass-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  animation: floatSphere 14s ease-in-out infinite alternate;
}

.glass-sphere.sphere-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 87, 214, 0.28), rgba(124, 58, 237, 0.08));
}

.glass-sphere.sphere-2 {
  width: 380px;
  height: 380px;
  bottom: -60px;
  right: -80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), rgba(37, 87, 214, 0.1));
  animation-delay: -6s;
}

@keyframes floatSphere {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, 24px, 0) scale(1.08); }
}

.how-we-work-section .container {
  position: relative;
  z-index: 1;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  perspective: 1200px;
}

.pillar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border-radius: 26px;
  padding: 32px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 20px 45px -15px rgba(29, 16, 70, 0.1),
    0 4px 12px rgba(29, 16, 70, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.3s ease;
}

.pillar-card.featured-pillar {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 240, 255, 0.84) 100%);
  border-color: rgba(37, 87, 214, 0.32);
  box-shadow:
    0 24px 52px -14px rgba(37, 87, 214, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.pillar-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 30px 60px -15px rgba(29, 16, 70, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  border-color: rgba(37, 87, 214, 0.45);
}

.pillar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.pillar-icon-3d {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--indigo-800) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 24px -6px rgba(37, 87, 214, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transform: translateZ(18px);
}

.pillar-icon-3d.icon-emerald {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.4);
}

.pillar-icon-3d.icon-indigo {
  background: linear-gradient(135deg, #4F46E5 0%, var(--indigo-800) 100%);
  box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.4);
}

.pillar-step-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(41, 23, 101, 0.07);
  color: var(--indigo-800);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--indigo-800);
  line-height: 1.3;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.pillar-Checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(243, 241, 250, 0.75);
  border: 1px solid rgba(41, 23, 101, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo-800);
}

.pillar-price-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-price-box {
  background: rgba(37, 87, 214, 0.07);
  border: 1px solid rgba(37, 87, 214, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.mini-price-box span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-price-box strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.price-inline {
  color: var(--indigo-800);
  background: rgba(37, 87, 214, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

.pillar-micro-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-600);
  padding-top: 14px;
  border-top: 1px solid rgba(41, 23, 101, 0.09);
}

.pillar-micro-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Interactive 50-Min First Visit Explorer inside Como Trabajamos */
.first-visit-interactive-shell {
  margin-top: 38px;
  border-radius: 28px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 54px -16px rgba(29, 16, 70, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.fv-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.fv-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 6px;
}

.fv-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.fv-timeline-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv-step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(41, 23, 101, 0.08);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.fv-step-btn:hover {
  background: #FFFFFF;
  border-color: rgba(37, 87, 214, 0.35);
  transform: translateX(4px);
}

.fv-step-btn.active {
  background: linear-gradient(135deg, var(--indigo-800) 0%, #1F114D 100%);
  border-color: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -8px rgba(41, 23, 101, 0.4);
  transform: translateX(6px);
}

.fv-time-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.12);
  color: var(--blue-600);
  white-space: nowrap;
}

.fv-step-btn.active .fv-time-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.fv-step-txt {
  display: flex;
  flex-direction: column;
}

.fv-step-txt strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.fv-step-btn.active .fv-step-txt strong {
  color: #FFFFFF;
}

.fv-step-txt span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.fv-step-btn.active .fv-step-txt span {
  color: rgba(255, 255, 255, 0.8);
}

.fv-3d-display-card {
  background: linear-gradient(145deg, #1E1147 0%, #291765 55%, #1A368F 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 32px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 48px -12px rgba(25, 12, 65, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.fv-card-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #93C5FD;
  margin-bottom: 14px;
}

.fv-card-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.fv-card-desc {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.68;
  margin-bottom: 22px;
}

.fv-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.fv-metric-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.fv-metric-chip span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.fv-metric-chip strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #FFFFFF;
}

/* AGENDA Y PAGA EN LÍNEA SECTION (PDF Page 2 + Interactive Wizard) */
.booking-section {
  padding: 84px 0;
  background: var(--surface-white);
}

.booking-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
}

/* The 4 Step Overview Cards from PDF Page 2 */
.steps-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.step-overview-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 26px 22px;
  cursor: pointer;
  transition: all 0.35s var(--ease-apple);
}

.step-overview-card:hover,
.step-overview-card.active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease-spring);
}

.step-overview-card:hover .step-number-badge,
.step-overview-card.active .step-number-badge {
  transform: scale(1.12);
}

.step-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Live Booking Studio */
.booking-studio-shell {
  background: var(--surface-lavender);
  border-radius: 28px;
  border: 1px solid rgba(41, 23, 101, 0.1);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.booking-studio-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.studio-step-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 22px;
  border: none;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease;
}

.studio-step-tab:last-child {
  border-right: none;
}

.studio-step-tab.active {
  background: var(--surface-white);
  box-shadow: inset 0 -3px 0 var(--blue-600);
}

.tab-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tab-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.tab-selection {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.booking-studio-body {
  padding: 36px;
}

.studio-pane {
  display: none;
  animation: paneFadeIn 0.4s var(--ease-apple);
}

.studio-pane.active {
  display: block;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-pane-header {
  margin-bottom: 24px;
}

.studio-pane-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--indigo-800);
  margin-bottom: 4px;
}

.studio-pane-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.studio-options-grid {
  display: grid;
  gap: 16px;
}

.studio-options-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.selectable-card {
  background: var(--surface-white);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease-apple);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.selectable-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 87, 214, 0.35);
}

.selectable-card.selected {
  border-color: var(--blue-600);
  background: #FFFFFF;
  box-shadow: 0 12px 26px -8px rgba(37, 87, 214, 0.25);
}

.selectable-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.selectable-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--indigo-800);
}

.radio-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.selectable-card.selected .radio-check {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.selectable-card.selected .radio-check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

.selectable-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.selectable-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
}

.specialist-sub-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.specialist-sub-section h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--indigo-800);
}

.specialist-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.specialist-pill {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.specialist-pill.selected {
  border-color: var(--blue-600);
  background: rgba(37, 87, 214, 0.08);
  color: var(--indigo-800);
}

/* Date & Time Picker */
.date-time-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo-800);
  margin-bottom: 10px;
}

.days-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.day-btn {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--indigo-800);
}

.day-btn span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.day-btn.selected {
  background: var(--indigo-800);
  border-color: var(--indigo-800);
}

.day-btn.selected strong,
.day-btn.selected span {
  color: #FFFFFF;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.time-slot-btn {
  padding: 11px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--indigo-800);
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot-btn:hover {
  border-color: var(--blue-600);
}

.time-slot-btn.selected {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #FFFFFF;
}

.studio-pane-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Checkout Step 4 */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.checkout-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 87, 214, 0.15);
}

.payment-method-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-subtle);
}

.payment-methods-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.pay-method-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-white);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.pay-method-option input {
  display: none;
}

.pay-method-option.active {
  border-color: var(--blue-600);
  background: rgba(37, 87, 214, 0.08);
  color: var(--indigo-800);
}

.card-mock-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

.checkout-summary-card {
  background: var(--surface-white);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.summary-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}

.summary-card-header h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--indigo-800);
  margin: 4px 0 16px;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-list li {
  display: flex;
  flex-direction: column;
}

.summary-list span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-list strong,
.summary-list small {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.total-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.summary-guarantee {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--surface-lavender);
  padding: 10px 12px;
  border-radius: 10px;
}

/* Booking Confirmation View */
.booking-success-view {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 20px 0;
}

.success-icon-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirmed-ticket-card {
  background: var(--surface-white);
  border-radius: 20px;
  padding: 24px;
  margin: 22px 0;
  text-align: left;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* TESTIMONIALS SECTION (Soft Lavender per PDF Page 2) */
.testimonials-section {
  background: var(--surface-lavender);
  padding: 76px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface-white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--indigo-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verified-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}

/* BRANCHES SECTION (PDF Pages 2 & 3) */
.branches-section {
  padding: 80px 0;
  background: var(--surface-white);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 12px;
}

.branch-address {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.branch-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* FOOTER (Deep Indigo Bar per PDF Page 3) */
.site-footer {
  background: var(--indigo-800);
  color: #FFFFFF;
  padding: 28px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer-legal-link:hover {
  color: #FFFFFF;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 9, 44, 0.65);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-apple);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 26px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 30px 80px -15px rgba(18, 9, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ========================================================
   MODAL: LECTOR EDITORIAL COMPLETO
   ======================================================== */
.modal-article-backdrop {
  z-index: 10005;
}

.modal-article-backdrop .modal-card {
  max-width: 900px;
  width: 96%;
  height: calc(100vh - 48px);
  max-height: 920px;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  margin: 0 auto;
}

.article-reader-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  overflow: hidden;
}

.bc-link {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.bc-link:hover {
  text-decoration: underline;
}

.bc-sep {
  color: var(--text-muted);
}

.bc-current {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.article-reader-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.font-size-controls {
  display: flex;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-lavender);
}

.btn-tool-icon {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s var(--ease-apple);
  border-radius: 999px;
}

.btn-tool-icon:hover {
  background: var(--surface-lavender-deep);
  color: var(--blue-600);
}

.tool-label {
  display: inline;
}

.modal-article-reader .modal-close-btn {
  position: static;
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

/* Article Body & Font Scaling (Accessible reading style) */
.article-reader-body {
  padding: 36px 48px 48px;
  overflow-y: auto;
  flex: 1;
  font-family: var(--font-sans);
  color: #27233B;
  line-height: 1.8;
  font-size: 1.02rem;
  transition: font-size 0.2s ease;
}

.article-reader-body.font-size-sm { font-size: 0.92rem; }
.article-reader-body.font-size-md { font-size: 1.02rem; }
.article-reader-body.font-size-lg { font-size: 1.14rem; }
.article-reader-body.font-size-xl { font-size: 1.26rem; }

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.article-badge-item {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.article-badge-item.zone {
  background: rgba(37, 87, 214, 0.1);
  color: var(--blue-600);
}

.article-badge-item.cat {
  background: var(--surface-lavender);
  color: var(--indigo-800);
}

.article-badge-item.time {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.article-h1-question {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--indigo-800);
  line-height: 1.24;
  margin-bottom: 8px;
}

.article-medical-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 22px;
}

.article-lead-box {
  background: #F4F1FA;
  border-left: 4.5px solid var(--blue-600);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--indigo-950);
}

/* Table of Contents Box */
.article-toc-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 34px;
  box-shadow: 0 4px 16px rgba(29, 16, 70, 0.04);
}

.article-toc-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo-800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.article-toc-list a {
  color: var(--blue-600);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.article-toc-list a:hover {
  text-decoration: underline;
  color: var(--indigo-800);
}

.article-section-block {
  margin-bottom: 34px;
  scroll-margin-top: 80px;
}

.article-section-block h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo-800);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.symptoms-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.symptoms-bullet-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}

.symptoms-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Comparison Box: University Chiropractor vs Huesero (PDF core topic) */
.vs-box-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}

.vs-card {
  border-radius: 18px;
  padding: 22px;
  border: 1.5px solid;
}

.vs-card.pro {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.35);
}

.vs-card.risk {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.25);
}

.vs-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.vs-badge.pro {
  background: #047857;
  color: #FFFFFF;
}

.vs-badge.risk {
  background: #B91C1C;
  color: #FFFFFF;
}

.vs-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 8px;
}

.vs-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Cards */
.article-faqs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.faq-q-box {
  background: var(--surface-lavender);
  border-radius: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border-subtle);
}

.faq-q-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 8px;
}

.faq-q-box p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Sticky Action Banner inside Article */
.article-cta-action-banner {
  background: linear-gradient(135deg, var(--indigo-800) 0%, #170C3B 100%);
  border-radius: 22px;
  padding: 28px 32px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 36px 0 24px;
  box-shadow: 0 16px 36px -10px rgba(41, 23, 101, 0.4);
}

.cta-banner-text h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-banner-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 440px;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-whatsapp-green {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s var(--ease-apple);
}

.btn-whatsapp-green:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* Article Navigation Pager (Previous / Next Article) */
.article-nav-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  gap: 14px;
  flex-wrap: wrap;
}

.pager-btn {
  display: inline-flex;
  flex-direction: column;
  background: var(--surface-lavender);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-apple);
}

.pager-btn:hover {
  background: var(--surface-white);
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pager-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.pager-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.admin-section-block {
  background: var(--surface-lavender);
  padding: 20px;
  border-radius: 16px;
  margin-top: 18px;
}

.admin-section-block h4 {
  font-family: var(--font-display);
  color: var(--indigo-800);
  margin-bottom: 12px;
}

.admin-footer-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* APPLE-STYLE SCROLL REVEAL ANIMATIONS */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s var(--ease-apple), transform 0.85s var(--ease-apple);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="hero-left"] { transform: translate3d(-28px, 18px, 0); }
[data-reveal="hero-right"] { transform: translate3d(28px, 18px, 0) scale(0.97); }
[data-reveal="fade-up"] { transform: translate3d(0, 32px, 0); }
[data-reveal="scale-up"] { transform: translate3d(0, 28px, 0) scale(0.96); }
[data-reveal="stagger"] { transform: translate3d(0, 26px, 0); }

[data-reveal].revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .advisory-banner,
  .checkout-layout,
  .date-time-layout {
    grid-template-columns: 1fr;
  }

  .conditions-bento-grid,
  .pillars-grid,
  .testimonials-grid,
  .branches-grid,
  .studio-options-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-cards-grid,
  .booking-studio-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }

  .desktop-only-btn {
    display: none !important;
  }

  .nav-container {
    height: 68px;
    padding: 0 16px;
    gap: 12px;
  }

  .btn-header-booking {
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 999px;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 7px;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-header-booking {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 8px;
  }

  .conditions-bento-grid,
  .pillars-grid,
  .testimonials-grid,
  .branches-grid,
  .steps-cards-grid,
  .booking-studio-progress,
  .studio-options-grid.three-cols,
  .form-row-2,
  .form-row-3,
  .time-slots-grid,
  .card-mock-fields {
    grid-template-columns: 1fr;
  }

  .advisory-banner {
    padding: 30px 24px;
  }

  .booking-studio-body {
    padding: 22px 18px;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .trust-divider {
    display: none;
  }

  /* Biomechanical Studio on mobile */
  .biomechanical-studio {
    padding: 68px 14px 16px;
    min-height: auto;
  }

  .spine-zone-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .biomechanical-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spine-interactive-graphic {
    display: none;
  }

  .photo-dock-status {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    gap: 10px;
  }

  .dock-status-text strong {
    font-size: 0.8rem;
  }

  .dock-status-text span {
    font-size: 0.7rem;
  }

  /* Article Reader & Search Station on Mobile */
  .padecimientos-search-station {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .padecimientos-search-input {
    font-size: 0.88rem;
    padding: 13px 36px 13px 44px;
  }

  .quick-chips-row {
    gap: 6px;
  }

  .article-reader-topbar {
    padding: 12px 16px;
  }

  .tool-label {
    display: none;
  }

  .article-reader-body {
    padding: 24px 18px 36px;
    font-size: 0.95rem;
  }

  .article-h1-question {
    font-size: 1.45rem;
  }

  .article-toc-list {
    grid-template-columns: 1fr;
  }

  .vs-box-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-cta-action-banner {
    padding: 22px 18px;
  }

  .cta-banner-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner-buttons .btn,
  .cta-banner-buttons .btn-whatsapp-green {
    width: 100%;
    justify-content: center;
  }

  .article-nav-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-btn {
    width: 100%;
  }
}

/* ========================================================
   ESTILOS DE PÁGINAS SILO INDIVIDUALES (SEO)
   ======================================================== */
.silo-page {
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.8;
  font-family: var(--font-sans);
}

.silo-container {
  max-width: 880px;
  margin: 36px auto 80px;
  padding: 0 24px;
}

.silo-page .article-h1-question {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
}

.silo-page .article-section-block {
  margin-top: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.silo-page .article-section-block:last-of-type {
  border-bottom: none;
}

@media (max-width: 640px) {
  .silo-container {
    padding: 0 16px;
    margin-top: 20px;
  }
  .silo-page .article-h1-question {
    font-size: 1.5rem;
  }
}

/* ========================================================
   APPLE LIQUID GLASS & 3D DEPTH SYSTEM (GLOBAL UPGRADE)
   ======================================================== */
.liquid-glass-header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(200%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(28px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 10px 30px -10px rgba(29, 16, 70, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.liquid-pill {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 14px rgba(37, 87, 214, 0.08), inset 0 1px 1px #FFFFFF;
}

.btn-editorial-Trigger {
  background: linear-gradient(135deg, rgba(37, 87, 214, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%) !important;
  border-color: rgba(37, 87, 214, 0.28) !important;
  color: var(--indigo-800) !important;
}

.btn-editorial-Trigger:hover {
  background: var(--indigo-800) !important;
  color: #FFFFFF !important;
}

/* Fix & Upgrade Branch Cards in 3D Liquid Glass */
.branch-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 24px;
  padding: 28px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px -14px rgba(29, 16, 70, 0.1),
    0 4px 12px rgba(29, 16, 70, 0.04),
    inset 0 1px 1px #FFFFFF;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 26px 52px -14px rgba(37, 87, 214, 0.18), inset 0 1px 2px #FFFFFF;
  border-color: rgba(37, 87, 214, 0.38);
}

.branch-hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ========================================================
   BIBLIOTECA: SEGMENTED CONTROL, DENSITY & EXPAND/COLLAPSE
   ======================================================== */
.library-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.apple-segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(243, 241, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(29, 16, 70, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.seg-tab-btn {
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--ease-apple);
}

.seg-tab-btn:hover {
  color: var(--indigo-800);
}

.seg-tab-btn.active {
  background: #FFFFFF;
  color: var(--indigo-800);
  box-shadow: 0 4px 14px rgba(29, 16, 70, 0.1);
}

.seg-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.12);
  color: var(--blue-600);
}

.seg-tab-btn.active .seg-count {
  background: var(--indigo-800);
  color: #FFFFFF;
}

/* Search Top Row & Density Controls */
.liquid-glass-station {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(190%) blur(26px) !important;
  -webkit-backdrop-filter: saturate(190%) blur(26px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 22px 48px -16px rgba(29, 16, 70, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

.search-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-top-row .search-input-shell {
  flex: 1;
  min-width: 280px;
  margin-bottom: 0;
  position: relative;
}

.library-density-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 241, 250, 0.85);
  padding: 5px 8px;
  border-radius: 16px;
  border: 1px solid rgba(41, 23, 101, 0.08);
  flex-wrap: wrap;
}

.density-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
}

.density-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 11px;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s var(--ease-apple);
}

.density-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--indigo-800);
}

.density-btn.active {
  background: #FFFFFF;
  color: var(--blue-600);
  border-color: rgba(37, 87, 214, 0.2);
  box-shadow: 0 2px 8px rgba(29, 16, 70, 0.07);
}

.density-collapse-btn {
  color: var(--indigo-800);
  background: rgba(41, 23, 101, 0.05);
}

/* Autocomplete Dropdown & Semantic Match Notice */
.search-autocomplete-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(190%) blur(24px);
  border: 1.5px solid rgba(37, 87, 214, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 44px -10px rgba(29, 16, 70, 0.2);
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-item:hover {
  background: var(--surface-lavender);
}

.ac-left {
  display: flex;
  flex-direction: column;
}

.ac-left strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--indigo-800);
}

.ac-left span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.ac-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.1);
  color: var(--blue-600);
  white-space: nowrap;
}

.semantic-match-notice {
  background: linear-gradient(90deg, rgba(37, 87, 214, 0.09) 0%, rgba(16, 185, 129, 0.09) 100%);
  border: 1px solid rgba(37, 87, 214, 0.22);
  border-radius: 12px;
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--indigo-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.extra-chips-drawer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(41, 23, 101, 0.12);
}

.chip-more-toggle {
  background: var(--indigo-800) !important;
  color: #FFFFFF !important;
  border-color: var(--indigo-800) !important;
}

.btn-inline-cms {
  border: 1px solid rgba(37, 87, 214, 0.28);
  background: rgba(37, 87, 214, 0.07);
  color: var(--blue-600);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-inline-cms:hover {
  background: var(--blue-600);
  color: #FFFFFF;
}

/* Compact Index Directory Mode (High-Density Apple List View) */
.conditions-bento-grid.compact-index-mode {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.compact-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(41, 23, 101, 0.09);
  box-shadow: 0 4px 12px rgba(29, 16, 70, 0.03);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease-apple);
}

.compact-article-row:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: var(--blue-600);
  background: #FFFFFF;
  box-shadow: 0 10px 24px -8px rgba(37, 87, 214, 0.18);
}

.compact-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.compact-num-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-lavender);
  color: var(--indigo-800);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-row-titles {
  min-width: 0;
}

.compact-row-titles h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-row-titles p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Liquid Glass Expand / Compress Footer Bar */
.library-expand-bar {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(190%) blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px -12px rgba(29, 16, 70, 0.12), inset 0 1px 2px #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.expand-bar-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.expand-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.library-collapsible-stage.collapsed-hidden {
  display: none;
}

/* 3D Card Type Badge (Padecimiento vs Artículo) */
.card-type-pill {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-type-pill.padecimiento {
  background: rgba(37, 87, 214, 0.1);
  color: var(--blue-600);
}

.card-type-pill.articulo {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* ========================================================
   MODAL: CENTRO DE CONTROL & ESTUDIO EDITORIAL CMS (4 TABS)
   ======================================================== */
.modal-card.modal-xl {
  max-width: 1040px;
  width: 96%;
  height: calc(100vh - 48px);
  max-height: 880px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #FFFFFF;
  margin: 0 auto;
  box-shadow: 0 32px 84px -16px rgba(18, 9, 44, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}

.modal-header-bar,
.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
  flex-shrink: 0;
}

.admin-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin: 6px 0 4px;
}

.admin-modal-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.admin-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 10px 30px;
  background: var(--surface-lavender);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  flex-shrink: 0;
}

.admin-tab-btn {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  padding: 9px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-apple);
}

.admin-tab-btn:hover {
  background: #FFFFFF;
  color: var(--indigo-800);
}

.admin-tab-btn.active {
  background: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(41, 23, 101, 0.25);
}

.modal-xl .admin-panel-body {
  padding: 22px 30px 36px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: #FAF9FD;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.cms-toolbar-box {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  background: linear-gradient(135deg, rgba(37, 87, 214, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1.5px solid rgba(37, 87, 214, 0.2);
  padding: 16px 20px;
  border-radius: 18px;
  flex-wrap: wrap;
}

.cms-toolbar-actions {
  display: flex;
  gap: 8px;
}

.cms-publish-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cms-status-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 700;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .first-visit-interactive-shell,
  .conditions-bento-grid.compact-index-mode {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-modal-header,
  .modal-xl .admin-panel-body,
  .admin-tabs-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ========================================================
   MAPA CORPORAL INTERACTIVO DE PATOLOGÍAS & TRIAGE CLÍNICO
   ======================================================== */
.body-map-section {
  padding: 72px 0 40px;
  position: relative;
}

.body-map-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 30px;
}

.body-zone-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px -12px rgba(29, 16, 70, 0.1), inset 0 1px 2px #FFFFFF;
}

.bz-pill-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-apple);
}

.bz-pill-btn .bz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 87, 214, 0.35);
  transition: all 0.25s ease;
}

.bz-pill-btn:hover {
  color: var(--indigo-800);
  background: rgba(243, 241, 250, 0.8);
}

.bz-pill-btn.active {
  background: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 6px 18px -4px rgba(41, 23, 101, 0.35);
}

.bz-pill-btn.active .bz-dot {
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}

/* Main 2-Column Studio Grid */
.body-map-studio-grid {
  display: grid;
  grid-template-columns: 445px 1fr;
  gap: 28px;
  align-items: stretch;
}

/* ==========================================================================
   LEFT COLUMN: 3D LIQUID GLASS ANATOMICAL STUDIO (APPLE VISIONOS AESTHETIC)
   ========================================================================== */
.body-silhouette-card {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(238, 242, 255, 0.82) 48%,
    rgba(224, 242, 254, 0.85) 100%
  ) !important;
  backdrop-filter: saturate(200%) blur(32px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(32px) !important;
  border-radius: 32px;
  padding: 20px 20px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 30px 65px -18px rgba(30, 27, 75, 0.16),
    0 12px 28px -10px rgba(37, 99, 235, 0.1),
    inset 0 2px 3px rgba(255, 255, 255, 0.98),
    inset 0 -1px 2px rgba(99, 102, 241, 0.12) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Ambient 3D Liquid Glass Light Orbs inside Stage */
.stage-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.stage-ambient-orb.orb-top-cyan {
  width: 220px;
  height: 220px;
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
}

.stage-ambient-orb.orb-mid-indigo {
  width: 260px;
  height: 260px;
  top: 32%;
  right: -60px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
}

.stage-ambient-orb.orb-bot-emerald {
  width: 240px;
  height: 240px;
  bottom: -50px;
  left: 18%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, transparent 70%);
}

/* Top Glass HUD Bar */
.silhouette-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px -8px rgba(30, 27, 75, 0.08), inset 0 1px 1px #FFFFFF;
  border-radius: 16px;
  padding: 9px 13px;
  z-index: 3;
}

.scanner-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--indigo-800);
  line-height: 1.3;
}

.scanner-Dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulseGlowDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseGlowDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.silhouette-topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.anatomical-view-switch {
  display: inline-flex;
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 999px;
  padding: 2px;
}

.anat-view-btn {
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.anat-view-btn.active {
  background: var(--indigo-800);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(41, 23, 101, 0.25);
}

.btn-unlock-zone {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #047857;
  font-family: var(--font-display);
  font-size: 0.69rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-unlock-zone:hover {
  background: #059669;
  color: #FFFFFF;
}

/* 3D Perspective Stage & Interactive Viewport */
.silhouette-svg-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 6px;
  flex: 1;
  perspective: 1100px;
  z-index: 2;
}

.anatomical-3d-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(224, 231, 255, 0.35) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 24px;
}

/* Biometric Animated Laser Plane */
.biometric-laser-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.45) 20%,
    rgba(16, 185, 129, 0.85) 50%,
    rgba(56, 189, 248, 0.45) 80%,
    transparent 100%
  );
  box-shadow: 0 0 16px 2px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  z-index: 4;
  animation: biometricScanSweep 6.5s ease-in-out infinite;
  opacity: 0.75;
}

@keyframes biometricScanSweep {
  0%, 100% { top: 10%; opacity: 0.35; }
  50% { top: 88%; opacity: 0.85; }
}

/* Floating HUD Telemetry Chips */
.hud-telemetry-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px -4px rgba(30, 27, 75, 0.1);
  pointer-events: none;
  transform: translateZ(24px);
  z-index: 5;
}

.hud-telemetry-chip.hud-top-left {
  top: 8px;
  left: 6px;
}

.hud-telemetry-chip.hud-top-right {
  top: 8px;
  right: 6px;
  text-align: right;
}

.hud-chip-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-chip-val {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--indigo-800);
}

/* Sculpted 3D Volumetric Human SVG */
.human-body-svg {
  width: 100%;
  max-width: 395px;
  height: auto;
  max-height: 550px;
  overflow: visible;
  transform: translateZ(14px);
  transition: transform 0.35s var(--ease-apple);
}

/* Anterior View Mode Subtle Layer Adjustment */
.anatomical-3d-viewport[data-view-mode="anterior"] .zone-3d-vertebrae {
  opacity: 0.32;
}

.anatomical-3d-viewport[data-view-mode="anterior"] .anatomical-muscle-lines {
  stroke-width: 2.1;
  opacity: 0.95;
}

/* Interactive 3D Anatomical SVG Zones */
.body-svg-zone {
  cursor: pointer;
  outline: none;
}

.body-svg-zone .zone-hit-area {
  fill: transparent;
  stroke: none;
}

.body-svg-zone .zone-3d-aura {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(59, 130, 246, 0.28);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
  transition: all 0.3s var(--ease-apple);
}

.body-svg-zone .vertebra-3d {
  fill: rgba(255, 255, 255, 0.85);
  stroke: rgba(99, 102, 241, 0.42);
  stroke-width: 1.1;
  transition: all 0.28s var(--ease-apple);
}

.body-svg-zone .zone-tendon-arc {
  fill: none;
  stroke: rgba(59, 130, 246, 0.45);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 3 2;
  transition: all 0.28s var(--ease-apple);
}

.body-svg-zone .zone-orb-node {
  fill: url(#orbIdleGrad);
  stroke: #FFFFFF;
  stroke-width: 2.2;
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
  transition: all 0.3s var(--ease-apple);
}

.body-svg-zone .zone-orb-specular {
  fill: #FFFFFF;
  opacity: 0.85;
  pointer-events: none;
}

.body-svg-zone .zone-pulse-ring {
  fill: none;
  stroke: #10B981;
  stroke-width: 2.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}

.body-svg-zone .callout-leader-line {
  fill: none;
  stroke: rgba(99, 102, 241, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  transition: all 0.25s ease;
}

.body-svg-zone .callout-pill-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(99, 102, 241, 0.28);
  stroke-width: 1.4;
  filter: drop-shadow(0 6px 14px rgba(30, 27, 75, 0.1));
  transition: all 0.28s var(--ease-apple);
}

.body-svg-zone .callout-status-dot {
  fill: #38BDF8;
  transition: all 0.28s ease;
}

.body-svg-zone .callout-pill-text {
  fill: var(--indigo-800);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: fill 0.25s ease;
}

/* HOVER & ACTIVE 3D STATES ON ANATOMICAL ZONES */
.body-svg-zone:hover .zone-3d-aura,
.body-svg-zone.active .zone-3d-aura {
  fill: url(#zoneActiveMeshGrad);
  stroke: #10B981;
  stroke-width: 2.2;
  stroke-dasharray: none;
  filter: url(#emerald3DGlow);
}

.body-svg-zone:hover .vertebra-3d,
.body-svg-zone.active .vertebra-3d {
  fill: #10B981;
  stroke: #ECFDF5;
  stroke-width: 1.3;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.45));
}

.body-svg-zone:hover .zone-tendon-arc,
.body-svg-zone.active .zone-tendon-arc {
  stroke: #059669;
  stroke-width: 2.4;
  stroke-dasharray: none;
}

.body-svg-zone:hover .zone-orb-node,
.body-svg-zone.active .zone-orb-node {
  fill: url(#orbActiveGrad);
  stroke: #FFFFFF;
  stroke-width: 2.6;
  r: 14px;
  filter: url(#emerald3DGlow);
}

.body-svg-zone:hover .zone-pulse-ring,
.body-svg-zone.active .zone-pulse-ring {
  opacity: 1;
  animation: zoneRingPulse 1.8s infinite ease-out;
}

@keyframes zoneRingPulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.body-svg-zone:hover .callout-leader-line,
.body-svg-zone.active .callout-leader-line {
  stroke: #059669;
  stroke-width: 2;
  stroke-dasharray: none;
}

.body-svg-zone:hover .callout-pill-bg,
.body-svg-zone.active .callout-pill-bg {
  fill: var(--indigo-800);
  stroke: #34D399;
  stroke-width: 1.8;
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.32));
}

.body-svg-zone:hover .callout-status-dot,
.body-svg-zone.active .callout-status-dot {
  fill: #34D399;
}

.body-svg-zone:hover .callout-pill-text,
.body-svg-zone.active .callout-pill-text {
  fill: #FFFFFF;
}

/* Bottom Legend inside 3D Silhouette Card */
.silhouette-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px -6px rgba(30, 27, 75, 0.07);
  z-index: 3;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  color: var(--indigo-800);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.treated {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.75);
}

.legend-dot.excluded {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.75);
}

/* ==========================================================================
   RIGHT COLUMN: CLINICAL PATHOLOGY BREAKDOWN & DIFFERENTIAL TRIAGE PANEL
   ========================================================================== */
.body-diagnosis-panel {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: saturate(190%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(190%) blur(28px) !important;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 28px 60px -16px rgba(29, 16, 70, 0.13),
    inset 0 2px 3px #FFFFFF !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.diagnosis-panel-header {
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 243, 255, 0.65) 100%);
}

.diag-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.diag-zone-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.1);
  color: var(--blue-600);
  border: 1px solid rgba(37, 87, 214, 0.18);
}

.diag-stats-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-800);
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 5px 13px;
  border-radius: 999px;
}

.diag-zone-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.2vw, 1.78rem);
  font-weight: 800;
  color: var(--indigo-800);
  margin: 0 0 6px;
}

.diag-zone-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.55;
}

.diag-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 242, 255, 0.75);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(41, 23, 101, 0.08);
  flex-wrap: wrap;
}

.diag-tab-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.diag-tab-btn:hover {
  color: var(--indigo-800);
  background: rgba(255, 255, 255, 0.65);
}

.diag-tab-btn.active {
  background: #FFFFFF;
  color: var(--indigo-800);
  box-shadow: 0 3px 10px rgba(29, 16, 70, 0.09);
}

.diag-tab-btn.tab-yes.active {
  background: #059669;
  color: #FFFFFF;
}

.diag-tab-btn.tab-no.active {
  background: #D97706;
  color: #FFFFFF;
}

/* Scrollable Body of the Diagnosis Panel */
.diagnosis-panel-body {
  padding: 22px 28px;
  overflow-y: auto;
  max-height: 550px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.diag-group-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeSlideUpGroup 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideUpGroup {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
}

.diag-group-header.treated-header {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.diag-group-header.excluded-header {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.diag-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diag-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 900;
  color: #FFFFFF;
  flex-shrink: 0;
}

.diag-status-icon.treated-icon {
  background: linear-gradient(135deg, #10B981, #047857);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

.diag-status-icon.excluded-icon {
  background: linear-gradient(135deg, #F59E0B, #B45309);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

.diag-group-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--indigo-800);
  letter-spacing: 0.01em;
}

.diag-group-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(41, 23, 101, 0.08);
}

/* 2-Column Grid for Both Treated & Excluded Cards */
.pathology-cards-grid,
.diag-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* ==========================================================================
   TREATED PATHOLOGY CARD (3D LIQUID GLASS EMERALD)
   ========================================================================== */
.pathology-treated-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 244, 0.55) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow:
    0 10px 24px -10px rgba(5, 150, 105, 0.1),
    inset 0 1px 2px #FFFFFF;
  transition: all 0.25s var(--ease-apple);
  position: relative;
}

.pathology-treated-card:hover {
  transform: translateY(-4px);
  border-color: #10B981;
  box-shadow:
    0 18px 34px -10px rgba(5, 150, 105, 0.2),
    inset 0 1px 2px #FFFFFF;
}

.pathology-card-top {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pathology-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  order: -1;
}

.pathology-treated-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pathology-recurrent-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.65), rgba(253, 224, 71, 0.4));
  color: #854D0E;
  border: 1px solid rgba(234, 179, 8, 0.45);
}

.pathology-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin: 0;
  line-height: 1.3;
}

.pathology-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.52;
}

.pathology-subtypes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.pathology-subtype-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--indigo-800);
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 3px 9px;
  border-radius: 8px;
}

/* Action Buttons inside Treated Card */
.pt-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(41, 23, 101, 0.12);
  margin-top: 4px;
}

.btn-pt-guide {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 87, 214, 0.08);
  border: 1px solid rgba(37, 87, 214, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pt-guide:hover {
  background: var(--blue-600);
  color: #FFFFFF;
  border-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 87, 214, 0.25);
}

.btn-pt-book {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.32);
  color: #047857;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pt-book:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

/* ==========================================================================
   EXCLUDED (NON-PHYSIO) CAUSE CARD (WARM AMBER/ROSE GLASS)
   ========================================================================== */
.pathology-excluded-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 243, 199, 0.38) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 8px 20px -8px rgba(180, 83, 9, 0.08);
  transition: all 0.22s var(--ease-apple);
}

.pathology-excluded-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.55);
}

.pathology-excluded-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.11);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.24);
  align-self: flex-start;
  order: -1;
}

.pathology-excluded-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: #78350F;
  margin: 0;
  line-height: 1.32;
}

.pathology-excluded-desc {
  font-size: 0.81rem;
  color: #57534E;
  margin: 0;
  line-height: 1.48;
}

.pathology-referral-note {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9A3412;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 6px 10px;
  border-radius: 10px;
  margin-top: 2px;
}

/* Footer inside Diagnosis Panel */
.diagnosis-panel-footer {
  padding: 16px 30px;
  background: var(--surface-lavender);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.diag-footer-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 240px;
}

.diag-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .body-map-studio-grid {
    grid-template-columns: 1fr;
  }

  .human-body-svg {
    max-height: 460px;
  }

  .diagnosis-panel-body {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .pathology-cards-grid,
  .diag-cards-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-panel-header,
  .diagnosis-panel-body,
  .diagnosis-panel-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .body-zone-pills-bar {
    border-radius: 20px;
    justify-content: center;
  }

  .hud-telemetry-chip {
    display: none;
  }
}

/* ========================================================
   BOOKING PRESELECTED CONDITION BANNER (APPLE STYLE)
   ======================================================== */
.booking-selected-cond-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(37, 87, 214, 0.08));
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  animation: bannerSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-selected-cond-banner.pulse-highlight {
  animation: bannerPulse 1.6s ease-out;
}

@keyframes bannerPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bsc-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bsc-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.bsc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsc-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
}

.bsc-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--indigo-800);
}

.bsc-clear-btn {
  background: #FFFFFF;
  border: 1px solid rgba(41, 23, 101, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bsc-clear-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: #DC2626;
}

/* ========================================================
   FLOATING CLINICAL TOAST NOTIFICATION (APPLE LIQUID GLASS)
   ======================================================== */
.clinical-toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinical-toast-notification.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.clinical-toast-notification .toast-icon {
  background: #10B981;
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
}

/* ========================================================
   HERO KEY POINTS GRID (APPLE LIQUID GLASS)
   ======================================================== */
.hero-key-points-wrapper {
  margin-top: 52px;
  position: relative;
  z-index: 5;
}

.hero-key-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.key-point-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: 0 12px 32px rgba(29, 16, 70, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.key-point-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(29, 16, 70, 0.12);
}

.key-point-card.highlight-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 241, 250, 0.92) 100%);
  border: 1.5px solid rgba(37, 87, 214, 0.28);
  box-shadow: 0 14px 36px rgba(37, 87, 214, 0.12);
}

.key-point-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(41, 23, 101, 0.07);
  color: var(--indigo-800);
  width: fit-content;
  margin-bottom: 12px;
}

.key-point-badge.badge-primary {
  background: rgba(37, 87, 214, 0.12);
  color: var(--blue-600);
}

.key-point-badge.badge-express {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.key-point-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--indigo-800);
  margin-bottom: 8px;
  line-height: 1.25;
}

.key-point-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.key-point-hook {
  font-size: 0.86rem;
  color: var(--indigo-800);
  line-height: 1.38;
  margin-bottom: 10px;
  background: rgba(37, 87, 214, 0.08);
  padding: 8px 11px;
  border-radius: 10px;
  border-left: 3px solid var(--blue-600);
}

.branches-quick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branches-quick-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.branches-quick-list .branch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
  flex-shrink: 0;
  margin-top: 5px;
}

.key-point-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(243, 241, 250, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(41, 23, 101, 0.08);
}

.key-point-price-tag .price-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--indigo-800);
}

.key-point-price-tag .price-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.key-point-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 87, 214, 0.08);
  transition: all 0.25s ease;
}

.key-point-btn-link:hover {
  background: rgba(37, 87, 214, 0.16);
  transform: translateX(2px);
}

.key-point-subhint {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ========================================================
   ADVISORY BANNER EXTENSIONS (5-10 MIN CALL)
   ======================================================== */
.advisory-features-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.adv-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.call-meta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 4px;
  width: fit-content;
}

/* ========================================================
   MOBILE FLOATING ACTION DOCK (PERSISTENT 1-TAP IN CELULAR)
   ======================================================== */
.mobile-floating-bar {
  display: none;
}

@media (max-width: 768px) {
  .hero-key-points-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-key-points-wrapper {
    margin-top: 32px;
  }

  .mobile-floating-bar {
    display: flex;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    margin: 0 auto;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 36px rgba(29, 16, 70, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 6px;
    gap: 8px;
    z-index: 9990;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .floating-dock-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    min-height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .floating-dock-btn:active {
    transform: scale(0.97);
  }

  .floating-dock-btn .dock-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .floating-dock-btn .dock-btn-copy {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
  }

  .floating-dock-btn .dock-btn-title {
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .floating-dock-btn .dock-btn-sub {
    font-size: 0.68rem;
    opacity: 0.88;
    font-weight: 600;
    white-space: nowrap;
  }

  .floating-dock-btn.dock-primary {
    background: var(--indigo-800);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(41, 23, 101, 0.35);
  }

  .floating-dock-btn.dock-secondary {
    background: rgba(243, 241, 250, 0.92);
    color: var(--indigo-800);
    border: 1px solid rgba(41, 23, 101, 0.12);
  }

  body:has(.modal-backdrop.open) .mobile-floating-bar,
  body.modal-open .mobile-floating-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .advisory-title {
    font-size: 1.45rem;
  }

  .floating-dock-btn {
    padding: 8px 10px;
  }

  .floating-dock-btn .dock-btn-title {
    font-size: 0.78rem;
  }

  .floating-dock-btn .dock-btn-sub {
    font-size: 0.64rem;
  }
}

/* ========================================================
   PATHOLOGIES EXPAND / COLLAPSE BUTTON (BODY MAP STUDIO)
   ======================================================== */
.pathologies-expand-control {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.btn-expand-pathologies {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(37, 87, 214, 0.22);
  box-shadow: 0 4px 16px rgba(29, 16, 70, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--indigo-800);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s var(--ease-apple);
  width: 100%;
  max-width: 440px;
}

.btn-expand-pathologies:hover {
  background: var(--surface-lavender-deep);
  border-color: rgba(37, 87, 214, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 87, 214, 0.15);
  color: var(--blue-600);
}

.btn-expand-pathologies:active {
  transform: translateY(0);
}



