/* ============================= */
/* MEGA DROPDOWN ESTACIONES */
/* ============================= */

.nav-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.chevron {
  font-size: 0.75rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  width: 360px;
  padding: 14px;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all 0.22s ease;
  z-index: 9999;
}

.nav-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 14px;
}

.mega-header {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 10px;
}

.mega-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.mega-header strong {
  font-size: 0.98rem;
  color: #212529;
}

.mega-options {
  display: grid;
  gap: 8px;
}

.mega-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mega-item:hover {
  background: #f8f9fa;
  transform: translateX(3px);
}

.mega-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  font-size: 0.7rem;
}

.mega-icon.modular {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.12);
}

.mega-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
}

.mega-desc {
  font-size: 0.82rem;
  color: #6c757d;
}

/* ============================= */
/* MOBILE FIX IPHONE */
/* ============================= */

@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
  }

  .mega-menu {
    position: fixed;
    top: 145px;
    left: 16px;
    right: 16px;

    width: auto;
    max-width: none;

    transform: translateY(12px);

    padding: 14px;
    border-radius: 18px;

    z-index: 99999;
  }

  .nav-dropdown.open .mega-menu {
    transform: translateY(0);
  }

  .mega-header {
    padding: 8px 10px 12px;
  }

  .mega-options {
    gap: 10px;
  }

  .mega-item {
    padding: 12px;
  }

  .mega-title {
    font-size: 0.95rem;
  }

  .mega-desc {
    font-size: 0.82rem;
  }

  .mega-menu::before {
    display: none;
  }

  .mega-item > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
}