/* ============================================================
   DR. VALDEZ URÓLOGO — Global Stylesheet
   Stack: Bootstrap 5.3 | AOS | BoxIcons | Outfit + Inter
   Tema: Blanco con azul del logo (#2A53B8 / #1A3370)
   ============================================================ */

/* ===== 1. CSS Custom Properties ===== */
:root {
  /* Colores extraídos del logo */
  --color-primary: #1A3370;
  /* Azul oscuro — texto del logo */
  --color-primary-light: #2A53B8;
  /* Azul medio — elementos del logo */
  --color-primary-pale: #EEF2FB;
  /* Azul muy claro — fondos suaves */
  --color-accent: #2A53B8;
  /* Acento principal */
  --color-accent-dark: #1A3370;
  /* Acento oscuro */
  --color-accent-hover: #3A63C8;
  /* Acento hover */

  /* Paleta de grises del logo */
  --color-gray: #6B7280;
  /* Gris del logo */
  --color-gray-light: #9CA3AF;
  --color-gray-pale: #F3F4F6;

  /* Dorado — solo para CTAs y badges destacados */
  --color-gold: #C9922A;
  --color-gold-light: #E0A83C;

  /* Fondos */
  --color-bg: #FFFFFF;
  /* Fondo principal */
  --color-bg-alt: #F7F9FC;
  /* Fondo alternante de secciones */
  --color-bg-deep: #EEF2FB;
  /* Secciones hero / CTA */

  /* Superficies y bordes */
  --color-surface: rgba(42, 83, 184, 0.05);
  --color-surface-hover: rgba(42, 83, 184, 0.09);
  --color-border: rgba(42, 83, 184, 0.14);
  --color-border-hover: rgba(42, 83, 184, 0.38);

  /* Textos */
  --color-text: #1A2035;
  /* Texto principal oscuro */
  --color-text-muted: #5A6580;
  /* Texto secundario */
  --color-text-light: #8A93AD;
  /* Texto muy suave */

  /* Tipografías */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Border-radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 50px;

  /* Sombras */
  --shadow-xs: 0 2px 8px rgba(26, 51, 112, 0.08);
  --shadow-sm: 0 4px 18px rgba(26, 51, 112, 0.12);
  --shadow-card: 0 8px 32px rgba(26, 51, 112, 0.10);
  --shadow-card-hover: 0 20px 55px rgba(26, 51, 112, 0.18);
  --shadow-glow-blue: 0 0 30px rgba(42, 83, 184, 0.22);
  --shadow-glow-gold: 0 0 30px rgba(201, 146, 42, 0.22);

  /* Transiciones */
  --transition: all 0.30s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 2. Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}

[data-aos] {
  max-width: 100% !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

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

img {
  max-width: 100%;
}

/* ===== 3. Scrollbar ===== */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

/* ===== 4. Text Selection ===== */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* =====================================================
   5. NAVBAR
   ===================================================== */
#mainNavbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: var(--transition-slow);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  z-index: 1050;
  box-shadow: var(--shadow-xs);
  width: 100%;
  max-width: 100% !important;
}

#mainNavbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-border);
  padding: 6px 0;
  box-shadow: var(--shadow-sm);
}

/* Brand / Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

/* Logo completo en navbar */
.navbar-logo-img {
  height: 70px;
  /* ajustado para mostrar el logo completo sin solapar */
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
  filter: none;
}

