/* Estilos generales */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* Encabezado principal */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
  padding: 0.8rem 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Contenedor del header */
.contenedor-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo y slogan */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 75px;
}

.slogan {
  font-size: 0.85rem;
  color: #5e3fc9;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Menú de navegación */
.menu-principal {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Links del menú */
.menu-principal a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: #1a1a1a;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.menu-principal a:hover {
  color: #5e3fc9;
  font-weight: 600;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* Oculto en desktop */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1A1B3F;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE: Estilos móviles */
@media (max-width: 768px) {
  .contenedor-header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .menu-toggle {
    display: block; /* Mostrar botón ☰ */
  }

  .menu-principal {
    display: none; /* Ocultar menú inicialmente */
    flex-direction: column;
    align-items: center;
    background: white;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 0;
    border-radius: 8px;
  }

  .menu-principal.active {
    display: flex; /* Mostrar menú al activar */
  }

  .menu-principal a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }
}