@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* variables del sistema de diseño */
:root {
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Colores usando HSL para flexibilidad */
  --color-primary-hue: 207;
  --color-primary-sat: 64%;
  --color-primary-light: 11%;
  
  --primary: hsl(var(--color-primary-hue), var(--color-primary-sat), var(--color-primary-light)); /* #0A1E2E */
  --primary-light: hsl(var(--color-primary-hue), var(--color-primary-sat), 18%);
  
  --accent: hsl(205, 72%, 38%); /* #1B6CA8 */
  --accent-hover: hsl(205, 72%, 30%);
  --accent-light: hsl(217, 90%, 95%); /* #E8F0FE */
  
  --bg-light: hsl(210, 40%, 97%); /* #F4F7FA */
  --bg-white: #ffffff;
  
  --text-dark: hsl(220, 40%, 12%);
  --text-muted: hsl(220, 15%, 45%);
  --text-white: #ffffff;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 30px rgba(10, 30, 46, 0.08);
  
  --container-max: 1280px;

  /* Tokens para botones */
  --btn-blue:        #1B6CA8;
  --btn-blue-hover:  #155a8e;
  --btn-blue-light:  #2E86DE;
  --btn-orange:      #E67E22;
  --btn-orange-hover:#D35400;
  --btn-radius:      8px;
  --btn-radius-pill: 100px;
  --btn-transition:  background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Reset general */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, .btn {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* SISTEMA DE BOTONES PREMIUM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--btn-transition);
}

/* 1. Primario — btn-primary */
.btn-primary {
  background: var(--btn-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 108, 168, 0.25);
}

.btn-primary:hover {
  background: var(--btn-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 108, 168, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(27, 108, 168, 0.4);
  outline-offset: 2px;
}

/* Tamaños */
.btn.sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn.lg {
  padding: 15px 32px;
  font-size: 15px;
}

/* 2. Secundario / Ghost — btn-ghost */
.btn-ghost {
  background: transparent;
  color: var(--btn-blue);
  border: 1.5px solid var(--btn-blue);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--btn-blue);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* Variante oscura (para fondos oscuros como el hero) */
.btn-ghost.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* 3. Texto / enlace — btn-text */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--btn-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  text-decoration: none;
  transition: var(--btn-transition);
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--btn-blue);
  transition: right 0.25s ease;
}

.btn-text:hover::after {
  right: 0;
}

/* Variante sobre fondo oscuro para btn-text */
.btn-text.btn-text-dark {
  color: rgba(255, 255, 255, 0.65);
}

.btn-text.btn-text-dark::after {
  background: rgba(255, 255, 255, 0.5);
}

.btn-text.btn-text-dark:hover {
  color: #fff;
}

/* 4. Pill — btn-pill */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--btn-radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--btn-transition);
}

/* Variante sólida */
.btn-pill.solid {
  background: var(--btn-blue);
  color: #fff;
}

.btn-pill.solid:hover {
  background: var(--btn-blue-hover);
  transform: translateY(-1px);
}

/* Variante outline */
.btn-pill.outline {
  background: transparent;
  color: var(--btn-blue);
  border: 1.5px solid var(--btn-blue);
}

.btn-pill.outline:hover {
  background: var(--btn-blue);
  color: #fff;
}

/* 5. WhatsApp — btn-wa */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--btn-transition);
}

.btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* Flotante WhatsApp */
.btn-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 999;
}

/* 6. Con badge — btn-icon-badge */
.btn-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--btn-transition);
}

.btn-icon-badge:hover {
  background: var(--btn-blue-hover);
  transform: translateY(-1px);
}

.btn-icon-badge .badge {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 7. Estados del sistema */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: #D1D5DB !important;
  color: #9CA3AF !important;
  border-color: #D1D5DB !important;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
  box-shadow: none !important;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Botones Naranja Destacados (CTA de Cabecera y Hero) */
#hero-cta-cita,
#cta-header-desktop {
  background: var(--btn-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

#hero-cta-cita:hover,
#cta-header-desktop:hover {
  background: var(--btn-orange-hover);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.45);
  transform: translateY(-1px);
}

#hero-cta-cita:active,
#cta-header-desktop:active {
  transform: scale(0.98);
}

/* HEADER STICKY */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 24px 0;
  background: transparent;
}

.header.scrolled {
  background: var(--bg-white);
  box-shadow: var(--shadow-subtle);
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1800px;
  padding-left: 40px;
  padding-right: 40px;
}

.logo-link {
  display: block;
}

.logo-img {
  width: 160px;
  height: auto;
  transition: var(--transition-smooth);
  filter: brightness(1) invert(0);
}

