@font-face {
    font-family: 'Big Noodle Titling';
    src: url('../fonts/big_noodle_titling_oblique.ttf') format('truetype');
}

@font-face {
    font-family: 'TT Chocolates Trl Medium';
    src: url('../fonts/a') format('opentype');
}

@font-face {
    font-family: 'TT Hoves Pro Trl Cnd';
    src: url('../fonts/TT Hoves Pro Trial Condensed Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'TT Hoves Pro Trial DemiBold';
    src: url('../fonts/TT Hoves Pro Trial DemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'TT Chocolates Trial Bold';
    src: url('../fonts/TT Chocolates Trial Bold.otf') format('opentype');
}

/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'TT Hoves Pro Trl Cnd', sans-serif;
    color: #ffffff;
    background-color: #000000;
    font-size: 16px; /* Establecer base para rem */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem; /* 20px */
    background-color: #000000; /* Color de Fondo de Header */

    .logo {
        position: relative;
    }
    
    .logo img {
        height: 3.125rem; /* 50px */
        z-index: 1;
        position: relative;
        padding-right: 2rem;
    }
    
    .logo::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-83%, -50%);
        width: 50%;
        height: 50%;
        border-radius: 40%;
        box-shadow: 0 0 30px rgba(208, 1, 223, 0.63);
        animation: neon-pulse 1s ease-in-out infinite;
        opacity: 1;
    }
    
    nav {
        flex-grow: 1;
        display: flex;
        justify-content: center; /* Centrar el menú de navegacion */
    }
    
    nav ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }
    
    nav ul li {
        position: relative;
        margin: 0 50px; /* margen menu de navegacion */
    }
    
    @media (max-width: 768px) {
        nav ul {
            flex-direction: column;
            text-align: center;
        }
        nav ul li {
            margin: 10px 0;
        }
    }
    
    nav ul li a {
        text-decoration: none;
        color: #ffffff;
        font-family: 'TT Chocolates Trial Bold', sans-serif;
        font-size: 2.0125rem; /* 32.2px */
        position: relative;
        padding: 5px 0;
        overflow: hidden;
        transition: text-shadow 0.3s ease;
    }

    nav ul li a.active {
        color: #D001DF;
        text-shadow: 0 0 15px rgba(208, 1, 223, 0.7);
        position: relative;
    }
    
    nav ul li a.active::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 100%;
        height: 2px;
        background-color: #D001DF;
        box-shadow: 0 0 10px #D001DF, 0 0 20px #D001DF;
        animation: neon-pulse 1.5s infinite;
    }
    
    nav ul li a:hover {
        color: #D001DF;
        text-shadow: 0 0 10px #D001DF,
                     0 0 20px #D001DF,
                     0 0 40px #D001DF;
    }
    
    /* Página activa */
    nav ul li a.active {
        color: #D001DF;
        text-shadow: 0 0 15px rgba(208, 1, 223, 0.7);
    }
    
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 100px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: relative;
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 1.875rem; /* 30px */
        height: 1.3125rem; /* 21px */
        position: fixed; 
        top: 1.5625rem; /* 25px */
        right: 1.875rem; /* 30px */
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
        transform-origin: left;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(2px, -1px);
        background: #D001DF;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(2px, 1px);
        background: #D001DF;
    }

    .nav-menu {
        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.411);
            backdrop-filter: blur(15px);
            display: flex !important;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1001;
            padding: 1.25rem;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    nav ul li {
        margin: 0.9375rem 0;
    }

    nav ul li a {
        font-size: 24px;
        padding: 10px 0;
    }
    }





.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
    background: #D001DF;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
    background: #D001DF;
}

/* Preloader mobile */
@media (max-width: 768px) {
    .preloader img {
        width: 80px !important;
    }
}
}