/* ==========================================================================
   UROELITE — DESIGN SYSTEM & CORE STYLES (2026 HEALTHCARE UI/UX)
   Estilo: Light Mode Clínico Puro + Glassmorfismo Suave + Fluid Typography
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-new(root) {
  animation-name: clinical-fade-in;
}

::view-transition-old(root) {
  animation-name: clinical-fade-out;
}

@keyframes clinical-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes clinical-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* --- DESIGN TOKENS --- */
:root {
  /* Paleta Clínica Light Mode Puro */
  --color-bg: #FAFCFF;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F3F7FC;
  --color-surface-glass: rgba(255, 255, 255, 0.84);
  --color-surface-glass-card: rgba(255, 255, 255, 0.72);

  --color-primary-900: #0A1E36;
  /* Azul Noche Médico (Encabezados) */
  --color-primary-700: #103B6B;
  /* Azul Clínico Principal */
  --color-primary-600: #1B5699;
  /* Azul Interactivo */
  --color-primary-500: #1E51D4;
  /* Acento CTA con alto contraste (>4.8:1) */
  --color-primary-100: #EBF3FE;

  --color-teal-700: #0F766E;
  /* Verde Quirúrgico / Láser */
  --color-teal-600: #0F766E;
  /* Alto contraste para tags y acentos (>5.6:1) */
  --color-teal-50: #F0FDFA;

  --color-text-main: #1E293B;
  --color-text-muted: #334155;
  --color-text-light: #475569;

  --color-border: rgba(16, 59, 107, 0.09);
  --color-border-focus: rgba(30, 81, 212, 0.4);

  /* Tipografía Fluida (Clamp) */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.08rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.2vw, 2.35rem);
  --text-4xl: clamp(2.25rem, 1.85rem + 1.8vw, 3.15rem);
  --text-5xl: clamp(2.75rem, 2.2rem + 2.5vw, 4rem);

  /* Sombras y Elevaciones Clínicas */
  --shadow-xs: 0 1px 2px rgba(10, 30, 54, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(10, 30, 54, 0.06), 0 2px 4px -1px rgba(10, 30, 54, 0.03);
  --shadow-md: 0 12px 28px -6px rgba(10, 30, 54, 0.08), 0 4px 10px -4px rgba(10, 30, 54, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(10, 30, 54, 0.11), 0 8px 16px -6px rgba(10, 30, 54, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(16, 59, 107, 0.07);

  /* Radios de Borde */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transiciones */
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

/* Enlaces y Botones accesibles */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Indicadores de foco universales accesibles (WCAG AA/AAA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary-500) !important;
  outline-offset: 3px !important;
}

/* --- UTILITY & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* --- SCROLL NARRATIVO (REVEAL ANIMATIONS) --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos escalonados para tarjetas */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* --- HEADER GLASSMORFISMO SUAVE --- */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

/* Footer Logo Image */
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

/* Navegación Principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-600);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-900);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Switch de Idiomas Multilingüe (ES | EN | CA) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  color: var(--color-primary-900);
}

.lang-btn.active {
  background: var(--color-surface);
  color: var(--color-primary-700);
  box-shadow: var(--shadow-xs);
}

/* Botones y CTAs Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-600));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 59, 107, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 59, 107, 0.32);
  background: linear-gradient(135deg, var(--color-primary-600), #1E62AD);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-primary-700);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-primary-600);
  transform: translateY(-1px);
}

/* Acciones de Cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-only-item {
  display: none;
}

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary-900);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

/* Fondo decorativo clínico sutil */
.hero-bg-glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.badge-clinical {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-teal-50);
  color: var(--color-teal-700);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid rgba(13, 148, 136, 0.18);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-primary-900);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-item svg {
  color: var(--color-teal-600);
  flex-shrink: 0;
}

/* Hero Card Derecha (Ilustración & Métricas Glass) */
.hero-visual {
  position: relative;
}

.clinical-card-main {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.doctor-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.doctor-avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-teal-50);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.doctor-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}


.doctor-info h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-900);
}

.doctor-info p {
  font-size: var(--text-xs);
  color: var(--color-teal-700);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-box {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.stat-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary-900);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Tarjeta Flotante Glassmorphism */
.floating-glass-badge {
  position: absolute;
  bottom: -18px;
  left: -20px;
  background: var(--color-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 270px;
}

.glass-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- SECCIÓN TRATAMIENTOS & PROCEDIMIENTOS --- */
.section-padding {
  padding: 6.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-teal-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary-900);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .treatments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta de Tratamiento Premium */
.treatment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-teal-600));
  opacity: 0;
  transition: var(--transition-smooth);
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 86, 153, 0.22);
}

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

.treatment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.treatment-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.treatment-card:hover .treatment-icon-box {
  background: var(--color-primary-700);
  color: white;
}