@media (max-width: 991.98px) {
  .navbar-logo-img {
    height: 80px !important;
    max-width: 260px !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo-img {
    height: 50px !important;
    max-width: 240px !important;
  }
}

.navbar-brand:hover .navbar-logo-img {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Nav links */
.navbar-nav .nav-link {
  color: var(--color-text-muted) !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent) !important;
  background: var(--color-surface);
}

/* ---- Mega Menu ---- */
.navbar>.container {
  position: relative;
}

.nav-item.position-static {
  position: static !important;
}

.navbar .dropdown-menu {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 10px;
  box-shadow: var(--shadow-card);
  animation: fadeDropdown 0.2s ease forwards;
}

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

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

.dropdown-menu.mega-menu {
  min-width: 680px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.mega-menu-col-title {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar .dropdown-item {
  color: var(--color-text-muted) !important;
  font-size: 0.84rem;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  white-space: normal;
}

.navbar .dropdown-item:hover {
  background: var(--color-surface) !important;
  color: var(--color-accent) !important;
  padding-left: 18px;
}

.navbar .dropdown-item i {
  margin-right: 5px;
  font-size: 0.8rem;
  color: var(--color-accent);
  opacity: 0.7;
  transition: var(--transition);
}

.navbar .dropdown-item:hover i {
  opacity: 1;
}

/* CTA Button in nav */
.navbar-nav .nav-link.btn-cta-nav,
.btn-cta-nav,
.btn-cta-nav i,
.btn-cta-nav span {
  color: #ffffff !important;
}

.btn-cta-nav {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.84rem !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 4px 20px rgba(42, 83, 184, 0.30);
  letter-spacing: 0.04em;
  transition: var(--transition) !important;
}

.btn-cta-nav:hover,
.navbar-nav .nav-link.btn-cta-nav:hover {
  background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent)) !important;
  box-shadow: 0 8px 34px rgba(42, 83, 184, 0.45) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Mobile toggler */
.navbar-toggler {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.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='rgba%2826,51,112,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   6. UTILITY CLASSES
   ===================================================== */
.section-padding {
  padding: 96px 0;
}

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

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Gradient text */
.text-gradient-cyan {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider-accent {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
  margin: 14px 0 30px;
}

.divider-gold {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
  margin: 14px 0 30px;
}

/* BG helpers */
.bg-dark-1 {
  background: var(--color-bg);
}

.bg-dark-2 {
  background: var(--color-bg-alt);
}

.bg-primary-brand {
  background: var(--color-bg-deep);
}

/* =====================================================
   7. BUTTONS
   ===================================================== */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(42, 83, 184, 0.30);
  letter-spacing: 0.03em;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(42, 83, 184, 0.45);
  color: #fff;
}

.btn-gold-custom {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(201, 146, 42, 0.35);
  letter-spacing: 0.03em;
}

.btn-gold-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(201, 146, 42, 0.50);
  color: #fff;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 32px;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-accent);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-outline-custom:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(42, 83, 184, 0.25);
}

/* =====================================================
   8. GLASS / SURFACE CARDS (general)
   ===================================================== */
.card-glass {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

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

/* =====================================================
   9. HERO — Service Pages
   ===================================================== */
.hero-service {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--color-bg-deep) 0%, #dce7f8 55%, var(--color-bg-alt) 100%);
  padding-top: 130px;
  padding-bottom: 90px;
}

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

/* Video de fondo Hero */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.78;
  filter: brightness(0.92) contrast(1.08);
}

@media (max-width: 991.98px) {
  .hero-video-bg {
    object-position: 15% 20%;
    opacity: 0.85;
  }

  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(238, 242, 251, 0.82) 0%, rgba(238, 242, 251, 0.60) 65%, rgba(220, 231, 248, 0.35) 100%);
  }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238, 242, 251, 0.82) 0%, rgba(238, 242, 251, 0.55) 45%, rgba(220, 231, 248, 0.28) 100%);
  z-index: 1;
}

/* Panel de cristal frosted opcional para texto sobre video */
.hero-text-glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: 0 12px 40px rgba(26, 51, 112, 0.10);
}

.hero-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(42, 83, 184, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201, 146, 42, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

.hero-bg-icon {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30rem;
  color: rgba(42, 83, 184, 0.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-width: 50vw;
  /* evita que el ícono sangre fuera del hero */
}

/* Hero badge */
.hero-badge,
.hero-badge *,
.hero-badge i {
  color: #ffffff !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(201, 146, 42, 0.38);
  border: none;
  transition: var(--transition);
}

.hero-badge i {
  font-size: 1.05rem;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 146, 42, 0.52);
  color: #ffffff !important;
}

.hero-service h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero-service .hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.75;
}