/* Transición del logo para cuando el fondo del hero es oscuro */
.header:not(.scrolled) .logo-img {
  /* Si el logo original tiene fondo blanco y estamos sobre fondo transparente en hero oscuro, 
     podríamos aplicar un filtro de luminosidad o mantener el logo legible.
     Para evitar problemas de contraste del logo sobre el hero, podemos usar un sutil overlay o caja blanca en el logo si es necesario. */
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-white);
  position: relative;
  padding: 6px 0;
  text-transform: uppercase;
}

.header.scrolled .nav-link {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

.header:not(.scrolled) .nav-link:hover::after {
  background-color: var(--text-white);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-medium);
  border-radius: 12px;
  padding: 16px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dropdown-link:hover {
  background-color: var(--bg-light);
  color: var(--accent);
  padding-left: 28px;
}

/* CTA de Cabecera */
.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

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

/* Hamburguesa móvil */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.header.scrolled .mobile-toggle span {
  background-color: var(--primary);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* HERO SECTION */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary);
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 48px;
}

/* Overlay gradient — z-index 2, queda debajo de las líneas de fuerza */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, rgba(10, 30, 46, 0.93) 0%, rgba(10, 30, 46, 0.78) 55%, rgba(10, 30, 46, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

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

.hero .container {
  position: relative;
  z-index: 4;           /* encima de líneas de fuerza (3) y overlay (2) */
  width: 100%;
  /* Contenedor extra ancho SÓLO en el hero */
  max-width: 1800px;
  padding: 0 40px;
}

/* ─── GRID DOS COLUMNAS (sólo desktop) ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 680px;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* ─── COLUMNA IZQUIERDA ─── */
.hero-left {
  color: var(--text-white);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  animation: fadeUp 0.7s ease 0.25s both;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 480px;
  animation: fadeUp 0.6s ease 0.45s both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.6s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  animation: fadeUp 0.5s ease 0.75s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
  color: #10B981;
}

/* ─── COLUMNA DERECHA — TARJETA DE CITA ─── */
.hero-right {
  animation: fadeUp 0.7s ease 0.3s both;
}


/* ════════════════════════════════════════════════════
   CANVAS — RED DE PARTÍCULAS CONECTADAS (HERO)
════════════════════════════════════════════════════ */
.hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;           /* encima del overlay ::before (z-index 2) */
  pointer-events: none;
  display: block;
}


.cita-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 24px 22px 22px;
  color: var(--text-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0,0,0,0.15);
  transition: padding 0.3s ease;
}

/* Estructura interna de la tarjeta de cita */
.cita-card__body {
  display: block;
}

@media (min-width: 1025px) {
  .cita-card {
    padding: 28px 28px 26px;
  }

  .cita-card__body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .cita-calendario {
    margin-bottom: 16px;
  }

  .cita-horas {
    margin-bottom: 0;
  }

  /* Apilar teléfono y email en la columna derecha para mayor comodidad */
  .cita-card__col-right .cita-form__row--2col {
    flex-direction: column;
    gap: 10px;
  }

  /* Las horas en desktop con 4 columnas */
  .cita-horas__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cabecera tarjeta */
.cita-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cita-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, #3B82F6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 108, 168, 0.35);
  color: #ffffff;
}

.cita-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2px;
  line-height: 1.2;
}

.cita-card__subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* ─── MINI CALENDARIO ─── */
.cita-calendario {
  margin-bottom: 14px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-nav__btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.cal-nav__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cal-nav__month {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.cal-weekdays .cal-weekend {
  color: hsl(0, 65%, 65%);
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  color: var(--text-dark);
  border: 1px solid transparent;
  user-select: none;
  -webkit-user-select: none;
  min-height: 32px;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--weekend):not(.cal-day--empty) {
  background: hsl(205, 72%, 92%);
  border-color: hsl(205, 72%, 80%);
  color: var(--accent);
}

.cal-day--selected {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent-hover) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27, 108, 168, 0.35);
}

.cal-day--today {
  border-color: var(--accent);
  font-weight: 700;
  color: var(--accent);
  background: hsl(205, 72%, 95%);
}

.cal-day--weekend {
  color: hsl(0, 60%, 75%);
  cursor: not-allowed;
}

.cal-day--disabled {
  color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

.cal-day--empty {
  cursor: default;
}

/* ─── SELECTOR DE HORA ─── */
.cita-horas {
  margin-bottom: 14px;
}

.cita-horas__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cita-horas__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.hora-slot {
  padding: 6px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.hora-slot:hover {
  background: hsl(205, 72%, 92%);
  border-color: hsl(205, 72%, 75%);
  color: var(--accent);
}

.hora-slot.selected {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 108, 168, 0.25);
}

/* ─── FORMULARIO DE DATOS ─── */
.cita-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cita-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cita-form__row--2col {
  flex-direction: row;
  gap: 10px;
}

.cita-form__row--2col .cita-form__field {
  flex: 1;
  min-width: 0;
}

.cita-form__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cita-form__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.cita-form__input {
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.cita-form__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.cita-form__input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.12);
}

