/* ============================================================
   DR. RENÉ HEREDIA — URÓLOGO
   style.css — Sistema de diseño principal
   Paleta: Blanco (#FFF), Verde (#7b9730), Dorado (#c8a84e)
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   1. VARIABLES CSS (Design Tokens)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Colores Primarios */
  --primary-color: #7b9730;
  --primary-dark: #5f7825;
  --primary-light: #9ab84d;
  --primary-rgb: 123, 151, 48;

  /* Acentos Dorados */
  --accent-color: #c8a84e;
  --accent-dark: #a98b3a;
  --accent-light: #e8d9a0;
  --accent-rgb: 200, 168, 78;

  /* Fondos */
  --bg-color: #ffffff;
  --bg-soft: #f8f9f5;
  --bg-alt: #f2f4ed;
  --bg-dark: #1a2e0a;

  /* Texto */
  --text-color: #2d2d2d;
  --text-muted: #6c757d;
  --text-light: #a0a8b0;
  --text-on-dark: #f0f0f0;

  /* Bordes */
  --border-color: #e2e5da;
  --border-light: #eef0ea;

  /* Fondos Alternos */
  --bg-light: #f5f7f0;

  /* Tarjetas (Design Tokens) */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.07);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 36px rgba(var(--primary-rgb), 0.14);

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 60%, var(--accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(26, 46, 10, 0.88) 0%, rgba(123, 151, 48, 0.78) 50%, rgba(200, 168, 78, 0.6) 100%);
  --gradient-dark: linear-gradient(135deg, #1a2e0a 0%, #2a4515 50%, #1a2e0a 100%);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.08);
  --shadow-md: 0 4px 20px rgba(var(--primary-rgb), 0.12);
  --shadow-lg: 0 8px 40px rgba(var(--primary-rgb), 0.18);
  --shadow-xl: 0 16px 60px rgba(var(--primary-rgb), 0.25);
  --shadow-accent: 0 4px 20px rgba(var(--accent-rgb), 0.25);
  --shadow-card: 0 6px 30px rgba(var(--primary-rgb), 0.10);

  /* Bordes redondeados */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Transiciones */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tipografía */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

/* ═══════════════════════════════════════════════════════════════
   3. TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.topbar-social {
  display: flex;
  gap: 0.6rem;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.topbar-social a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   4. NAVBAR PRINCIPAL
   ═══════════════════════════════════════════════════════════════ */
#main-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
  transition: var(--transition-normal);
  z-index: 1050;
}

#main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.35rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-logo {
  max-height: 55px;
  width: auto;
  transition: var(--transition-normal);
}

#main-navbar.scrolled .navbar-logo {
  max-height: 42px;
}

/* Texto logo cuando no hay imagen */
.navbar-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  text-decoration: none;
  line-height: 1.2;
}

.navbar-brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav Links */
.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.06);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Navbar toggler móvil */
.navbar-toggler {
  padding: 0.4rem;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%237b9730' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════════════════════════
   5. MEGA-MENÚ & DROPDOWNS
   ═══════════════════════════════════════════════════════════════ */
/* Navbar container needs relative positioning for mega-menu */
#main-navbar .container {
  position: relative;
}

/* Parent must be static for full-width mega-menu */
.has-megamenu {
  position: static !important;
}

/* Base para todos los dropdowns */
.dropdown-menu {
  border: none;
  border-top: 3px solid var(--primary-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: fadeInMenu 0.25s ease-out;
}

/* Mega-Menú de ancho completo (Tratamientos y Cirugías) */
.dropdown-menu.megamenu-dropdown {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  transform: none !important;
  padding: 2.2rem 3rem !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

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

.megamenu-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.megamenu-title i {
  color: var(--accent-color);
  font-size: 1.15rem;
}

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

.megamenu-list li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  margin: 0 -0.6rem;
  font-size: 0.85rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.megamenu-list li a:hover {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.07);
  padding-left: 0.85rem;
}

.megamenu-list li a i {
  font-size: 0.75rem;
  color: var(--accent-color);
  transition: var(--transition-fast);
}

.megamenu-list li a:hover i {
  color: var(--primary-color);
}

/* Dropdown simple (Diagnóstico) */
.dropdown-menu:not(.megamenu-dropdown) {
  min-width: 240px;
  padding: 0.65rem 0.5rem;
}

.dropdown-menu:not(.megamenu-dropdown) .dropdown-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: var(--transition-fast);
}

