/* =====================
    VARIABLES DE COLOR
    ===================== */
:root {
  --aquasud-blue: #003459;
  --aquasud-light-blue: #00b4d8;
  --aquasud-white: #ffffff;
  --aquasud-dark-gray: #1a1a1a;
  --aquasud-light-gray: #f5f5f5;
  --aquasud-red: #df0209;
}

/* =====================
    RESETEO Y BASE
    ===================== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: var(--aquasud-white);
  color: #333;
}

/* =====================
    NAVBAR ELEGANTE
    ===================== */
.elegant-nav {
  background: rgba(0, 52, 89, 0.85);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 0.5rem 0;
}

.elegant-nav.scrolled {
  background: rgba(0, 52, 89, 0.95);
  padding: 0.3rem 0;
}

.elegant-nav .nav-link {
  color: var(--aquasud-white);
  font-weight: 500;
  padding: 0.7rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.elegant-nav .nav-link:hover,
.elegant-nav .nav-link:focus {
  color: var(--aquasud-light-blue);
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

/* Estilos para el botón del toggler (hamburguesa) */
.custom-toggler {
  border: none;
  padding: 0.4rem 0.6rem;
}

/* Asegura que el icono del toggler sea blanco */
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================
    DROPDOWN PROFESIONAL
    ===================== */
.dropdown-menu {
  background-color: var(--aquasud-blue);
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out forwards;
  padding: 0.25rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--aquasud-white);
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--aquasud-light-blue);
  color: var(--aquasud-blue);
}

/* Submenú */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icono de flecha para submenú */
.dropdown-submenu > a::after {
  content: "\f285";
  font-family: "Bootstrap-icons";
  font-weight: normal;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  color: var(--aquasud-white);
  border: none;
  vertical-align: middle;
}

.hero-overlay {
 position: relative; /* Establecer un contexto de posicionamiento para el overlay */
}

.hero-overlay::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.7); /* Fondo negro con 50% de opacidad */
 z-index: 1; /* Asegurar que el overlay esté sobre la imagen de fondo */
}

/* Asegurar que el contenido del héroe esté por encima del overlay */
.hero-overlay > .container {
 position: relative;
 z-index: 2;
}
/* =====================
    SECCIONES GENERALES
    ===================== */
section {
  padding: 80px 0;
}

section h2 {
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--aquasud-blue);
}

/* =====================
    TARJETAS
    ===================== */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =====================
    FOOTER
    ===================== */
footer {
  background-color: var(--aquasud-blue);
  color: var(--aquasud-white);
  padding: 2rem 0;
  text-align: center;
}

/* =====================
    RESPONSIVE AJUSTES
    ===================== */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  /*
    DISEÑO MEJORADO PARA MÓVILES
    -----------------------------
  */
  .navbar-collapse {
    /* background-color: rgba(0, 52, 89, 0.95); */
    backdrop-filter: blur(8px);
    padding: .5rem;
    border-radius: 0 0 10px 10px;
    animation: slideInDown 0.4s ease-in-out forwards;
  }

  /* Animación para el menú móvil */
  @keyframes slideInDown {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  /* Estilo para el dropdown-menu del submenú en móvil */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 0;
    /* Se elimina el color de fondo para que el del nav principal sea visible */
    background-color: transparent !important;
    backdrop-filter: blur(8px);
    box-shadow: none;
  }

  /* Icono de flecha para indicar que se puede desplegar */
  .dropdown-submenu > a {
    position: relative;
    padding-right: 2.5rem;
  }

  .dropdown-submenu > a::after {
    content: "\f282";
    font-family: "Bootstrap-icons";
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--aquasud-light-blue);
    border: none;
  }

  /* Gira el icono cuando el submenú está abierto */
  .dropdown-submenu.show > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Indentación para los sub-items */
  .dropdown-submenu .dropdown-item {
    padding-left: 2rem;
  }

  .dropdown-submenu .dropdown-item:hover,
  .dropdown-submenu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--aquasud-white);
    padding-left: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }
}
/* =====================
    ETIQUETA DE SUBNIVEL SOBRE IMAGEN
    ===================== */
.card-img-container {
  position: relative;
  overflow: hidden;
}

.subnivel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--aquasud-blue);
  color: var(--aquasud-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse sobre la tarjeta */
.card:hover .subnivel-badge {
  background-color: var(--aquasud-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Ajustes responsivos para la etiqueta */
@media (max-width: 768px) {
  .subnivel-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    top: 8px;
    right: 8px;
  }
}

/* =====================
    BOTÓN FLOTANTE DE WHATSAPP
    ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 28px;
}

/* Texto junto al botón (opcional) */
.whatsapp-text {
  position: fixed;
  bottom: 35px;
  right: 95px;
  background-color: white;
  color: #25D366;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover + .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de pulso */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-text {
    display: none;
  }
}

