/* ==========================================================================
   OFTALMOCENTRO - Sistema de Diseño Oficial
   Paleta extraída con precisión del Logotipo Institucional:
   - Azul Identitario: #0959A7
   - Naranja Acento:   #FE8C24
   - Negro Tipográfico:#000000 / #0A0E17
   - Blanco Principal: #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors (Exactos del Logotipo) */
  --brand-blue: #0959a7;
  --brand-blue-dark: #063d74;
  --brand-blue-deep: #032549;
  --brand-blue-light: #0d6ed1;
  --brand-blue-tint: #edf5fd;

  --brand-orange: #fe8c24;
  --brand-orange-hover: #e67716;
  --brand-orange-dark: #cc6307;
  --brand-orange-tint: #fff5eb;

  --brand-black: #000000;
  --brand-dark: #0a0e17;
  --brand-dark-soft: #1e293b;

  --brand-white: #ffffff;
  --bg-page: #ffffff;
  --bg-soft: #f8fafc;
  --bg-subtle: #f1f5f9;

  /* Semantic Elements */
  --text-main: #1e293b;
  --text-heading: #000000;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.65);

  /* Glassmorphism & Elevation */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-blur: blur(14px);
  --shadow-sm: 0 2px 10px rgba(9, 89, 167, 0.06);
  --shadow-md: 0 8px 24px rgba(9, 89, 167, 0.09);
  --shadow-lg: 0 16px 36px rgba(9, 89, 167, 0.13);
  --shadow-orange: 0 6px 20px rgba(254, 140, 36, 0.38);
  --shadow-blue: 0 6px 20px rgba(9, 89, 167, 0.32);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dynamics */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--brand-black);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--brand-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.text-brand-blue {
  color: var(--brand-blue) !important;
}

.text-brand-orange {
  color: var(--brand-orange) !important;
}

.text-brand-black {
  color: var(--brand-black) !important;
}

.bg-brand-soft {
  background-color: var(--brand-blue-tint) !important;
}

.bg-orange-soft {
  background-color: var(--brand-orange-tint) !important;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0d6ed1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #e67716 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. TOPBAR & NOTIFICATION STRIP
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--brand-blue-deep);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar a {
  color: #f8fafc;
  transition: var(--transition-smooth);
}

.topbar a:hover {
  color: var(--brand-orange);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(254, 140, 36, 0.2);
  color: var(--brand-orange);
  padding: 3px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(254, 140, 36, 0.4);
}

.topbar-badge i {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

/* --------------------------------------------------------------------------
   4. NAVIGATION & GLASSMORPHISM NAVBAR (CON LOGO AMPLIADO)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: var(--transition-smooth);
}

.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(9, 89, 167, 0.12);
  padding: 12px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled .navbar-custom {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

/* Logotipo Ampliado y Nítido */
.navbar-brand {
  padding: 0;
  margin-right: 28px;
}

.navbar-brand img,
.navbar-brand .logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.site-header.scrolled .navbar-brand img,
.site-header.scrolled .navbar-brand .logo-img {
  height: 58px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--brand-dark-soft);
  padding: 10px 14px !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--brand-blue);
  background: var(--brand-blue-tint);
}

/* Dropdown Menus */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(9, 89, 167, 0.18);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  margin-top: 8px;
  animation: fadeInDown 0.25s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-dark-soft);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--brand-blue-tint);
  color: var(--brand-blue);
  transform: translateX(4px);
}

.dropdown-item i {
  font-size: 1.1rem;
  color: var(--brand-blue);
}

/* Mega Menu for Services */
.mega-dropdown {
  position: static !important;
}

.mega-menu {
  width: 94%;
  max-width: 1140px;
  left: 3% !important;
  right: 3% !important;
  top: 100%;
  padding: 24px;
}

.mega-menu-column {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition-smooth);
}