.dropdown-menu:not(.megamenu-dropdown) .dropdown-item i {
  color: var(--accent-color);
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.dropdown-menu:not(.megamenu-dropdown) .dropdown-item:hover,
.dropdown-menu:not(.megamenu-dropdown) .dropdown-item:focus {
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary-color);
  padding-left: 1.1rem;
}

.dropdown-menu:not(.megamenu-dropdown) .dropdown-item:hover i,
.dropdown-menu:not(.megamenu-dropdown) .dropdown-item:focus i {
  color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════
   6. BOTÓN CTA NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.btn-navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 3px 15px rgba(var(--primary-rgb), 0.35);
}

.btn-navbar-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.45);
}

/* ═══════════════════════════════════════════════════════════════
   7. HERO SECTION (Páginas de servicio)
   ═══════════════════════════════════════════════════════════════ */
.service-hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.service-hero .container {
  position: relative;
  z-index: 2;
}

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Breadcrumb */
.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.service-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-breadcrumb a:hover {
  color: var(--accent-color);
}

.service-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.service-breadcrumb .current {
  color: var(--accent-color);
  font-weight: 600;
}

/* Hero decorative element */
.service-hero .hero-icon {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Hero Image Container (1:1 aspect ratio) */
.hero-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

/* Placeholder icon when image is missing */
.hero-image-wrapper::before {
  content: '\eb3e';
  font-family: 'boxicons' !important;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Hero Badge Card (when no photo is provided) */
.hero-badge-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.hero-badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.12), rgba(200, 168, 78, 0.15));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(123, 151, 48, 0.1);
}

.hero-badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(200, 168, 78, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.hero-badge-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-badge-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
}

.hero-badge-features span i {
  color: var(--primary-color);
  margin-right: 0.3rem;
  font-size: 1rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   8. SECCIONES DE CONTENIDO
   ═══════════════════════════════════════════════════════════════ */
.section-padding {
  padding: 5rem 0;
}

.section-bg-soft {
  background-color: var(--bg-soft);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin: 1rem 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   9. TARJETAS GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════ */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card .card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: var(--transition-normal);
}

.glass-card:hover .card-icon {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.08);
}

.glass-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.glass-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   10. BOTONES
   ═══════════════════════════════════════════════════════════════ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
  cursor: pointer;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
}

.btn-primary-custom:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 3px;
}

.btn-accent-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
  cursor: pointer;
}

.btn-accent-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.45);
}

.btn-accent-custom:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.5);
  outline-offset: 3px;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-outline-custom:hover {
  color: #fff;
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-custom:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   11. FOOTER
   ═══════════════════════════════════════════════════════════════ */
#main-footer {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

#main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-logo-img {
  max-height: 55px;
  width: auto;
  filter: brightness(1.1);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
  display: inline-block;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.87rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--accent-color);
  padding-left: 0.3rem;
}

.footer-links li a i {
  font-size: 0.7rem;
  color: var(--primary-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.87rem;
}

.footer-contact-item i {
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-top: 0.1rem;
}

.footer-contact-item a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-color);
}

/* ═══════════════════════════════════════════════════════════════
   12. WHATSAPP FLOAT & SCROLL TOP
   ═══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: var(--transition-normal);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

.scroll-top-btn {
  position: fixed;
  bottom: 90px;
  left: 31px;
  right: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   13. CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--gradient-hero);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   14. INFO LIST (listas de beneficios / pasos)
   ═══════════════════════════════════════════════════════════════ */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

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

