/* ==========================================================================
   PUBLIPATIA MÉDICOS - DESIGN SYSTEM & STYLES (REDISEÑO DE AGENCIA TOP)
   Concepto: Minimalismo Médico de Precisión, Hospital Boutique / Swiss Precision
   Paleta: Blanco Nieve, Azul Marino (#084063), Turquesa Médico (#5BB2B6),
           Azul Cielo Eléctrico (#38BDF8), Azabache Quirúrgico (#070D14)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS (LIGHT & DARK MODES)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Base - Modo Claro */
  --bg-body: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-2: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-topbar: #084063;

  /* Textos */
  --text-primary: #0A141F;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Identidad de Marca */
  --brand-navy: #084063;
  --brand-navy-rgb: 8, 64, 99;
  --brand-teal: #5BB2B6;
  --brand-teal-rgb: 91, 178, 182;
  --brand-teal-light: rgba(91, 178, 182, 0.12);
  --brand-teal-border: rgba(91, 178, 182, 0.28);

  /* Acentos Médicos */
  --accent-blue: #0284C7;
  --accent-blue-hover: #0369A1;
  --accent-blue-subtle: #E0F2FE;
  --accent-blue-border: #BAE6FD;

  /* Estados */
  --whatsapp-color: #25D366;
  --whatsapp-hover: #20BD5A;
  --whatsapp-dark: #075E54;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Bordes & Líneas */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-focus: #0284C7;

  /* Sombras de Ultra Alta Gama */
  --shadow-xs: 0 1px 2px 0 rgba(10, 20, 31, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(10, 20, 31, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(8, 64, 99, 0.06), 0 2px 6px -1px rgba(8, 64, 99, 0.03);
  --shadow-lg: 0 16px 40px -8px rgba(8, 64, 99, 0.08), 0 4px 12px -2px rgba(8, 64, 99, 0.03);
  --shadow-xl: 0 28px 64px -12px rgba(8, 64, 99, 0.12), 0 8px 24px -4px rgba(8, 64, 99, 0.04);
  --shadow-glow: 0 0 32px rgba(91, 178, 182, 0.25);
  --shadow-glow-blue: 0 0 32px rgba(2, 132, 199, 0.25);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(20px);

  /* Tipografías */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Geometría y Layout */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  --container-width: 1260px;
  --header-height: 84px;

  /* Transición */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Ajuste de logo para modo claro */
  --logo-filter: none;
  --logo-text-color: #084063;
}

/* --------------------------------------------------------------------------
   MODO OSCURO (DARK MODE)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-body: #070D14;
  --bg-surface: #0C1520;
  --bg-surface-2: #111D2C;
  --bg-card: #0F1A27;
  --bg-card-hover: #142233;
  --bg-elevated: #162638;
  --bg-topbar: #050A10;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-light: #475569;
  --text-inverse: #070D14;

  --brand-navy: #38BDF8;
  --brand-navy-rgb: 56, 189, 248;
  --brand-teal: #5BB2B6;
  --brand-teal-light: rgba(91, 178, 182, 0.16);
  --brand-teal-border: rgba(91, 178, 182, 0.35);

  --accent-blue: #38BDF8;
  --accent-blue-hover: #7DD3FC;
  --accent-blue-subtle: rgba(56, 189, 248, 0.12);
  --accent-blue-border: rgba(56, 189, 248, 0.28);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #38BDF8;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 28px 64px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(91, 178, 182, 0.3);
  --shadow-glow-blue: 0 0 35px rgba(56, 189, 248, 0.25);

  --glass-bg: rgba(12, 21, 32, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Inversión sutil para logos monocromos */
  --logo-filter: brightness(0) invert(1);
  --logo-text-color: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
  background-color: var(--brand-teal);
  color: #FFFFFF;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* Contenedor Responsivo */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA Y JERARQUÍAS VISUALES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

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

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--brand-teal-light);
  border: 1px solid var(--brand-teal-border);
  border-radius: var(--radius-full);
  font-size: 0.785rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .section-badge {
  color: #5BB2B6;
}

.section-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   4. TOP BAR INFORMATIVA
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--bg-topbar);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #CBD5E1;
  font-weight: 500;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: var(--brand-teal);
  stroke-width: 2.2;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: var(--brand-teal);
}

.top-bar-link svg {
  width: 15px;
  height: 15px;
  color: var(--brand-teal);
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVEGACIÓN PRINCIPAL (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-medium);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Marca / Logo */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  user-select: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
}

.brand-logo-dark {
  display: none;
}

.brand-logo-light {
  display: block;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(91, 178, 182, 0.3));
}

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

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-top: 0.2rem;
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-2);
}