.cita-form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.cita-form__select option {
  background: #fff;
  color: var(--text-dark);
}

/* ─── RESUMEN DE SELECCIÓN ─── */
.cita-resumen {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(152, 75%, 96%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.75rem;
  color: hsl(152, 40%, 30%);
}

.cita-resumen svg {
  flex-shrink: 0;
  color: #10B981;
}

/* ─── BOTÓN ENVIAR ─── */
.cita-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #2E86DE 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--btn-transition);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(27, 108, 168, 0.35);
  margin-top: 4px;
}

.cita-submit:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #1B6CA8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(27, 108, 168, 0.5);
}

.cita-submit:active {
  transform: scale(0.98);
}

/* Indicador de scroll animado */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SECCIÓN ¿POR QUÉ CONFIAR EN EL DOCTOR? */
.doctor-trust-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.section-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 45px;
  position: relative;
  display: block;
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.trust-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background-color: var(--primary);
}

.trust-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1); /* Efecto elegante blanco y negro de la captura */
  transition: var(--transition-smooth);
}

.trust-image-wrapper:hover .trust-image {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.trust-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-heading {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.trust-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-paragraphs p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.85;
}

.trust-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Adaptación responsive integrada */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .trust-cta {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
  
  .trust-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .trust-heading {
    font-size: 1.65rem;
    text-align: center;
  }
  
  .section-tagline {
    font-size: 1.15rem;
    margin-bottom: 30px;
    text-align: center;
    display: block;
  }
}

@media (max-width: 768px) {
  .doctor-trust-section {
    padding: 70px 0;
  }
  
  .trust-heading {
    font-size: 1.45rem;
  }
  
  .trust-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ─── SECCIÓN ESPECIALIDADES ─── */
.specialties-section {
  padding: 100px 0;
  background-color: var(--bg-light); /* Fondo gris claro/crema */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.specialties-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-top: -30px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.specialties-subheading {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-weight: 400;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.specialty-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 36px 30px;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.specialty-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(27, 108, 168, 0.12);
  border-color: rgba(27, 108, 168, 0.2);
}

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

.specialty-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(27, 108, 168, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.specialty-card:hover .specialty-icon {
  background: var(--accent);
}

.specialty-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  transition: stroke 0.25s ease;
}

.specialty-card:hover .specialty-icon svg {
  stroke: #ffffff;
}

.specialty-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}

.specialty-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specialty-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

.specialty-arrow {
  margin-top: auto;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.specialty-arrow svg {
  width: 16px;
  height: 16px;
}

.specialty-card:hover .specialty-arrow {
  opacity: 1;
  transform: translateX(6px);
}

.specialties-cta {
  display: flex;
  justify-content: center;
}

/* Responsive Especialidades */
@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .specialties-section {
    padding: 70px 0;
  }
  
  .specialties-heading {
    font-size: 1.8rem;
  }
  
  .specialties-subheading {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .specialty-card {
    padding: 28px 24px;
  }
}

/* ─── SECCIÓN DÓNDE ENCONTRARNOS ─── */
.locations-section {
  padding: 100px 0;
  background-color: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.locations-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-top: -30px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.locations-subheading {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-weight: 400;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.location-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.location-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.location-hospital-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  outline: none;
}

.location-hospital-link:hover .location-hospital {
  color: var(--accent);
}

.location-hospital {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.location-row-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-row strong {
  color: var(--text-dark);
  font-weight: 600;
}

.location-card__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-image-wrapper {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.location-card:hover .location-img {
  transform: scale(1.04);
}

.location-map-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.location-map-wrapper iframe {
  display: block;
}

/* Responsive localizaciones */
@media (max-width: 1200px) {
  .location-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .locations-section {
    padding: 70px 0;
  }
  
  .locations-heading {
    font-size: 1.8rem;
  }
  
  .locations-subheading {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }
  
  .location-card {
    padding: 24px;
  }
}

/* SECCIÓN DE VÍDEOS (DIVULGACIÓN) - MODO CINE */
.videos-section {
  padding: 100px 0;
  background-color: var(--primary); /* Fondo oscuro premium */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.videos-section .section-tagline {
  color: var(--accent-light); /* Tagline claro sobre fondo oscuro */
}

.section-heading-centered {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white); /* Título principal blanco */
  text-align: center;
  margin-top: -30px;
  margin-bottom: 50px;
  letter-spacing: -0.02em;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.video-card {
  background: var(--primary-light); /* Tarjeta con un tono de azul ligeramente más claro */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.video-ratio-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  background-color: #000;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

/* Botón de Play animado */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(27, 108, 168, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.video-play-btn svg {
  margin-left: 2px; /* Alineación óptica del icono de play */
  transition: var(--transition-smooth);
}

.video-card:hover .video-play-btn {
  background-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(27, 108, 168, 0.5);
}

.video-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white); /* Título en blanco */
  line-height: 1.4;
}

.video-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65); /* Descripción más tenue */
  line-height: 1.55;
}

/* ESTILOS DEL MODO CINE (MODAL LIGHTBOX) */
.cinema-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.cinema-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 30, 46, 0.92); /* Fondo oscuro translúcido */
  backdrop-filter: blur(8px); /* Blur de fondo */
}

.cinema-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cinema-modal.active .cinema-container {
  transform: scale(1);
}

.cinema-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.cinema-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.cinema-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

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

/* RESPONSIVE VÍDEOS */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .section-heading-centered {
    font-size: 1.85rem;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .videos-section {
    padding: 70px 0;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .section-heading-centered {
    font-size: 1.55rem;
  }
  
  .video-info {
    padding: 20px;
  }
}

/* SECCIÓN PRENSA */
.prensa-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prensa-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 40px;
}

.prensa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.prensa-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  transition: var(--transition-smooth);
}

.prensa-item:hover {
  transform: translateY(-4px);
}

.prensa-logo {
  width: 100%;
  max-width: 150px; /* Tamaño óptimo para destacar la forma cuadrada original */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: grayscale(100%) opacity(70%);
  transition: var(--transition-smooth);
}

.prensa-item:hover .prensa-logo {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.06); /* Sutil micro-zoom de realce */
}

/* FOOTER 5 COLUMNAS */
.footer .container {
  max-width: 1800px;
  padding-left: 40px;
  padding-right: 40px;
}

.footer {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 80px 0 30px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #3B82F6 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 8px;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  display: block;
}

.footer-desc {
  opacity: 0.7;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-white);
  transform: translateX(4px);
}