.info-list li i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }

  .megamenu-dropdown {
    padding: 1rem;
  }

  .megamenu-dropdown .row>div {
    margin-bottom: 1rem;
  }

  .service-hero h1 {
    font-size: 2rem;
  }

  .service-hero .hero-icon {
    display: none;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .service-hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .service-hero h1 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 18px;
    left: 18px;
    right: auto;
  }

  .scroll-top-btn {
    bottom: 78px;
    left: 25px;
    right: auto;
    width: 38px;
    height: 38px;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .service-hero h1 {
    font-size: 1.45rem;
  }

  .btn-primary-custom,
  .btn-accent-custom {
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   15. PÁGINA DE CONTACTO & FORMULARIO
   ═══════════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-normal);
}

.contact-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.12), rgba(200, 168, 78, 0.15));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(123, 151, 48, 0.1);
  transition: var(--transition-fast);
}

.contact-info-block:hover .contact-icon-box {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.contact-info-text h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info-text a:hover {
  color: var(--primary-color);
}

/* Form Styles */
.form-label-custom {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
  margin-bottom: 0.4rem;
  display: block;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  outline: none;
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(123, 151, 48, 0.15);
  background-color: #fff;
}

.form-control-custom::placeholder {
  color: #9aa0a6;
}

.form-select-custom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  appearance: none;
  cursor: pointer;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  position: relative;
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  cursor: pointer;
}

.btn-whatsapp:hover {
  color: #fff;
  background: linear-gradient(135deg, #22bf5b, #0e7569);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   16. PÁGINA DE INICIO (HOME LANDING PAGE)
   ═══════════════════════════════════════════════════════════════ */

/* Hero Principal Home */
.home-hero {
  position: relative;
  padding: 6rem 0 0;
  background: linear-gradient(135deg, #2a3a12 0%, #44581a 35%, #7b9730 75%, #8fae38 100%);
  overflow-x: clip;
  overflow-y: visible;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
}

.home-hero-text-col {
  padding-bottom: 5.5rem;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200, 168, 78, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(123, 151, 48, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-pill-badge .dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-hero-title .highlight-gold {
  color: #ffd875;
  background: linear-gradient(135deg, #ffe082 0%, #ffca28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Retrato del Doctor en Hero — Presentación de Alto Impacto */
.hero-doctor-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  min-height: 580px;
  margin-bottom: -30px;
  z-index: 2;
}

.hero-doctor-glow {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 168, 78, 0.42) 0%, rgba(200, 168, 78, 0.12) 40%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.hero-doctor-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.38));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

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

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

/* Contenedor de Imagen Hero Home con badges flotantes */
.home-hero-media {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 420px;
}

.home-hero-img-box {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  position: relative;
}

.home-hero-img-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.floating-badge-top {
  top: -15px;
  right: -15px;
}

.floating-badge-bottom {
  bottom: -20px;
  left: -15px;
}

.floating-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.floating-badge-icon.green {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.floating-badge-icon.gold {
  background: linear-gradient(135deg, var(--accent-color), #d4a017);
}

.floating-badge-text h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

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

/* Cinta de Estadísticas / Impact Ribbon */
.stats-ribbon-section {
  position: relative;
  margin-top: -40px;
  z-index: 10;
}

.stats-card-grid {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item {
  text-align: center;
  padding: 0.75rem 1rem;
}

.stat-item-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.stat-item-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.2rem;
}

.stat-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Pilares de Excelencia (Glassmorphic) */
.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123, 151, 48, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(123, 151, 48, 0.15);
  border-color: var(--primary-light);
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.12), rgba(200, 168, 78, 0.18));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  transition: var(--transition-fast);
}

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

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Category Treatment Cards */
.treatment-cat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.8rem 1.6rem;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.treatment-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(123, 151, 48, 0.35);
}

.treatment-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.treatment-cat-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(123, 151, 48, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.treatment-links-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.treatment-links-list li {
  margin-bottom: 0.55rem;
}

.treatment-links-list a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  padding: 0.25rem 0;
}

.treatment-links-list a:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

.treatment-links-list a i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Showcase Quirúrgico */
.surgery-showcase-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.surgery-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.surgery-showcase-top {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, rgba(123, 151, 48, 0.03) 0%, #fff 100%);
}

.surgery-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(123, 151, 48, 0.12);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.surgery-showcase-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.surgery-showcase-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.surgery-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.surgery-benefits-list li {
  font-size: 0.825rem;
  color: var(--text-color);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.surgery-benefits-list li i {
  color: #25D366;
  font-size: 1rem;
}

/* Diagnóstico Cards */
.diag-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.diag-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.diag-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition-fast);
}

.diag-card:hover::after {
  opacity: 1;
}

.diag-icon-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.15), rgba(200, 168, 78, 0.15));
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Steps / Proceso del Paciente */
.process-step-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  height: 100%;
  transition: var(--transition-normal);
}

