header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

nav .Logo {
    display: flex;
    align-items: center;
}

.logo {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
    /* Efecto hover */
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    color:#131313 ;
    font-weight: 400;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background:#ffcc0026;
    border-radius: 30px;
}
nav ul li a.active {
    background:#ffcc00;
    border-radius: 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 20px;
}

.search-bar input {
    padding: 5px 10px;
    border: none;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.menu {
    display: none;
}

/* Submenú - estructura básica */
.nav-links li.has-submenu {
    position: relative;
    background: transparent;
}

.nav-links li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background:#ffffffb6;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 8px 16px rgb(0, 0, 0);
    min-width: 200px;
    z-index: 999;
}

.nav-links li .submenu li a {
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    display: block;
    white-space: nowrap;
}

.nav-links li .submenu li a:hover {
    background: #ffcc0026;
}

/* Mostrar submenú en hover */
.nav-links li.has-submenu:hover .submenu {
    display: flex;
}