.treatment-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-teal-50);
  color: var(--color-teal-700);
}

.treatment-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 0.75rem;
}

.treatment-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.treatment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag-item {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: var(--color-surface-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Microinteracción: Botón Ver Explicación Médica + YouTube */
.treatment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.btn-video-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-100);
  transition: var(--transition-smooth);
}

.btn-video-modal:hover {
  background: var(--color-primary-700);
  color: white;
  box-shadow: 0 4px 10px rgba(16, 59, 107, 0.2);
}

.btn-video-modal svg {
  transition: transform 0.2s ease;
}

.btn-video-modal:hover svg {
  transform: scale(1.15);
}

.btn-details {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
}

.btn-details:hover {
  color: var(--color-primary-900);
}

/* --- MODAL CLÍNICO Y DE VÍDEO YOUTUBE --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 54, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-900);
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--color-primary-900);
  color: white;
}

.modal-body {
  padding: 2rem;
}

.video-responsive-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- EQUIPO MÉDICO DE ÉLITE --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doctor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  transition: var(--transition-smooth);
}

@media (min-width: 640px) {
  .doctor-card {
    padding: 2.25rem;
    grid-template-columns: 140px 1fr;
    gap: 1.75rem;
  }
}

.doctor-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.3);
}

.doctor-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--color-surface-subtle);
  margin: 0 auto;
}

.doctor-role {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-teal-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.doctor-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 0.5rem;
}

.doctor-credentials {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}


/* --- ESTILOS ESPECÍFICOS PARA EL CARRUSEL DEL INICIO --- */
.team-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .team-slider-wrapper {
    padding: 0 64px; /* Space for the arrows */
  }
}

.team-grid-homepage {
  display: flex !important;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 2rem;
  padding-bottom: 2rem;
  padding-top: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
}

.team-grid-homepage::-webkit-scrollbar {
  display: none;
}

.team-grid-homepage .doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 calc(100% - 2rem); /* mobile width */
  max-width: 450px;
  scroll-snap-align: start;
  height: auto;
  align-self: stretch;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-grid-homepage .doctor-card > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  justify-content: flex-start;
}

.team-grid-homepage .doctor-card .btn-ver-todos {
  margin-top: auto;
}

@media (min-width: 1024px) {
  .slider-nav-btn {
    display: flex;
  }
  .team-grid-homepage .doctor-card {
    /* Exacactly 3 cards visible in the row */
    flex: 0 0 calc(33.333% - 1.333rem);
    max-width: none;
  }
}

/* Flechas de navegación */
.slider-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  color: var(--color-primary-600);
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: var(--color-primary-600);
  color: white;
}

.slider-nav-btn.prev {
  left: 0;
}

.slider-nav-btn.next {
  right: 0;
}

/* --- FILOSOFÍA Y PILARES CLÍNICOS (QUIÉNES SOMOS) --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.philosophy-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary-600);
  margin-bottom: 0.5rem;
}

.philosophy-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-900);
}

.philosophy-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.accreditation-bar {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
}

.accreditation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.accreditation-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-900);
}

.accreditation-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- SECCIÓN PREGUNTAS FRECUENTES (FAQs) --- */
.faq-section {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: var(--color-primary-600);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary-900);
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary-600);
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
  background: var(--color-primary-600);
  color: #ffffff;
}

.faq-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
  padding-top: 1rem;
}

/* --- SECCIÓN CONTACTO Y CITA MÉDICA --- */
.contact-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-subtle) 100%);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Formulario Médico Glassmorphism */
.medical-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-900);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-600);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- FOOTER MULTILINGÜE --- */
.site-footer {
  background: var(--color-primary-900);
  color: #FFFFFF;
  padding: 4.5rem 0 2rem;
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 1rem;
  font-size: var(--text-xs);
  max-width: 320px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.2s ease;
  font-size: var(--text-xs);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Botón de búsqueda y selector con bandera como en la foto */
.search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary-900);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.search-icon-btn:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-600);
  transform: scale(1.05);
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary-900);
}

/* --- HERO CON VIDEO BACKGROUND (video_hero.mp4) COMO EN LA FOTO --- */
.hero-video-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(162, 165, 199, 0.514);
  z-index: 1;
}