.process-step-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.process-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

/* Testimonios */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.8rem;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.stars-rating {
  color: #ffb703;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.testimonial-text {
  font-size: 0.925rem;
  color: var(--text-color);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.2), rgba(200, 168, 78, 0.3));
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.patient-details h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
}

.patient-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .home-hero {
    padding: 5rem 0 0;
    text-align: center;
  }

  .home-hero-text-col {
    padding-bottom: 2rem;
  }

  .home-hero-title {
    font-size: 2.2rem;
  }

  .home-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .home-hero-media {
    margin-top: 2rem;
    max-width: 320px;
  }

  .hero-doctor-portrait {
    max-width: 380px;
    min-height: 350px;
    margin: 1.5rem auto -15px;
  }

  .hero-doctor-img {
    max-width: 360px;
  }

  .hero-doctor-glow {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    position: static;
    margin: 0.75rem auto;
    max-width: 280px;
  }

  .stats-ribbon-section {
    margin-top: -30px;
  }

  .dropdown-menu.megamenu-dropdown {
    position: static !important;
    width: 100% !important;
    padding: 1.25rem 1rem !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: 3px solid var(--primary-color) !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .home-hero-title {
    font-size: 1.8rem;
  }

  .stat-item-number {
    font-size: 2rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .hero-doctor-portrait {
    max-width: 280px;
    min-height: 260px;
  }

  .hero-doctor-img {
    max-width: 260px;
  }

  .hero-doctor-glow {
    width: 200px;
    height: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   17. UTILIDADES ADICIONALES Y PARCHES UX
   ═══════════════════════════════════════════════════════════════ */

/* Separador vertical entre stats (solo desktop) */
@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}

/* Skip-to-content (Accesibilidad) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
  color: #fff;
}

/* Conectores visuales entre pasos del proceso */
@media (min-width: 992px) {
  .process-step-box {
    position: relative;
  }

  .process-step-box::before {
    content: '';
    position: absolute;
    top: 35px;
    right: -2rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
  }

  /* Ocultar conector del último paso */
  .col-lg-3:last-child .process-step-box::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   18. CLASES DEDICADAS (reemplazo de estilos inline)
   ═══════════════════════════════════════════════════════════════ */

/* Sección de pilares con fondo alterno */
.section-bg-pillars {
  background-color: var(--bg-light);
  padding-top: 6rem;
}

/* Encabezados de categorías de tratamiento */
.treatment-cat-heading {
  font-size: 1.15rem;
  color: var(--text-color);
}

/* Encabezados de cirugía showcase */
.surgery-heading {
  font-size: 1.2rem;
}

/* Encabezados de diagnóstico */
.diag-heading {
  font-size: 1.15rem;
}

/* Encabezado de paso de proceso */
.process-heading {
  font-size: 1.15rem;
}

/* Sección del doctor */
.section-bg-doctor {
  background: linear-gradient(135deg, #f9fbf4 0%, #edf3e0 100%);
}

.doctor-frame {
  max-width: 380px;
  background: #fff;
}

.doctor-frame-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.doctor-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto;
}

.doctor-name {
  font-size: 1.5rem;
}

.doctor-credentials {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-color);
}

.doctor-bio {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Info cards del doctor */
.doctor-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* Stat con color accent */
.stat-item-number-accent {
  color: var(--accent-color);
}

/* Hero trust badges */
.hero-trust-badges {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* CTA Final banner */
.cta-final-title {
  font-size: 2.3rem;
}

.cta-final-subtitle {
  max-width: 680px;
}

/* Formulario home card fondo */
.contact-card-home {
  background: linear-gradient(135deg, #ffffff 0%, #f9fbf4 100%);
}

/* ═══════════════════════════════════════════════════════════════
   21. PÁGINA DE PERFIL: DR. RENÉ HEREDIA (dr-heredia.php)
   ═══════════════════════════════════════════════════════════════ */
.doctor-hero-section {
  position: relative;
  background: linear-gradient(135deg, #152507 0%, #253e0d 50%, #172a08 100%);
  padding: 6.5rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
}

.doctor-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(200, 168, 78, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(123, 151, 48, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.doctor-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(200, 168, 78, 0.18);
  border: 1px solid rgba(200, 168, 78, 0.45);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doctor-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.doctor-hero-title span {
  color: var(--accent-color);
}

.doctor-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

.doctor-hero-portrait-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.doctor-hero-portrait-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(200, 168, 78, 0.35) 0%, rgba(123, 151, 48, 0.25) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}

.doctor-hero-portrait-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.doctor-hero-portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(10px);
}

.doctor-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(26, 46, 10, 0.92);
  border: 1px solid rgba(200, 168, 78, 0.5);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.doctor-floating-badge i {
  font-size: 2rem;
  color: var(--accent-color);
}

.doctor-floating-badge-text {
  line-height: 1.2;
}

.doctor-floating-badge-text strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  font-family: var(--font-heading);
}

.doctor-floating-badge-text span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Tarjetas Académicas y de Especialización */
.academic-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123, 151, 48, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  padding: 2.2rem 2rem;
  height: 100%;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.academic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.35s ease;
}

.academic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(123, 151, 48, 0.14);
  border-color: rgba(123, 151, 48, 0.35);
}

.academic-card:hover::before {
  width: 8px;
  background: var(--gradient-accent);
}

.academic-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(123, 151, 48, 0.12), rgba(200, 168, 78, 0.15));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.4rem;
}

/* Tarjetas de Cargos Hospitalarios */
.hospital-role-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hospital-role-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(123, 151, 48, 0.12);
}

.hospital-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hospital-badge-primary {
  background: rgba(123, 151, 48, 0.12);
  color: var(--primary-dark);
}

.hospital-badge-accent {
  background: rgba(200, 168, 78, 0.18);
  color: var(--accent-dark);
}

.hospital-badge-dark {
  background: rgba(26, 46, 10, 0.08);
  color: var(--bg-dark);
}

/* Tarjetas de Sociedades Científicas */
.society-card {
  background: linear-gradient(145deg, #ffffff 0%, #fbfcf9 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 168, 78, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  padding: 1.8rem 1.6rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.society-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(200, 168, 78, 0.18);
}

.society-medal {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(200, 168, 78, 0.35);
}

/* Tarjetas de Idiomas de Atención */
.language-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.language-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 22px rgba(123, 151, 48, 0.12);
}

.language-flag {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.language-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-color);
  margin-bottom: 0.35rem;
}

.language-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(123, 151, 48, 0.12);
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.language-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Cita destacada del Doctor */
.doctor-quote-banner {
  background: linear-gradient(135deg, #f7f9f2 0%, #edf2e4 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem 2.2rem;
  position: relative;
}

.doctor-quote-banner i.quote-icon {
  font-size: 3rem;
  color: rgba(123, 151, 48, 0.25);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}