.mega-menu-column:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.mega-menu-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-blue-tint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-header i {
  font-size: 1.3rem;
  color: var(--brand-blue);
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.mega-menu-list li a:hover {
  background-color: var(--brand-blue-tint);
  color: var(--brand-blue);
  padding-left: 14px;
}

.mega-menu-list li a i {
  font-size: 1rem;
  color: var(--brand-blue);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: var(--border-radius-full);
  border: none;
  box-shadow: var(--shadow-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9, 89, 167, 0.45);
}

/* Pestaña Naranja Destacada de Contacto */
.btn-orange-custom {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #e67716 100%);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 11px 24px;
  border-radius: var(--border-radius-full);
  border: none;
  box-shadow: var(--shadow-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-orange-custom:hover {
  color: var(--brand-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(254, 140, 36, 0.55);
  background: linear-gradient(135deg, #e67716 0%, #cc6307 100%);
}

.btn-outline-custom {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 22px;
  border-radius: var(--border-radius-full);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.btn-whatsapp-hero {
  background-color: #25d366;
  color: var(--brand-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  border: none;
  transition: var(--transition-smooth);
}

.btn-whatsapp-hero:hover {
  background-color: #20ba5a;
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------------
   6. HERO SERVICE SECTION & BREADCRUMBS
   -------------------------------------------------------------------------- */
.service-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand-blue-deep) 0%, var(--brand-blue-dark) 45%, var(--brand-blue) 100%);
  color: var(--brand-white);
  padding: 60px 0 70px;
  overflow: hidden;
}

.service-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 15%, rgba(254, 140, 36, 0.2), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(13, 110, 209, 0.25), transparent 45%);
  pointer-events: none;
}

.breadcrumb-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 20px;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb-custom li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom li a {
  color: #bae6fd;
  text-decoration: none;
}

.breadcrumb-custom li a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

.breadcrumb-custom li.active {
  color: var(--brand-white);
  font-weight: 600;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e0f2fe;
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.service-hero-title {
  color: var(--brand-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.service-hero-lead {
  font-size: 1.15rem;
  color: #f1f5f9;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-md);
  padding: 14px;
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-orange);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.hero-media-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-media-wrapper:hover img {
  transform: scale(1.03);
}

.hero-media-placeholder {
  min-height: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 90px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.hero-media-placeholder:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.12);
}

.placeholder-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(6, 61, 116, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  color: var(--brand-white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-floating-badge i {
  font-size: 2rem;
  color: var(--brand-orange);
}

/* --------------------------------------------------------------------------
   7. SECTION HEADINGS & LAYOUTS
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  padding: 5px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   8. GLASSMORPHISM CARDS & FEATURE BOXES
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: var(--brand-blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--brand-blue);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.glass-card:hover .feature-icon-box {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: scale(1.08);
}

/* Lens Types Comparison Cards */
.lens-card {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background: var(--brand-white);
  padding: 28px;
  transition: var(--transition-smooth);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lens-card.popular {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #e67716 100%);
  color: var(--brand-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.5px;
}

.lens-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.lens-type-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 8px;
}

.lens-ideal-for {
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lens-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  flex-grow: 1;
}

.lens-features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lens-features-list li i {
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   9. STEP-BY-STEP SURGICAL PROCESS (TIMELINE)
   -------------------------------------------------------------------------- */
.step-item {
  position: relative;
  padding: 24px;
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.step-item:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-blue);
}

/* --------------------------------------------------------------------------
   10. DOCTOR PROFILE TRUST CARD
   -------------------------------------------------------------------------- */
.doctor-trust-card {
  background: linear-gradient(135deg, var(--brand-blue-deep) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.doctor-trust-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(254, 140, 36, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.doctor-avatar-box {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg);
}

.doctor-specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.doctor-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--brand-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.accordion-custom .accordion-item:hover {
  border-color: var(--brand-blue);
}

.accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-black);
  background-color: var(--brand-white);
  padding: 18px 24px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--brand-blue);
  background-color: var(--brand-blue-tint);
}

.accordion-custom .accordion-body {
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. WHATSAPP APPOINTMENT FORM
   -------------------------------------------------------------------------- */
.appointment-card {
  background: var(--brand-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control::placeholder,
.form-control::-webkit-input-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.10 !important;
  font-weight: 200;
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(9, 89, 167, 0.18);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-black);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   13. FOOTER (FONDO OSCURO CON CONTRASTE ELEGANTE)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--brand-dark);
  color: #cbd5e1;
  padding: 70px 0 25px;
  border-top: 4px solid var(--brand-orange);
}

.footer-logo-container {
  background: #ffffff;
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.footer-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-title {
  color: var(--brand-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #94a3b8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.footer-links li a:hover {
  color: var(--brand-orange);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  font-size: 1.3rem;
  color: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   14. FLOATING WHATSAPP BUTTON & BACK TO TOP
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: var(--brand-white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-ring 2s infinite;
  opacity: 0.6;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {

  .navbar-brand img,
  .navbar-brand .logo-img {
    height: 64px;
  }
}

@media (max-width: 991.98px) {

  .navbar-brand img,
  .navbar-brand .logo-img {
    height: 56px;
  }

  .mega-menu {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    padding: 14px;
  }

  .mega-menu-column {
    margin-bottom: 16px;
  }

  .navbar-nav {
    padding: 16px 0;
  }

  .hero-media-wrapper img {
    height: 300px;
  }

  .section-padding {
    padding: 50px 0;
  }
}

/* --------------------------------------------------------------------------
   16. PACIENTES - COMPONENTES ESPECIALIZADOS
   -------------------------------------------------------------------------- */
/* Nav Pills para Guías y Preguntas */
.nav-pills-custom {
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--border-radius-full);
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.nav-pills-custom .nav-link {
  border-radius: var(--border-radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 10px 22px;
  transition: var(--transition-smooth);
}

.nav-pills-custom .nav-link.active,
.nav-pills-custom .nav-link:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: var(--shadow-sm);
}

/* Tarjetas de Checklist Médico */
.checklist-card {
  background: var(--brand-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-smooth);
}

.checklist-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.checklist-list li:last-child {
  border-bottom: none;
}

.checklist-list li i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Tarjetas de Semáforo de Urgencias */
.urgency-badge-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.urgency-badge-warning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.urgency-badge-info {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #7dd3fc;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.emergency-alert-banner {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  color: var(--brand-white);
  border-radius: var(--border-radius-lg);
  padding: 30px 36px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

/* Tarjetas de Seguros y Métodos de Pago */
.payment-card {
  background: var(--brand-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.payment-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.payment-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.payment-card:hover .payment-icon-circle {
  background: var(--brand-orange);
  color: var(--brand-white);
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   17. HOME PAGE - VIDEO HERO & COMPONENTES EXCLUSIVOS
   -------------------------------------------------------------------------- */
/* Video Hero Full-Screen */
.video-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-blue-deep);
}

.video-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-hero__bg video,
.video-hero__bg img,
.video-hero__bg .video-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(3, 37, 73, 0.82) 0%,
      rgba(9, 89, 167, 0.55) 50%,
      rgba(3, 37, 73, 0.78) 100%);
  z-index: 1;
}

.video-hero__content {
  position: relative;
  z-index: 2;
  padding: 20px 0 80px 130px;
}

.video-hero__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(254, 140, 36, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(254, 140, 36, 0.35);
  color: var(--brand-orange);
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeInDown 0.8s ease-out;
}

.video-hero__title {
  color: var(--brand-white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.video-hero__title .text-highlight {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-hero__lead {
  font-size: 1.2rem;
  color: rgba(241, 245, 249, 0.92);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Animated Counter Strip */
.counter-strip {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.counter-item {
  text-align: center;
  position: relative;
}

.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-orange);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* Scroll-down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounceDown 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage Service Grid (Bigger, bolder) */
.home-service-card {
  position: relative;
  background: var(--brand-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-service-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.home-service-card:hover::before {
  transform: scaleX(1);
}

.home-service-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--border-radius-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  transition: var(--transition-smooth);
}

.home-service-card:hover .home-service-icon {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: scale(1.08);
}

.home-service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-blue);
  transition: var(--transition-smooth);
}

.home-service-link:hover {
  gap: 10px;
  color: var(--brand-orange);
}

/* Doctor Spotlight (Full-width dark section) */
.doctor-spotlight {
  position: relative;
  background: linear-gradient(135deg, var(--brand-blue-deep) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  overflow: hidden;
}

.doctor-spotlight::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 140, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* CTA Banner Gradient */
.cta-banner-home {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #e67716 50%, var(--brand-orange-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.cta-banner-home::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-banner-home::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Diagnostic mini-cards */
.diagnostic-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.diagnostic-mini-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.diagnostic-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.diagnostic-mini-card:hover .diagnostic-mini-icon {
  background: var(--brand-blue);
  color: var(--brand-white);
}

/* Responsive overrides for home */
@media (max-width: 991.98px) {
  .video-hero {
    min-height: 80vh;
  }

  .video-hero__content {
    padding: 80px 0 60px;
  }

  .counter-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 24px;
  }

  .counter-item:not(:last-child)::after {
    display: none;
  }

  .counter-value {
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .video-hero {
    min-height: 75vh;
  }

  .video-hero__title {
    font-size: 2rem;
  }

  .video-hero__lead {
    font-size: 1rem;
  }

  .counter-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   MÉDICAL REELS & VÍDEO COMPONENT (Vertical 9:16)
   -------------------------------------------------------------------------- */
.medical-video-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.medical-video-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(9, 89, 167, 0.18), 0 0 0 1px rgba(9, 89, 167, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.medical-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(9, 89, 167, 0.25), 0 0 0 1px rgba(254, 140, 36, 0.3);
}

.medical-video-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 21px;
}

.video-card-header-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.video-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recording-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.video-duration-pill {
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature Explainer Block */
.video-explainer-section {
  background: linear-gradient(135deg, #f8fafc 0%, #edf5fd 100%);
  border-radius: 28px;
  padding: 44px 36px;
  border: 1px solid rgba(9, 89, 167, 0.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.video-explainer-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 140, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Home Videoteca Grid */
.home-video-grid-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-video-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(9, 89, 167, 0.25);
}

.home-video-grid-card .medical-video-card {
  max-width: 100%;
}

.home-video-grid-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.home-video-grid-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

@media (max-width: 767.98px) {
  .video-explainer-section {
    padding: 28px 20px;
  }
}

/* --------------------------------------------------------------------------
   14. EL ESPECIALISTA - TIMELINE, PILLARS & CREDENTIAL STYLES
   -------------------------------------------------------------------------- */
.doctor-timeline {
  position: relative;
  padding: 10px 0;
}

.doctor-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-blue) 65%, rgba(9, 89, 167, 0.25) 100%);
  border-radius: var(--border-radius-full);
}

.doctor-timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 32px;
}

.doctor-timeline-item:last-child {
  margin-bottom: 0;
}

.doctor-timeline-icon {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 0 5px rgba(9, 89, 167, 0.15), var(--shadow-sm);
  z-index: 2;
  transition: var(--transition-smooth);
}

.doctor-timeline-item:hover .doctor-timeline-icon {
  background: var(--brand-orange);
  box-shadow: 0 0 0 7px rgba(254, 140, 36, 0.25), var(--shadow-orange);
  transform: scale(1.1);
}

.doctor-timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.doctor-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 89, 167, 0.35);
}

.doctor-timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-orange-dark);
  background: var(--brand-orange-tint);
  border: 1px solid rgba(254, 140, 36, 0.3);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.doctor-timeline-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.doctor-timeline-institution {
  font-size: 0.98rem;
  color: var(--brand-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.doctor-timeline-country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.doctor-timeline-desc {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0;
  margin-top: 10px;
}

/* Pillar Cards */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 89, 167, 0.3);
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--brand-blue);
  color: #ffffff;
  transform: scale(1.08);
}

/* Doctor Quote Box */
.doctor-quote-box {
  background: linear-gradient(135deg, rgba(9, 89, 167, 0.05) 0%, rgba(254, 140, 36, 0.06) 100%);
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  padding: 24px 28px;
  font-style: italic;
  color: var(--brand-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

.doctor-quote-box i.quote-icon {
  font-size: 2.2rem;
  color: var(--brand-orange);
  opacity: 0.3;
  position: absolute;
  top: 15px;
  right: 20px;
}

@media (max-width: 575.98px) {
  .doctor-timeline::before {
    left: 18px;
  }

  .doctor-timeline-item {
    padding-left: 48px;
  }

  .doctor-timeline-icon {
    left: 2px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .doctor-timeline-card {
    padding: 18px 20px;
  }
}

/* --------------------------------------------------------------------------
   19. DIRECTORIO CORPORATIVO DE CORREOS - DISEÑO ULTRA PREMIUM
   -------------------------------------------------------------------------- */
.section-dept-emails {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4fc 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.section-dept-emails::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 89, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-dept-emails::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 140, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.dept-card-premium {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(9, 89, 167, 0.06);
  position: relative;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.dept-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-gradient, linear-gradient(90deg, var(--brand-blue), var(--brand-orange)));
  transition: height 0.3s ease;
}

.dept-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(9, 89, 167, 0.15);
  border-color: rgba(9, 89, 167, 0.28);
}

.dept-card-premium:hover::before {
  height: 7px;
}

/* Department Card Themes */
.dept-theme-info {
  --card-gradient: linear-gradient(135deg, #0959a7 0%, #0284c7 100%);
  --card-accent: #0284c7;
  --card-tint: #e0f2fe;
}

.dept-theme-admin {
  --card-gradient: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --card-accent: #0d9488;
  --card-tint: #ccfbf1;
}

.dept-theme-direction {
  --card-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --card-accent: #1e3a8a;
  --card-tint: #e0e7ff;
}

.dept-theme-marketing {
  --card-gradient: linear-gradient(135deg, #ea580c 0%, #fe8c24 100%);
  --card-accent: #ea580c;
  --card-tint: #ffedd5;
}

/* Icon Box */
.dept-card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--card-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease;
}

.dept-card-premium:hover .dept-card-icon-wrap {
  transform: scale(1.1) rotate(4deg);
}

/* Badge Pill */
.dept-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card-tint);
  color: var(--card-accent);
  margin-bottom: 12px;
  width: fit-content;
}

.dept-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.dept-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Features List */
.dept-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.dept-features-list li {
  font-size: 0.84rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-features-list li i {
  color: #10b981;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Email Action Container */
.dept-email-action-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  transition: all 0.25s ease;
}

.dept-card-premium:hover .dept-email-action-box {
  background: #ffffff;
  border-color: var(--card-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.dept-email-text-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dept-email-address {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-dark);
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dept-email-address:hover {
  color: var(--brand-blue);
}

.btn-copy-mini {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.btn-copy-mini:hover {
  background: var(--brand-blue-tint);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-send-email-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--card-gradient);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.btn-send-email-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* Callout Info Banner */
.dept-support-banner {
  background: linear-gradient(135deg, rgba(9, 89, 167, 0.08) 0%, rgba(254, 140, 36, 0.08) 100%);
  border: 1px dashed rgba(9, 89, 167, 0.3);
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}