/* ======================
VARIABLES GLOBALES
====================== */
:root {
  --light-blue: #1e94a6;
  --dark-blue: #1d2767;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.16);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.19);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ======================
ESTILOS GENERALES
====================== */
body {
  font-family: 'Arial', sans-serif;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ======================
HEADER Y NAVEGACIÓN
====================== */
.navbar {
  background: transparent !important;
  transition: all 0.3s ease-in-out !important;
  padding: 5px 0 !important;
}

.navbar.scrolled {
  background: var(--dark-blue) !important;
  padding: 5px 0 !important;
  box-shadow: var(--shadow-sm) !important;
}

.navbar-brand img {
  transition: var(--transition);
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  border-radius: 4px;
  transition: var(--transition);
  color: white !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ======================
SECCIÓN HERO
====================== */
.hero-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  color: white;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  transform: translateZ(0);
  animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
  transform: scale(1.02) translateZ(0);
}

.text-light-blue {
  color: var(--light-blue) !important;
}

.btn-bienestar {
  font-size: 1.2rem;
  padding: 12px 24px;
  background-color: var(--light-blue);
  color: white;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-bienestar:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline-dark-blue {
  border: 2px solid var(--dark-blue);
  color: var(--dark-blue);
  background: transparent;
}

.btn-outline-dark-blue:hover {
  background: var(--dark-blue);
  color: white;
}

/* ======================
SECCIONES DE CONTENIDO
====================== */
.bg-light-blue {
  background-color: #f0f7ff;
}

.text-dark-blue {
  color: var(--dark-blue);
}

.bienestar-presentation {
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.bienestar-features .feature-item {
  transition: transform 0.3s ease;
}

.bienestar-features .feature-item:hover {
  transform: translateX(5px);
}

/* ======================
SECCIÓN DE PROGRAMAS (LOGOS)
====================== */
.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.programa-item {
  width: 200px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.programa-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.programa-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ======================
SECCIÓN FAQ
====================== */
.faq-section {
  padding: 80px 0;
  color: white;
  position: relative;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
  position: relative;
  display: inline-block;
}

.faq-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.accordion {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  width: 100%;
  padding: 25px;
  text-align: left;
  background: #f8f9fa;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.accordion-button:not(.collapsed) {
  background: white;
  color: var(--dark-blue);
  box-shadow: none;
}

.accordion-button:hover {
  background: #e9ecef;
}

.accordion-icon {
  margin-right: 15px;
  color: var(--dark-blue);
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.accordion-body {
  padding: 25px;
  background: white;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.accordion-body ul {
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 10px;
}

/* ======================
SECCIÓN CTA
====================== */
.cta-section {
  padding: 100px 0;
  padding-top: 10px;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-flex;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

.cta-badge i {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-title span {
  color: white;
  position: relative;
}

.cta-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--dark-blue);
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 2px solid white;
}

.cta-button:hover {
  background: transparent;
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.cta-button-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ======================
SECCIÓN GALERÍA 3x3
====================== */
.galeria-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.galeria-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-item:hover::after {
  opacity: 1;
}

/* ======================
MODAL GALERÍA
====================== */
.galeria-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-contenido {
  position: relative;
  width: 90%;
  max-width: 900px;
  animation: slideUp 0.4s;
}

#modal-imagen {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-info {
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1.1rem;
}

.nav-modal {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nav-modal:hover {
  background: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.1);
}

.nav-modal.prev {
  left: -80px;
}

.nav-modal.next {
  right: -80px;
}

.cerrar-modal {
  position: absolute;
  top: 40px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  opacity: 0.8;
  background: none;
  border: none;
}

.cerrar-modal:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* ======================
SECCIÓN DE CONTACTO
====================== */
.contact-section {
  background-color: white;
}

.contact-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.map-container {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
}

/* ======================
FOOTER
====================== */
.footer-premium {
  background: var(--dark-blue);
  color: white;
  position: relative;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.footer-title {
  color: var(--light-blue);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--light-blue);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-list a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-list a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  color: rgba(255,255,255,0.7);
}

/* ======================
BOTÓN WHATSAPP
====================== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(18, 140, 126, 0.3);
  z-index: 1000;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
}

.whatsapp-text {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: white;
  color: #075E54;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transition: all 0.3s;
}

.whatsapp-btn:hover .whatsapp-text {
  opacity: 1;
  right: 80px;
}

/* ======================
ANIMACIONES
====================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ======================
MEDIA QUERIES
====================== */
@media (max-width: 991.98px) {
  .navbar {
    background: var(--dark-blue) !important;
    padding: 10px 0 !important;
  }
  
  .nav-modal {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .nav-modal.prev {
    left: -60px;
  }
  
  .nav-modal.next {
    right: -60px;
  }
  
  .programas-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .programa-item {
    width: 150px;
    height: 100px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 100px 0 40px;
    text-align: center;
  }
  
  .hero-image {
    max-height: 300px;
    margin-top: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .cerrar-modal {
    top: 20px;
    right: 20px;
    font-size: 30px;
  }
  
  .galeria-grid-3x3 {
    gap: 4px;
  }
}

@media (max-width: 575.98px) {
  .nav-modal {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .nav-modal.prev {
    left: -50px;
  }
  
  .nav-modal.next {
    right: -50px;
  }
  
  .faq-header h2 {
    font-size: 2rem;
  }
  
  .accordion-button {
    padding: 20px 15px;
    font-size: 1rem;
  }
  
  .programas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================
SECCIÓN FAQ Y CTA UNIFICADA
====================== */
.faq-cta-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

/* ======================
SECCIÓN DE CONTACTO MEJORADA
====================== */
.contact-section {
  background-color: white;
  padding: 60px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-column {
  padding: 20px;
}

.contact-column h4 {
  color: var(--dark-blue);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.contact-column h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--light-blue);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-info-item i {
  color: var(--light-blue);
  margin-right: 10px;
  margin-top: 3px;
}

.map-section {
  padding: 60px 0 0;
}

.map-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-blue);
}

.map-container {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}