/* Hero breadcrumb */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.hero-breadcrumb a {
  color: var(--color-text-muted);
}

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

.hero-breadcrumb .sep {
  font-size: 0.65rem;
  opacity: 0.45;
}

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

/* Hero stats strip — Siempre en 1 sola línea */
.hero-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  gap: 0;
  width: 100%;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  margin: 0;
  border-right: 1px solid var(--color-border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero image card (right column) */
.hero-info-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 30px;
}

.hero-doctor-img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-xl);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(201, 146, 42, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-doctor-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(201, 146, 42, 0.35);
}

.hero-info-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}

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

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-checklist li i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =====================================================
   10. SYMPTOM CARDS
   ===================================================== */
.symptom-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-xs);
}

.symptom-card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.symptom-icon {
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, rgba(42, 83, 184, 0.12), rgba(42, 83, 184, 0.04));
  border: 1px solid rgba(42, 83, 184, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
  color: var(--color-accent);
  transition: var(--transition);
}

.symptom-card:hover .symptom-icon {
  background: linear-gradient(135deg, rgba(42, 83, 184, 0.22), rgba(42, 83, 184, 0.08));
  box-shadow: var(--shadow-glow-blue);
}

.symptom-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.symptom-card p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   11. RISK FACTOR ITEMS
   ===================================================== */
.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-xs);
}

.risk-item:hover {
  border-color: rgba(201, 146, 42, 0.30);
  background: rgba(201, 146, 42, 0.03);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.risk-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201, 146, 42, 0.12), rgba(201, 146, 42, 0.04));
  border: 1px solid rgba(201, 146, 42, 0.20);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-gold);
}

.risk-content h6 {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.risk-content p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   12. DIAGNOSIS TIMELINE
   ===================================================== */
.diag-timeline {
  position: relative;
  padding-left: 44px;
}

.diag-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(42, 83, 184, 0.10) 100%);
}

.diag-item {
  position: relative;
  margin-bottom: 20px;
  padding: 26px 26px 22px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.diag-item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.diag-dot {
  position: absolute;
  left: -34px;
  top: 30px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-bg-alt);
  box-shadow: 0 0 12px rgba(42, 83, 184, 0.40);
}

.diag-step-num {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.diag-item h5 {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.diag-item p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* =====================================================
   13. TREATMENTS TABS
   ===================================================== */
.treatment-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.treatment-tab-btn {
  padding: 11px 24px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
}

.treatment-tab-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(42, 83, 184, 0.30);
}

.treatment-tab-btn:hover:not(.active) {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
}

.treatment-panel {
  display: none;
}

.treatment-panel.active {
  display: block;
}

.treatment-option {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  margin-bottom: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.treatment-option:hover {
  border-color: var(--color-border-hover);
  transform: translateX(5px);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.treatment-option-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(42, 83, 184, 0.12), rgba(42, 83, 184, 0.04));
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
}

.treatment-option h6 {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.treatment-option p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   14. CREDENTIAL / WHY DR. VALDEZ CARDS
   ===================================================== */
.credential-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.credential-card:hover {
  border-color: rgba(201, 146, 42, 0.32);
  background: rgba(201, 146, 42, 0.03);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.credential-icon-wrap {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(201, 146, 42, 0.14), rgba(201, 146, 42, 0.04));
  border: 1px solid rgba(201, 146, 42, 0.22);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 18px;
  transition: var(--transition);
}

.credential-card:hover .credential-icon-wrap {
  box-shadow: var(--shadow-glow-gold);
}

.credential-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.credential-card p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* =====================================================
   15. FAQ ACCORDION
   ===================================================== */
.faq-accordion .accordion-item {
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.faq-accordion .accordion-item:hover {
  border-color: var(--color-border-hover) !important;
}

.faq-accordion .accordion-button {
  background: transparent !important;
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: none !important;
  padding: 22px 24px;
  line-height: 1.5;
}

.faq-accordion .accordion-button::after {
  filter: none;
  opacity: 0.7;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-accent) !important;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(0.3) sepia(1) saturate(3) hue-rotate(200deg);
  opacity: 1;
}

.faq-accordion .accordion-body {
  background: var(--color-bg-alt) !important;
  color: var(--color-text-muted);
  font-size: 0.89rem;
  line-height: 1.82;
  padding: 0 24px 22px;
  border-top: 1px solid var(--color-border);
}

/* =====================================================
   16. CTA SECTION
   ===================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(201, 146, 42, 0.12) 0%, transparent 50%);
}

.cta-inner-card {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  padding: 62px 50px;
}

.cta-form-field {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  padding: 13px 18px;
  width: 100%;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 14px;
}

.cta-form-field::placeholder {
  color: rgba(255, 255, 255, 0.50);
}

.cta-form-field:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* =====================================================
   17. FOOTER
   ===================================================== */
#mainFooter {
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 72px 0 0;
}

.footer-logo {
  margin-bottom: 22px;
}

/* Logo en footer — sobre pill blanca para contraste */
.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

.footer-logo-img:hover {
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.30);
  transform: translateY(-2px);
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.footer-brand-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
}

