/* =============================== */
/* RESET GENERAL */
/* =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Nunito', sans-serif;
  background-color: #fff;
}

/* =============================== */
/* HEADER PRINCIPAL */
/* =============================== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #00549E;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =============================== */
/* NAVEGACIÓN DESKTOP */
/* =============================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #00549E;
}

/* =============================== */
/* DROPDOWN */
/* =============================== */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dropdown-toggle::after {
  content: "▾";
  font-size: 0.8rem;
  color: #00549E;
  transition: transform 0.3s ease;
}
.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  width: 280px;
  overflow: hidden;
  z-index: 2000;
}
.dropdown-menu.active {
  display: flex;
  animation: fadeIn 0.25s ease-in-out;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
  background: #f2f6fc;
  color: #00549E;
}

/* =============================== */
/* ICONOS */
/* =============================== */
.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.3s ease;
}
.icon i {
  color: #fff;
  font-size: 1.1rem;
}
.icon:hover {
  transform: scale(1.05);
}

/* Colores armónicos */
.blue { background: #00549E; }
.orange { background: #007DC5; }
.pink { background: #009EE3; }

/* =============================== */
/* MENÚ HAMBURGUESA */
/* =============================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
  z-index: 2100;
}
.hamburger span {
  height: 3px;
  background: #111;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =============================== */
/* RESPONSIVE (MÓVIL) */
/* =============================== */
@media (max-width: 950px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #004080;
    color: #fff;
    transition: right 0.4s ease;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
  }
  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 22px;
    text-align: left;
    padding-left: 30px;
    align-items: flex-start;
  }

  nav a {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
  }
  nav a:hover {
    color: #FFF6BF; /* amarillo pastel más suave */
  }

  /* Dropdown móvil */
  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    background: #FFF6BF; /* tono amarillo cálido y tenue */
    box-shadow: none;
    border-radius: 8px;
    width: 90%;
    margin-top: 8px;
  }

  .dropdown-item {
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .dropdown-item i {
    color: #fff;
    font-size: 1rem;
  }
  .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .dropdown-toggle::after {
    color: #FFF6BF;
  }
}

/* =============================== */
/* ANIMACIÓN SUAVE */
/* =============================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================== */
/* LOGO IMAGEN */
/* =============================== */
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
.logo-img:hover {
  transform: scale(1.05);
}