.nav-link.active {
  color: var(--accent-blue);
  font-weight: 600;
  background-color: var(--accent-blue-subtle);
}

/* Acciones en Header: Theme Toggle + Agendar Cita */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border-color: var(--accent-blue-border);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-bounce), opacity var(--transition-fast);
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Botón CTA Header */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-blue) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .btn-header-cta {
  background: linear-gradient(135deg, #0284C7 0%, var(--brand-teal) 100%);
  color: #070D14;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
}

/* Hamburguesa Móvil */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background-color: var(--bg-surface-2);
}

@media (max-width: 1040px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-body);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    gap: 0.75rem;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    width: 100%;
    font-size: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
  }

  .hamburger-btn {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   6. BOTONES PRIMARIOS Y SECUNDARIOS
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-blue) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.985rem;
  font-weight: 600;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
  border: none;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, var(--brand-teal) 100%);
  color: #070D14;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.985rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-2);
  border-color: var(--border-focus);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-outline-blue:hover {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (ULTRA PREMIUM & MINIMALISTA)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

/* Fondos sutiles de ambiente (Glow Orbs) */
.hero-bg-glow-1 {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 178, 182, 0.16) 0%, rgba(91, 178, 182, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow-2 {
  position: absolute;
  bottom: 0;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-xs);
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-teal);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--brand-teal);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-bottom: 2.75rem;
}

/* Indicador de Video Reservado (Requisito Explícito) */
.hero-video-reservation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--brand-teal-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-video-reservation-banner:hover {
  background-color: var(--brand-teal-light);
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}

.video-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.video-play-pulse-btn {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(91, 178, 182, 0.4);
}

[data-theme="dark"] .video-play-pulse-btn {
  background: linear-gradient(135deg, #0284C7 0%, var(--brand-teal) 100%);
  color: #070D14;
}

.video-play-pulse-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.video-banner-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.video-banner-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-banner-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-teal);
  background-color: var(--brand-teal-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Trust list del Hero */
.hero-trust-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-teal);
}

/* Columna Visual Derecha */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 490px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.hero-image-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-wrapper:hover .hero-image-frame img {
  transform: scale(1.03);
}

/* Tarjetas Flotantes Hero */
.floating-card {
  position: absolute;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  z-index: 2;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  animation: floatSlow 6s ease-in-out infinite alternate;
}

.floating-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.floating-card-1 {
  bottom: 35px;
  left: -35px;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 40px;
  right: -25px;
  animation-delay: 2.5s;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card-icon svg {
  width: 22px;
  height: 22px;
}

.floating-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.floating-card-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-visual-wrapper {
    order: -1;
  }

  .hero-image-frame img {
    height: 440px;
  }

  .floating-card-1 {
    left: 10px;
    bottom: 20px;
  }

  .floating-card-2 {
    right: 10px;
    top: 20px;
  }
}

/* --------------------------------------------------------------------------
   8. MÉTRICAS CLAVE (CONTADORES ANIMADOS)
   -------------------------------------------------------------------------- */
.metrics-strip {
  padding: 3.5rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.metric-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-accent {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--brand-teal);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 200px;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   9. ESPECIALIDADES MÉDICAS (8 TARJETAS REFINADAS & FILTROS)
   -------------------------------------------------------------------------- */
.specialties-section {
  padding: 7.5rem 0;
  background-color: var(--bg-body);
  position: relative;
}

.specialties-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
}

.filter-tab {
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background-color: var(--bg-surface-2);
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 14px rgba(8, 64, 99, 0.25);
}

[data-theme="dark"] .filter-tab.active {
  background-color: var(--accent-blue);
  color: #070D14;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--accent-blue) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-teal-border);
}

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