.footer-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.78;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.70);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.footer-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links a i {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.footer-links a:hover i {
  color: rgba(255, 255, 255, 0.80);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.05rem;
}

.footer-contact-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer-contact-text strong {
  display: block;
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 52px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* =====================================================
   18. CTA SECTION — overrides para texto sobre fondo azul
   ===================================================== */
.cta-section .section-label {
  color: rgba(255, 255, 255, 0.70);
}

.cta-section .section-label::before {
  background: rgba(255, 255, 255, 0.50);
}

.cta-section h1,
.cta-section h2,
.cta-section h3 {
  color: #fff;
}

.cta-section .divider-accent {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
}

/* =====================================================
   19. FLOATING WHATSAPP BUTTON (Mobile & Desktop UX)
   ===================================================== */
.btn-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1040;
  background: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-floating-whatsapp i {
  font-size: 1.5rem;
}

.btn-floating-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.60);
  color: #ffffff !important;
}

/* =====================================================
   20. RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {

  /* Mobile navbar */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 18px 16px;
    margin-top: 12px;
    max-height: 82vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
  }

  .navbar .dropdown-menu.mega-menu {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }

  .hero-bg-icon {
    display: none !important;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-service {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .cta-inner-card {
    padding: 40px 28px;
  }

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

@media (max-width: 575.98px) {
  .section-padding {
    padding: 56px 0;
  }

  /* Hero con navbar compacta en móvil */
  .hero-service {
    padding-top: 90px !important;
    padding-bottom: 48px;
  }

  .hero-text-glass {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .hero-badge {
    font-size: 0.70rem;
    padding: 8px 14px;
    white-space: normal;
    text-align: center;
  }

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

  .hero-service .hero-lead {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }

  .treatment-tabs {
    justify-content: center;
  }

  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    gap: 0;
  }

  .hero-stat {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    border-right: 1px solid var(--color-border) !important;
    margin-right: 0;
  }

  .hero-stat:last-child {
    border-right: none !important;
  }

  .hero-stat-number {
    font-size: 1.25rem !important;
    line-height: 1.1;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .hero-stat-label {
    font-size: 0.64rem !important;
    line-height: 1.2;
    display: block;
  }

  .cta-inner-card {
    padding: 32px 18px;
  }

  /* Prevenir zoom automático en iOS al enfocar inputs */
  .cta-form-field,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Botón flotante responsivo para móvil */
  .btn-floating-whatsapp {
    bottom: 18px;
    left: 18px;
    padding: 12px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    justify-content: center;
  }

  .btn-floating-whatsapp i {
    font-size: 1.8rem;
  }

  .btn-floating-text {
    display: none;
  }
}