.hero-grid-photo {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-main-content {
  color: var(--color-text-main);
}

.hero-main-content .hero-title {
  color: var(--color-primary-900);
  font-size: clamp(2.2rem, 1.8rem + 2.1vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-main-content .hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Caja de WhatsApp en el Hero como en la foto */
.whatsapp-hero-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  max-width: 440px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.wa-box-header {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa-btn-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, #2E7D32, #48BB78);
  color: #FFFFFF;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
  transition: var(--transition-smooth);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.wa-btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.45);
  background: linear-gradient(135deg, #256B28, #3EA368);
}

.wa-btn-pill svg {
  flex-shrink: 0;
}

.hero-online-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.75rem;
  display: inline-block;
}

.link-underline {
  color: #5EEAD4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.link-underline:hover {
  color: #FFFFFF;
}

/* Tarjeta derecha del Hero (Mini Cápsulas ¡NOVEDAD!) exactamente como en la foto */
.novedad-hero-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #3B6B4C;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

@media (min-width: 640px) {
  .novedad-hero-card {
    flex-direction: row;
    min-height: 280px;
  }
}

.novedad-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.novedad-card-media {
  position: relative;
  flex: 1;
  min-height: 180px;
  background-color: #1E293B;
  overflow: hidden;
}

.novedad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.novedad-hero-card:hover .novedad-card-media img {
  transform: scale(1.06);
}

.novedad-card-content {
  flex: 1.25;
  background: linear-gradient(135deg, #447D58, #346043);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
}

.novedad-tag {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.novedad-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #E2FBF0;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.novedad-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-capsula {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  align-self: flex-start;
}

.btn-capsula:hover {
  background: #FFFFFF;
  color: #2E563B;
  border-color: #FFFFFF;
}

/* ==========================================================================
   PREMIUM HERO CAROUSEL SECTION (UROELITE DESIGN SYSTEM)
   ========================================================================== */
.hero-carousel-section {
  position: relative;
  width: 100%;
  height: clamp(720px, 85vh, 800px);
  overflow: hidden;
  background-color: var(--color-primary-900);
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-carousel-section {
    height: 560px;
  }
}

@media (max-width: 640px) {
  .hero-carousel-section {
    height: 480px;
  }
}

.hero-carousel-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 30, 54, 0.88) 0%, rgba(10, 30, 54, 0.68) 48%, rgba(15, 118, 110, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 30, 54, 0.35) 0%, rgba(10, 30, 54, 0) 25%, rgba(10, 30, 54, 0.55) 100%);
  z-index: 2;
}

.hero-slide-container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.hero-slide-content {
  max-width: 520px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-slide-title {
  font-size: clamp(2.4rem, 2rem + 2.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin: 0;
}

.hero-slide-desc {
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-weight: 400;
}

.hero-slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

/* Staggered Animations */
.hero-slide .badge-clinical,
.hero-slide .hero-slide-title,
.hero-slide .hero-slide-desc,
.hero-slide .hero-slide-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .badge-clinical {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
  transition-duration: 700ms;
}

.hero-slide.is-active .hero-slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 240ms;
  transition-duration: 750ms;
}

.hero-slide.is-active .hero-slide-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 360ms;
  transition-duration: 750ms;
}

.hero-slide.is-active .hero-slide-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 480ms;
  transition-duration: 750ms;
}

/* Navigation Arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 30, 54, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-arrow-prev {
  left: 2.25rem;
}

.hero-arrow-next {
  right: 2.25rem;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
  background: var(--color-primary-700);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(13, 148, 136, 0.35);
  outline: none;
}

.hero-slider-arrow:focus-visible {
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--color-primary-600);
}

/* Pagination Indicators */
.hero-carousel-pagination {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.hero-dot {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot:hover::after {
  background: rgba(255, 255, 255, 0.85);
}

.hero-dot.is-active::after {
  width: 32px;
  background: #FFFFFF;
  box-shadow: 0 0 14px rgba(27, 86, 153, 0.9);
}

.hero-dot:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-slide-content {
    max-width: 480px;
  }

  .hero-arrow-prev {
    left: 1.25rem;
  }

  .hero-arrow-next {
    right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-slide-container {
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }

  .hero-slide-content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .hero-slide-title {
    font-size: clamp(1.8rem, 1.5rem + 3vw, 2.4rem);
  }

  .hero-slide-desc {
    font-size: var(--text-sm);
  }

  .hero-slide-cta {
    justify-content: center;
    width: 100%;
  }

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

  .hero-slider-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-arrow-prev {
    left: 0.75rem;
  }

  .hero-arrow-next {
    right: 0.75rem;
  }

  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(10, 30, 54, 0.82) 0%, rgba(10, 30, 54, 0.88) 50%, rgba(15, 118, 110, 0.75) 100%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .hero-slide,
  .hero-slide-bg,
  .hero-slide .badge-clinical,
  .hero-slide .hero-slide-title,
  .hero-slide .hero-slide-desc,
  .hero-slide .hero-slide-cta,
  .hero-slider-arrow,
  .hero-dot {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #2E7D32, #48BB78);
  color: #FFFFFF;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.45);
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: wa-pulse 2.5s infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.6);
  animation: none;
}

.wa-pulse-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-btn-text {
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(72, 187, 120, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
  }
}

/* --- NUEVAS SECCIONES PREPARADAS: CÁPSULAS & BLOG & TRABAJA CON NOSOTROS --- */
.capsulas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .capsulas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capsulas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.capsula-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.capsula-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-600);
}