/* Estilos de Aseguradoras y Tags */
.footer-col-insurance {
  display: flex;
  flex-direction: column;
}

.insurance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.insurance-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  transition: var(--transition-smooth);
  cursor: default;
  user-select: none;
}

.insurance-tag:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 108, 168, 0.3);
}

.sin-aseguradora-wrapper {
  margin-top: 10px;
}

.sin-aseguradora-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1.5px dashed var(--accent);
  padding-bottom: 2px;
  transition: var(--transition-smooth);
}

.sin-aseguradora-link:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
  transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
}

.footer-bottom-link:hover {
  color: var(--text-white);
}

/* RESPONSIVE DESIGN (Media Queries) */

/* Pantallas grandes y portátiles */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 80px;
    align-items: flex-start;
  }

  .hero .container {
    padding: 0 20px;
  }

  /* Grid a columna única en tablet */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-right {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 30, 46, 0.92) 0%, rgba(10, 30, 46, 0.78) 100%);
  }

  /* Calendario en tablet: 6 columnas de horas */
  .cita-horas__grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .prensa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .footer-col-info {
    grid-column: span 3;
    text-align: center;
    align-items: center;
    margin-bottom: 20px;
  }
}

/* Tablets y Dispositivos Medios */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 5px 13px;
    white-space: nowrap;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  /* El formulario de cita en móvil se simplifica */
  .cita-card {
    padding: 20px 16px;
  }

  .cita-form__row--2col {
    flex-direction: column;
  }

  .cita-horas__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Cabecera Móvil Drawer */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1005;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-link {
    color: var(--text-white) !important;
    font-size: 1.1rem;
    width: 100%;
  }
  
  /* Dropdown en móvil */
  .dropdown-menu {
    position: static;
    transform: none;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
  }
  
  .dropdown-menu.active {
    display: block;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown-link {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .dropdown-link:hover {
    padding-left: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }
  
  .header-cta {
    display: none;
  }
  
  .header-cta-mobile {
    display: flex;
    margin-top: 20px;
    width: 100%;
  }
  
  .header-cta-mobile .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-col-info {
    grid-column: span 2;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .logo-img {
    width: 120px;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero .container {
    padding: 0 12px;
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
    white-space: nowrap;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 10px 14px;
    padding-top: 14px;
    width: 100%;
    margin: 0;
  }

  .trust-item {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .trust-item:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
  }

  /* Horas en móvil: 4 columnas */
  .cita-horas__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Tarjeta cita full width en móvil */
  .cita-card {
    padding: 16px 10px;
    border-radius: 14px;
  }
  
  .prensa-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .prensa-item {
    width: calc(50% - 8px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-col-info {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP (PREMIUM & TÁCTIL)
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.whatsapp-float__icon {
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Sutil efecto de ondas de pulso de fondo */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.4;
  z-index: -1;
  animation: wa-pulse 2.2s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Optimización para pantallas móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  
  .whatsapp-float__icon {
    width: 30px;
    height: 30px;
  }
}

