/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


/* Enlaces activos en nav */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width:768px){
  .nav-menu{
    position:fixed; left:-100%; top:70px;
    flex-direction:column; background:#fff; width:100%; text-align:center;
    transition:.3s; box-shadow:0 10px 27px rgba(0,0,0,.05); padding:20px 0;
  }
  .nav-menu.active{ left:0; }
  .nav-menu li{ margin:10px 0; }
}

/* Ajuste de contenedor del nav en móviles */
@media (max-width:480px){
  .nav-container{ padding:0 15px; }
}