.specialty-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.specialty-card:hover .specialty-icon-box {
  transform: scale(1.1) rotate(-4deg);
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.specialty-icon-box svg {
  width: 28px;
  height: 28px;
}

.specialty-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.specialty-card-text {
  font-size: 0.915rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.specialty-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.specialty-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.specialty-feature-item svg {
  width: 15px;
  height: 15px;
  color: var(--brand-teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.specialty-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.specialty-action-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.specialty-card:hover .specialty-action-btn {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.specialty-card:hover .specialty-action-btn svg {
  transform: translateX(4px);
}

@media (max-width: 1180px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. SOBRE NOSOTROS & PILARES DE EXCELENCIA + GALERÍA DE INSTALACIONES
   -------------------------------------------------------------------------- */
.why-us-section {
  padding: 7.5rem 0;
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4.5rem;
}

.why-us-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.pillar-item {
  background-color: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand-teal-border);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.pillar-icon-box svg {
  width: 24px;
  height: 24px;
}

.pillar-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Showcase de Instalaciones & Selector */
.why-us-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.facilities-showcase-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.facilities-image-frame {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
}

.facilities-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.facilities-gallery-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.facility-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.facility-tab-btn.active {
  background-color: var(--brand-teal-light);
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.facility-tab-btn:hover:not(.active) {
  background-color: var(--bg-surface-2);
  color: var(--text-primary);
}

.facilities-overlay-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1.25rem 1.5rem;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.facilities-overlay-text {
  display: flex;
  flex-direction: column;
}

.facilities-overlay-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.facilities-overlay-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 1040px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 640px) {
  .why-us-pillars {
    grid-template-columns: 1fr;
  }

  .facilities-overlay-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   11. CUERPO MÉDICO (ESPECIALISTAS CON CÉDULAS Y HORARIOS)
   -------------------------------------------------------------------------- */
.team-section {
  padding: 7.5rem 0;
  background-color: var(--bg-body);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.doctor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-teal-border);
}

.doctor-image-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.doctor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .doctor-image-wrapper img {
  transform: scale(1.05);
}

.doctor-specialty-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 0.35rem 0.95rem;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.doctor-info {
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.doctor-title-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 1.15rem;
}

.doctor-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.doctor-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.doctor-meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.doctor-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.btn-book-doctor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.btn-book-doctor:hover {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
}

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

@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   12. TESTIMONIOS (SOCIAL PROOF ELEGANTE)
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 7.5rem 0;
  background-color: var(--bg-surface);
  position: relative;
}

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

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

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

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #F59E0B;
  color: #F59E0B;
}

.testimonial-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar-text {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--accent-blue) 100%);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

@media (max-width: 990px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   13. PREGUNTAS FRECUENTES (FAQ ACORDEÓN SUAVE)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 7.5rem 0;
  background-color: var(--bg-body);
}

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

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: var(--brand-teal-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-teal);
  transition: transform var(--transition-bounce);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.935rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   14. SECCIÓN CONTACTO & AGENDAMIENTO
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 7.5rem 0;
  background-color: var(--bg-surface);
  position: relative;
}

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

.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.contact-detail-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-detail-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-detail-val a {
  color: var(--accent-blue);
}

.contact-detail-val a:hover {
  text-decoration: underline;
}

.contact-detail-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Mapa Embed */
.clinic-map-container {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

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

/* Tarjeta Formulario de Agendamiento */
.booking-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-subtitle {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

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

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-blue-subtle);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-privacy-note svg {
  width: 15px;
  height: 15px;
  color: var(--brand-teal);
  flex-shrink: 0;
}

.btn-submit-booking {
  width: 100%;
  padding: 1.05rem;
  font-size: 1rem;
}

@media (max-width: 1040px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-form-card {
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   15. FOOTER ELEGANTE DE AGENCIA TOP
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #070D14;
  color: #94A3B8;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.footer-logo-title {
  color: #FFFFFF;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

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

.footer-link {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link:hover {
  color: #38BDF8;
  transform: translateX(4px);
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.footer-hours-row span:first-child {
  color: #CBD5E1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748B;
}

.footer-legal-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal-badge span:hover {
  color: #CBD5E1;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   16. WIDGET FLOTANTE DE WHATSAPP (TOOLTIP COMERCIAL & PULSO)
   -------------------------------------------------------------------------- */
.whatsapp-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  z-index: 990;
}

.whatsapp-tooltip {
  width: 290px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  animation: slideTooltip 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideTooltip {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

.whatsapp-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.whatsapp-tooltip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.whatsapp-tooltip-close {
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem;
}

.whatsapp-tooltip-close:hover {
  color: var(--text-primary);
}

.whatsapp-tooltip-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.whatsapp-tooltip-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #16A34A;
  background-color: rgba(37, 211, 102, 0.1);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.whatsapp-tooltip-phone:hover {
  background-color: #25D366;
  color: #FFFFFF;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  position: relative;
}

.whatsapp-float-btn::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: pulseWa 2s infinite;
}

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

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

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   17. MODAL DE AGENDAMIENTO & MODAL DE VIDEO RESERVADO
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 13, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-smooth);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close-btn:hover {
  background-color: var(--border-medium);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   18. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--brand-navy);
  color: #FFFFFF;
  padding: 0.95rem 1.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1100;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[data-theme="dark"] .toast-notification {
  background-color: #0E1A29;
  border: 1px solid var(--brand-teal-border);
  color: #F8FAFC;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification svg {
  width: 18px;
  height: 18px;
  color: var(--brand-teal);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   19. ANIMACIONES AL HACER SCROLL (FADE IN UP & REVEAL)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Retrasos escalonados */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
