/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =================== BODY ====================*/

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: black;
    color: #c1c1c1;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Todas las imágenes y videos adaptables */
img, video {
    max-width: 100%;
    height: auto;
}


/* ==================== HEADER ====================*/

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin: 0 auto;
    gap: 20px;
    width: 100%;       
    max-width: 100%;    

    position: sticky;
    z-index: 10;
    top: 0;
    left: 0;

    animation: scrollHeader linear both;
    animation-timeline: scroll(root);
}

@keyframes scrollHeader {
    to {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(3px);
        border-radius: 5px;;
    }
}

.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 30px;

    width: max-content;
}

.header-logo img {
    height: 50px;
}

/* -------- Menú header --------*/

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li+li::before {
    content: "|";
    color: #a7a7a7;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

nav ul li a {
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #c1c1c1;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 15px;

    transition: color 0.5s ease, background 0.5s ease;
}

nav ul li a:hover {
    color: #007aff;
        background: rgba(255, 255, 255, 0.109);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
}

/* ==================== MAIN ====================*/

.content {
    flex-grow: 1;
    animation: fadeIn 0.7s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* -------- Contenido principal --------*/
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ==================== FOOTER ====================*/

footer {
    padding: 10px;
    color: rgb(60, 60, 60);
    text-align: center;
}

footer p {
    font-size: 1rem;
    margin: 10px 0;
}

footer i {
    margin: 0 5px;
}

footer span {
    margin: 0 10px;
}

/* ==================== MEDIA QUERIES ====================*/

/* Ajustes para pantallas pequeñas (Móviles) */

@media (max-width: 768px) {
    
    /* Header */
    header {
        flex-direction: column;
        gap: 10px;
        position: static; /* Para evitar problemas con el z-index en móviles */
        padding: 5px;

        animation: none; 
        backdrop-filter: none; 
        background: none; 
    }

    nav ul {
        gap: 15px;
        align-items: center;
    }

    nav ul li + li::before {
        content: none; 
    }

    nav ul li a {
        font-size: 1rem;
        padding: 8px 5px;
    }

    .header-logo img {
        height: 40px;
    }
}