/* ====== Fuente y colores base ====== */
body {
    font-family: 'Erbaum', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* ====== ENCABEZADO ====== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 10px 0;
    padding-left: 10px;
    padding-right: 10px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

main {
    margin-top: 100px;
}

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

header .logo img {
    width: 48px;
    margin-right: 12px;
}

header .logo h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

header .logo h1 a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

header .logo h1 a:hover {
    color: #e91e63;
}

/* Menú principal */
header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

header nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e91e63;
    transition: width 0.3s ease;
}

header nav ul li a:hover {
    color: #ffffff;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* ====== PIE DE PÁGINA ====== */
footer {
    background: #181818;
    padding: 40px 20px;
    text-align: center;
    color: #bbb;
    border-top: 1px solid #2a2a2a;
}

footer .footer-logo {
    margin-bottom: 15px;
}

footer .footer-logo img {
    width: 60px;
    margin-bottom: 10px;
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

footer nav {
    margin-top: 15px;
}

footer a {
    margin: 0 12px;
    color: #bbb;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e91e63;
}

/* ====== MENÚ RESPONSIVO ====== */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    header .logo h1 {
        font-size: 18px;
    }

    /* Botón hamburguesa */
    header .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #ffffff;
        z-index: 1100;
        position: absolute;
        right: 50px;
    }

    /* Menú oculto por defecto */
    header nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #121212;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    /* Mostrar menú cuando está abierto */
    header nav.open {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
    }

    header nav ul li {
        margin: 0;
    }

    header nav ul li a {
        font-size: 20px;
    }

    /* Botón "X" cuando se abre */
    .menu-toggle.open {
        position: fixed;
        top: 20px;
        right: 25px;
        font-size: 32px;
    }
}
