/* ════════════════════════════════════════════════════════════════ */
/* CAJASAN SALUD - ESTILOS COMPLETOS Y OPTIMIZADOS                  */
/* ════════════════════════════════════════════════════════════════ */

* {
  font-family: 'Poppins', sans-serif;
}

/* ══════════════════════════════════════════════════════════════════ */
/* HERO SECTION */
/* ══════════════════════════════════════════════════════════════════ */

.hero-salud {
  background: linear-gradient(135deg, #0f2d6b 0%, #1a4fa0 55%, #0e7fc1 100%);
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.hero-salud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1400&q=50&fit=crop') center/cover no-repeat;
  opacity: 0.1;
}

/* ══════════════════════════════════════════════════════════════════ */
/* NAVIGATION PILLS */
/* ══════════════════════════════════════════════════════════════════ */

.snav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}

.snav-pill.active {
  background: #1a4fa0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 79, 160, 0.3);
}

.snav-pill:not(.active) {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.snav-pill:not(.active):hover {
  background: #dbeafe;
  color: #1a4fa0;
  border-color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════════════ */
/* SECTION LABELS & TITLES */
/* ══════════════════════════════════════════════════════════════════ */

.sec-label {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sec-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0.4rem 0 0.6rem;
}

.sec-desc {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════ */
/* SERVICE CARDS */
/* ══════════════════════════════════════════════════════════════════ */

.service-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #f1f5f9;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26, 79, 160, 0.14);
  border-color: #bfdbfe;
}

/* ══════════════════════════════════════════════════════════════════ */
/* CTA PEDIATRÍA */
/* ══════════════════════════════════════════════════════════════════ */

.cta-pediatria {
  background: linear-gradient(135deg, #0f2d6b, #1a4fa0);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.cta-pediatria::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════════════════════════════ */
/* VACCINATION TABS */
/* ══════════════════════════════════════════════════════════════════ */

.vac-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
}

.vac-tab.active {
  background: #1a4fa0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 79, 160, 0.3);
}

.vac-tab:not(.active) {
  background: #f1f5f9;
  color: #475569;
}

.vac-tab:not(.active):hover {
  background: #dbeafe;
  color: #1a4fa0;
}

/* ══════════════════════════════════════════════════════════════════ */
/* VACCINATION BADGES */
/* ══════════════════════════════════════════════════════════════════ */

.vac-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ══════════════════════════════════════════════════════════════════ */
/* PROGRAM CARDS */
/* ══════════════════════════════════════════════════════════════════ */

.programa-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #f1f5f9;
}

.programa-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════════ */
/* SEDE CARDS */
/* ══════════════════════════════════════════════════════════════════ */

.sede-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.sede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 79, 160, 0.12);
}

/* ══════════════════════════════════════════════════════════════════ */
/* HORARIO CARDS */
/* ══════════════════════════════════════════════════════════════════ */

.horario-card {
  background: linear-gradient(135deg, #1a4fa0, #0e7fc1);
  border-radius: 1.25rem;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════ */
/* MODAL - VERSIÓN LIMPIA Y OPTIMIZADA */
/* ══════════════════════════════════════════════════════════════════ */

#salud-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

#salud-modal-overlay.hidden {
  display: none;
}

#salud-modal-overlay > div {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

/* Header del modal */
#salud-modal-overlay > div > div:first-child {
  flex-shrink: 0;
}

/* Content del modal */
#salud-modal-overlay > div > div:nth-child(2) {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#salud-modal-overlay > div > div:nth-child(2)::-webkit-scrollbar {
  width: 4px;
}

#salud-modal-overlay > div > div:nth-child(2)::-webkit-scrollbar-track {
  background: transparent;
}

#salud-modal-overlay > div > div:nth-child(2)::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#salud-modal-overlay > div > div:nth-child(2)::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Footer del modal */
#salud-modal-overlay > div > div:last-child {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
}

/* ══════════════════════════════════════════════════════════════════ */
/* ANIMACIONES */
/* ══════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* ══════════════════════════════════════════════════════════════════ */
/* BOTONES INTERACTIVOS */
/* ══════════════════════════════════════════════════════════════════ */

.service-card,
.programa-card,
.service-modal-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.programa-card:hover {
  background-color: #f9fafb;
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════════ */
/* SCROLL BEHAVIOR */
/* ══════════════════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

.snav-scroll::-webkit-scrollbar {
  display: none;
}

.snav-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ══════════════════════════════════════════════════════════════════ */
/* UTILIDADES */
/* ══════════════════════════════════════════════════════════════════ */

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

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.d1 {
  animation-delay: 0.1s;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.3s;
}

/* ══════════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .sec-title {
    font-size: 1.5rem;
  }

  .snav-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
  }

  .service-card {
    padding: 1rem;
  }

  #salud-modal-overlay > div {
    max-width: 100%;
    max-height: 90vh;
  }
}