.capsula-thumb {
  position: relative;
  height: 165px;
  background: var(--color-primary-900);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsula-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.4s ease;
}

.capsula-card:hover .capsula-thumb img {
  transform: scale(1.08);
}

.capsula-play-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.capsula-card:hover .capsula-play-btn {
  transform: scale(1.15);
  background: var(--color-primary-600);
}

.capsula-info {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.capsula-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.capsula-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}



/* Modales de búsqueda y configuración WhatsApp */
.wa-config-modal-content {
  text-align: center;
  padding: 2.5rem !important;
}

.wa-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #2E7D32;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* --- RESPONSIVE ADAPTATIONS --- */
@media (max-width: 992px) {
  .hero-grid-photo {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open {
    transform: translateY(0);
  }

  .mobile-only-item {
    display: block;
    width: 100%;
  }

  .header-cta-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
  }

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

  .brand-logo-img {
    height: 40px;
  }

  .footer-logo-img {
    height: 36px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .floating-glass-badge {
    display: none;
  }

  .wa-btn-text {
    display: none;
    /* En móvil muestra solo el icono del botón flotante redondo */
  }

  .floating-whatsapp-btn {
    padding: 0.9rem;
    border-radius: 50%;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .brand-logo-img {
    height: 34px;
  }

  .footer-logo-img {
    height: 32px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .lang-btn {
    padding: 2px 6px;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   ESTILOS DE PÁGINAS LEGALES Y POLÍTICA DE PRIVACIDAD (ESTILO CLÍNICO PREMIUM)
   ========================================================================== */
.legal-header {
  background: var(--color-surface-subtle);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-primary-600);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.breadcrumb a:hover {
  color: var(--color-primary-900);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.legal-container {
  max-width: 960px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3.5rem;
}

.legal-section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--color-primary-100);
  padding-bottom: 0.75rem;
}

.legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.legal-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
}

.legal-table th,
.legal-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.legal-table th {
  background: var(--color-surface-subtle);
  color: var(--color-primary-900);
  font-weight: 600;
  width: 28%;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-callout {
  background: var(--color-primary-100);
  border-left: 4px solid var(--color-primary-600);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  color: var(--color-primary-900);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-size: var(--text-base);
  box-shadow: var(--shadow-xs);
}

.treatment-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.treatment-data-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.treatment-data-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 81, 212, 0.25);
}

.treatment-data-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.treatment-data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--text-sm);
}

.treatment-data-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 0.75rem;
}

.treatment-data-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.treatment-data-label {
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.treatment-data-value {
  color: var(--color-text-main);
  line-height: 1.5;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.right-item-card {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}

.right-item-card:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-600);
}

.right-item-title {
  font-weight: 700;
  color: var(--color-primary-900);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.right-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.dpo-box {
  background: var(--color-surface);
  border: 2px solid var(--color-teal-600);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.dpo-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .legal-table td {
    padding-top: 0.25rem;
    padding-bottom: 1.25rem;
  }

  .treatment-data-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .dpo-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   COOKIE PREFERENCES MODAL & OVERLAY (UROELITE DESIGN SYSTEM)
   ========================================================================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  position: relative;
}

.cookie-modal-overlay.active .cookie-modal-container {
  transform: translateY(0) scale(1);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cookie-modal-close:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
}

.cookie-option-item {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-option-name {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: var(--text-md);
}

.cookie-option-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Custom Switch Toggle */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .cookie-switch-slider {
  background-color: var(--color-primary-600);
}

input:checked + .cookie-switch-slider:before {
  transform: translateX(20px);
}

input:disabled + .cookie-switch-slider {
  background-color: var(--color-primary-600);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal-actions {
    flex-direction: column;
  }
  .cookie-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer links divider and button formatting for 100/100 Accessibility & SEO */
.footer-legal-links a,
.footer-legal-links button {
  color: #CBD5E1;
  text-decoration: none;
  transition: var(--transition-smooth);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-legal-links span {
  color: #64748B;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Accessibility Utility for Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  text-align: center;
  word-break: break-word;
  border-width: 0;
}
/* --- TEAM CAROUSEL --- */
.team-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0 3rem 0;
}

.team-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.team-carousel-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .team-carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .team-carousel-slide {
    flex: 0 0 33.333%;
  }
}

/* Redefiniendo el contenido de la clinical-card para la biografía */
.team-carousel-slide .clinical-card-main {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-carousel-slide .doctor-bio {
  flex: 1;
  padding: 1.5rem;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-carousel-slide .btn-details {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
}

.team-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.team-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
}

.team-carousel-dot.active {
  background-color: var(--color-primary);
}


h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
