/* === ESTILO ORIGINAL DESKTOP === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
}

header {
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 18px;
}

header .logo {
    margin-left: 20px;
}

header .logo img {
    height: 70px;
    max-width: 100%;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    background: #004687;
    -webkit-background-clip: text;
    color: transparent;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: white;
    -webkit-background-clip: unset;
}

/* === BOTÓN HAMBURGUESA === */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background: #004687;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === SOLO MÓVIL === */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: white;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
        margin-right: 60px; 

    }

    nav.show {
        transform: translateY(0);
    }

    /* Animación de la hamburguesa a "X" */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}