/* 🔹 Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    list-style: none;
    text-decoration: none;
}

/* 🔹 Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* 🔹 Logo */
.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

/* 🔹 Menú de navegación */
.navbar {
    display: flex;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: 0.3s;
    padding: 10px 15px;
    border-radius: 5px;
}

/* 🔹 Efecto hover */
.navbar a:hover {
    background: #ffffff;
    color: black;
}

/* 🔹 Menú hamburguesa oculto en pantallas grandes */
.menu-icon {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none; /* 🔥 Se oculta en pantallas grandes */
}

/* 🌍 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navbar {
        display: fixed; /* 🔥 Oculta la barra de navegación en móviles */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #333;
        width: 200px;
        text-align: center;
        border-radius: 5px;
        padding: 10px;
    }

    .navbar.active {
        display: flex; /* 🔥 Se muestra cuando se activa con JavaScript */
    }

    .navbar li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block; /* 🔥 Se muestra el menú hamburguesa en móviles */
    }
}
