/* ========== GLOBAL ========== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&family=VT323&display=swap');

/* ========== VARIABLE ========== */
:root {
    /* --- COLORES --- */
    --primary-purple: #a855f7;
    --primary-cyan: #06b6d4;
    --primary-lime: #84cc16;
    --accent-orange: #FF6B00;
    --accent-pink: #ec4899;

    /* Fondos */
    --bg-dark: #000000;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(20, 20, 30, 0.85);

    /* Textos */
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;

    /* Fuentes */
    --font-main: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-pixel: 'VT323', monospace;

    /* Animación Pacman */
    --pacman-color: #fed75a;
    --ball-size: 15px;
    --pacman-size: calc(var(--ball-size) * 2.5);

    /* --- VARIABLES HERO 3D (ESTAS SON LAS QUE FALTAN O NO SE LEEN) --- */
    --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translateX(0);
    --item2-filter: blur(0px);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%, 10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%, 20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;

    --item5-transform: translate(120%, 30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 110px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* ========== LOADER PACMAN + IMAGEN ========== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-logo {
    width: 700px;
    max-width: 70vw;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: auto;
    /* Eliminamos la sombra púrpura */
    filter: none;
    /* Creamos una máscara: el centro (negro) se ve, los bordes (transparente) se ocultan */
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 100%);
    mask-image: radial-gradient(circle, black 40%, transparent 100%);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Pacman Animation Logic */
.pacman {
    position: relative;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.pacman-top,
.pacman-bottom {
    width: 0;
    height: 0;
    border: var(--pacman-size) solid var(--pacman-color);
    border-radius: 50%;
    border-right-color: transparent;
    position: absolute;
    left: 0;
    animation: rotate-up 0.5s infinite;
}

.pacman-bottom {
    animation-name: rotate-down;
}

.dot {
    width: var(--ball-size);
    height: var(--ball-size);
    background-color: var(--pacman-color);
    border-radius: 50%;
    position: absolute;
    top: calc(50% - (var(--ball-size) / 2));
    left: calc(var(--pacman-size) * 4);
    z-index: 1;
    animation: move-dots 1s infinite linear;
}

.dot1 {
    animation-delay: -0.75s;
}

.dot2 {
    animation-delay: -0.5s;
}

.dot3 {
    animation-delay: -0.25s;
}

.dot4 {
    animation-delay: 0s;
}

@keyframes rotate-up {

    0%,
    100% {
        transform: rotate(270deg);
    }

    50% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-down {

    0%,
    100% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

@keyframes move-dots {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(calc(var(--pacman-size) * -3));
        opacity: 0;
    }
}

/* ========== TITULOS GRADIENT ========== */
.text-gradient-cyber {
    background: linear-gradient(90deg,
            var(--primary-lime) 0%,
            var(--primary-cyan) 50%,
            var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    display: inline-block;
}

/* ========== LEYENDAS BOX ========== */
.zylox-message {
    font-family: 'Rajdhani', sans-serif;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.4;
    font-style: italic;
    border-left: 3px solid var(--primary-cyan);
    border-right: 3px solid var(--primary-lime);
    display: inline-block;
    padding: 5px 25px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent, rgba(132, 204, 22, 0.05));
    border-radius: 5px;
    padding: 5px 25px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent, rgba(132, 204, 22, 0.05));
    border-radius: 5px;
    max-width: 95%;
}

.zylox-message i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    vertical-align: middle;
    margin: 0 5px;
    animation: pulse 2s ease-in-out infinite;
}

/* ========== HEADER + NAVEGACION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 3%;
    /* Margen de seguridad a los lados */
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 1. NAVEGACIÓN IZQUIERDA */
.nav-left {
    flex: 1;
    /* ESTA ES LA CLAVE: Crece para empujar */
    display: flex;
    justify-content: flex-start;
    /* Alinea contenido al inicio (izquierda) */
    align-items: center;
    gap: 2rem;
    z-index: 2;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    /* Evita que el texto se parta en dos líneas */
}

.nav-link i {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-lime);
    text-shadow: 0 0 8px rgba(132, 204, 22, 0.5);
}

.nav-link:hover i {
    color: var(--primary-lime);
    transform: scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-lime));
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-lime);
    text-shadow: 0 0 10px var(--primary-lime);
}

.nav-link.active::after {
    width: 100%;
    background: var(--primary-lime);
}

.nav-link.active i {
    color: var(--primary-lime);
}

/* 2. LOGO CENTRAL */
.logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.logo-center a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.logo-center a img {
    height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-center a:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* 3. ACCIONES DERECHA */
.header-actions {
    flex: 1;
    /* ESTA ES LA CLAVE: Crece para empujar */
    display: flex;
    justify-content: flex-end;
    /* Alinea contenido al final (derecha) */
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.nav-link.active {
    color: var(--primary-lime);
    /* Color verde cuando estás en la página */
    text-shadow: 0 0 10px var(--primary-lime);
}

.nav-link.active::after {
    width: 100%;
    /* La línea de abajo se queda fija */
    background: var(--primary-lime);
}

.nav-link.active i {
    color: var(--primary-lime);
}

/* --- Corrección de Botones de Acción (Derecha) --- */
.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Estilos para los iconos Boxicons (<i class='bx...'>) */
.action-btn i {
    font-size: 1.6rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Colores Específicos Hover */
.action-btn:nth-child(1):hover i {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px var(--primary-cyan);
}

.action-btn:nth-child(2):hover i {
    color: var(--primary-purple);
    text-shadow: 0 0 8px var(--primary-purple);
}

.action-btn:nth-child(3):hover i {
    color: var(--primary-lime);
    text-shadow: 0 0 8px var(--primary-lime);
}

.action-btn.login-btn i {
    font-size: 1.8rem;
    /* Un poco más grande para destacar */
}

.action-btn.login-btn:hover i {
    color: var(--primary-lime);
    /* Verde al hacer hover (Login) */
    text-shadow: 0 0 10px var(--primary-lime);
}

/* MODAL DE CONFIRMACIÓN (FREELANCER) */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 11000;
    /* Superpone todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: #151520;
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 15px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.confirm-modal.active .confirm-box {
    transform: scale(1);
}

/* Decoración Cyberpunk en el modal */
.confirm-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan), var(--primary-lime));
}

.confirm-icon {
    font-size: 3.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.confirm-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.confirm-text {
    font-family: var(--font-main);
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.c-btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-family: var(--font-display);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.c-btn-cancel {
    background: transparent;
    border: 1px solid #ff4545;
    color: #ff4545;
}

.c-btn-cancel:hover {
    background: #ff4545;
    color: white;
    box-shadow: 0 0 15px rgba(255, 69, 69, 0.4);
}

.c-btn-confirm {
    background: transparent;
    border: 1px solid var(--primary-lime);
    color: var(--primary-lime);
}

.c-btn-confirm:hover {
    background: var(--primary-lime);
    color: black;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.4);
}

/* 4. BURBUJA CARRITO (Estilo Header) */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-pink);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid var(--bg-dark);
}

/* 5. SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.85);
    /* Más oscuro para legibilidad */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-container {
    transform: scale(1);
}

.close-search-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: all 0.3s;
}

.close-search-btn i {
    font-size: 1.5rem;
    background: var(--accent-pink);
    border-radius: 50%;
    padding: 4px;
    color: white;
}

.close-search-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1.2rem 3.5rem 1.2rem 2rem;
    font-size: 1.3rem;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.search-submit {
    position: absolute;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-cyan));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-submit:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 6. MENU TOOGLE */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* 7. RESPONSIVE HEADER */
@media (max-width: 992px) {
    header {
        padding: 0 2%;
        height: 80px;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .logo-center a img {
        height: 55px;
    }
}

@media (max-width: 768px) {

    /* En móvil, el logo ya no es absoluto al centro, sino que fluye con flex */
    header {
        justify-content: space-between;
        /* Logo a la izq (o centro), menú a la derecha */
    }

    .logo-center {
        position: static;
        /* Quitamos posición absoluta */
        transform: none;
        margin-right: auto;
        /* Empuja acciones a la derecha */
    }

    .logo-center a img {
        height: 45px;
    }

    /* Ocultamos navegación normal para mostrar menú móvil */
    .nav-left {
        position: fixed;
        top: 0;
        right: -100%;
        /* Oculto a la derecha */
        width: 70%;
        height: 100vh;
        background: rgba(15, 15, 35, 0.98);
        border-left: 1px solid var(--primary-purple);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-left.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ========== MODAL LOGIN + CAPTCHA ========== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 12000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--primary-cyan);
    border-radius: 25px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
    padding: 4rem;
    width: 95%;
    max-width: 700px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal.active .login-content {
    transform: scale(1) translateY(0);
}

.login-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-content p {
    color: #a0a0a0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Captcha Container */
.captcha-container {
    border: 1px solid var(--primary-purple);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
    border-color: var(--primary-cyan);
}

.lottie-canvas {
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

/* Switch Alien/Human */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #555;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-pink));
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.theme-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.close-login {
    position: absolute;
    top: 25px;
    right: 25px;
    font-family: 'Orbitron', sans-serif;
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-cyan);
    background: transparent;
    box-shadow: 0 0 15px var(--primary-cyan);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.close-login:hover {
    background: var(--primary-cyan);
    color: #000;
    transform: rotate(90deg);
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(10);
        opacity: 0;
    }
}

/* ========== LOGIN MODAL ========== */
.login-form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.social-btn.google {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: 0.3s;
}

.social-btn.google i {
    font-size: 1.5rem;
}

.social-btn.google:hover {
    background: white;
    color: black;
}

.divider {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 10px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary-cyan);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.input-group input:focus+i {
    color: white;
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(90deg, #9d50bb, #6e48aa);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(157, 80, 187, 0.4);
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(157, 80, 187, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MODAL DE REGISTRO ========== */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 13000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    position: relative;
    width: auto;
    max-width: 90%;
    text-align: center;
}

/* La Imagen Gigante */
.welcome-image {
    max-width: 800px;
    max-height: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    border: 2px solid var(--primary-cyan);
    object-fit: contain;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* El Texto de Respaldo (Gradient) */
.welcome-fallback-text {
    display: none;
    /* Oculto por defecto */
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-lime), #9d50bb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
    animation: fadeIn 1s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* CONTENEDOR DE TÉRMINOS EN LOGIN */
.terms-container {
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
}

.terms-label {
    display: flex;
    align-items: center;
    /* Alineación vertical perfecta */
    cursor: pointer;
    position: relative;
    user-select: none;
    color: rgba(255, 255, 255, 0.7);
    gap: 10px;
}

/* ESCONDER EL CHECKBOX FEO POR DEFECTO */
.terms-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* CAJA DEL CHECK PERSONALIZADA (ESTILO NEÓN) */
.checkmark-neon {
    height: 18px;
    width: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #a855f7;
    /* Morado base */
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Evita que se aplaste si el texto es largo */
    position: relative;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
}

/* EFECTO HOVER */
.terms-label:hover .checkmark-neon {
    border-color: #00d4ff;
    /* Cyan al pasar el mouse */
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* CUANDO ESTÁ MARCADO */
.terms-label input:checked~.checkmark-neon {
    background-color: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

/* EL CHULO (TICK) */
.checkmark-neon:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-label input:checked~.checkmark-neon:after {
    display: block;
}

/* ESTILO DEL TEXTO Y ENLACE */
.terms-text {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.2;
}

.terms-text a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #00d4ff;
    transition: 0.3s;
}

.terms-text a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00d4ff;
}

/* ========== HERO SECTION ========== */
.carousel {
    position: relative;
    height: 650px;
    overflow: hidden;
    margin-top: 0;
    background-color: var(--bg-dark);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

#hero-dynamic-container {
    position: relative;
    z-index: 1;
    min-height: 650px;
    background-color: var(--bg-dark);
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
}

.carousel .list .item {
    position: absolute;
    left: 0%;
    width: 70%;
    height: 100%;
    font-size: 15px;
    transition: left 0.5s, opacity 0.5s, width 0.5s;
}

/* IMAGEN DEL PRODUCTO (FLOTANTE) */
.carousel .list .item img {
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}

@keyframes floatImg {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }
}

/* CUADRO DE TEXTO (GLASS) */
.carousel .list .item .introduce {
    opacity: 0;
    pointer-events: none;
    width: 500px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: -270px;
    transform: translateY(-50%);
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-cyan);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.carousel .list .item:nth-child(2) .introduce {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s;
}

/* Tipografía Hero */
.introduce .title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.introduce .topic {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.introduce .des {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.introduce .seeMore {
    font-family: var(--font-display);
    padding: 12px 35px;
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
    text-transform: uppercase;
}

.introduce .seeMore:hover {
    background: var(--primary-cyan);
    color: black;
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* Lógica de Posicionamiento (Mantenemos tu lógica 3D exacta) */
.carousel .list .item:nth-child(1) {
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    z-index: var(--item1-zIndex);
    opacity: var(--item1-opacity);
    pointer-events: none;
}

.carousel .list .item:nth-child(2) {
    transform: var(--item2-transform);
    filter: var(--item2-filter);
    z-index: var(--item2-zIndex);
    opacity: var(--item2-opacity);
}

.carousel .list .item:nth-child(3) {
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    z-index: var(--item3-zIndex);
    opacity: var(--item3-opacity);
}

.carousel .list .item:nth-child(4) {
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    z-index: var(--item4-zIndex);
    opacity: var(--item4-opacity);
}

.carousel .list .item:nth-child(5) {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    z-index: var(--item5-zIndex);
    opacity: var(--item5-opacity);
    pointer-events: none;
}

.carousel .list .item:nth-child(n+6) {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    z-index: var(--item5-zIndex);
    opacity: 0;
    /* Totalmente invisible */
    pointer-events: none;
}

/* Animaciones de Texto (Entrada) */
.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore {
    opacity: 0;
    animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}

@keyframes showContent {
    from {
        transform: translateY(40px);
        filter: blur(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        filter: blur(0px);
        opacity: 1;
    }
}

.carousel .list .item:nth-child(2) .introduce .topic {
    animation-delay: 0.9s;
}

.carousel .list .item:nth-child(2) .introduce .des {
    animation-delay: 1.1s;
}

.carousel .list .item:nth-child(2) .introduce .seeMore {
    animation-delay: 1.3s;
}

/* Animaciones Movimiento (NEXT/PREV) */
.carousel.next .item:nth-child(1) {
    animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}

.carousel.next .item:nth-child(2) {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.next .item:nth-child(3) {
    animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}

.carousel.next .item:nth-child(4) {
    animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(5) {
    animation: transformFromPosition4 0.5s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(4) {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(3) {
    animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(2) {
    animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}

/* Keyframes de Movimiento */
@keyframes transformFromPosition1 {
    from {
        transform: var(--item1-transform);
        filter: var(--item1-filter);
        opacity: var(--item1-opacity);
    }
}

@keyframes transformFromPosition2 {
    from {
        transform: var(--item2-transform);
        filter: var(--item2-filter);
        opacity: var(--item2-opacity);
    }
}

@keyframes transformFromPosition3 {
    from {
        transform: var(--item3-transform);
        filter: var(--item3-filter);
        opacity: var(--item3-opacity);
    }
}

@keyframes transformFromPosition4 {
    from {
        transform: var(--item4-transform);
        filter: var(--item4-filter);
        opacity: var(--item4-opacity);
    }
}

@keyframes transformFromPosition5 {
    from {
        transform: var(--item5-transform);
        filter: var(--item5-filter);
        opacity: var(--item5-opacity);
    }
}

/* Botones Flechas */
.arrows {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1140px;
    max-width: 90%;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.arrows button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: var(--font-display);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    /* Forma Cyberpunk */
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.arrows button:hover {
    background: var(--primary-cyan);
    color: black;
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .carousel {
        height: 600px;
    }

    .carousel .list .item .introduce {
        width: 90%;
        left: 5%;
        bottom: 80px;
        top: auto;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        /* Fondo sólido para leer */
    }

    .introduce .topic {
        font-size: 2.5rem;
    }

    .introduce .des {
        font-size: 0.9rem;
    }

    .carousel .list .item img {
        width: 90%;
        right: 5%;
        top: 30%;
        opacity: 0.6;
        /* Imagen más suave para no tapar texto */
    }
}

.carousel .list .item:only-child {
    transform: var(--item2-transform) !important;
    filter: var(--item2-filter) !important;
    z-index: var(--item2-zIndex) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Forzamos a sus hijos (imagen y texto) a ser visibles y estáticos */
.carousel .list .item:only-child img {
    opacity: 1 !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.carousel .list .item:only-child .introduce {
    opacity: 1 !important;
    pointer-events: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Activamos el contenido interno sin esperar animación */
.carousel .list .item:only-child .introduce .title,
.carousel .list .item:only-child .introduce .topic,
.carousel .list .item:only-child .introduce .des,
.carousel .list .item:only-child .introduce .seeMore {
    opacity: 1 !important;
    animation: none !important;
    /* Sin animación de entrada, aparece ya */
    transform: translateY(0) !important;
    filter: blur(0) !important;
}

.carousel .list .item:nth-child(n+6) {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    z-index: var(--item5-zIndex);
    opacity: 0;
    pointer-events: none;
}

/* ========== DIVIDER NEON ========== */
.neon-divider {
    height: 1px;
    /* Grosor de la línea */
    width: 100%;
    /* Ocupa todo el ancho */
    margin: 0.5rem auto;
    /* Espacio vertical */
    border: none;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(6, 182, 212, 0.5) 15%,
            var(--primary-purple) 50%,
            rgba(6, 182, 212, 0.5) 85%,
            transparent 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    animation: lowPulse 4s infinite ease-in-out;
}

@keyframes lowPulse {

    0%,
    100% {
        opacity: 0.5;
        /* Más tenue */
        transform: scaleX(0.95);
        /* Se encoge un poquito horizontalmente */
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.1);
    }

    50% {
        opacity: 1;
        /* Brillo máximo */
        transform: scaleX(1);
        /* Ancho total */
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
        /* Brillo púrpura intenso en el centro */
    }
}

/* ========== ALARM SECTION ========== */
.led-ticker-container {
    background: #111;
    border-top: 3px solid rgba(0, 255, 255, 0.548);
    border-bottom: 3px solid rgba(0, 255, 255, 0.548);
    padding: 10px 0;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.led-display {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.led-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.led-content span {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #ff4500;
    text-shadow: 0 0 5px #ff4500, 0 0 10px #ffffff;
    letter-spacing: 3px;
    margin-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== ZYLOX MENU ========== */
.ufo-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    /* Por encima de todo */
}

.ufo-menu {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* No bloquea clicks cuando está cerrado */
}

/* 1. BOTÓN CENTRAL (TOGGLE) */
.ufo-toggle {
    position: absolute;
    width: 135px;
    height: 135px;
    background: #222237;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    border: 2px solid var(--primary-cyan);
}

.ufo-toggle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: 0.5s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

/* Estado Activo (Abierto) */
.ufo-menu.active .ufo-toggle {
    transform: rotate(360deg) scale(1.1);
    background: var(--bg-card);
    box-shadow: 0 0 30px var(--primary-lime);
    border-color: var(--primary-lime);
}

/* Badge (Contador Rojo) */
.ufo-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #222237;
    z-index: 101;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* 2. ITEMS RADIALES (OPCIONES) */
.ufo-menu li {
    position: absolute;
    left: calc(50% - 30px);
    top: calc(50% - 30px);
    list-style: none;
    width: 60px;
    height: 60px;
    /* Lógica Radial: Rotar y empujar hacia afuera */
    transform: rotate(calc(360deg / 8 * var(--i))) translateX(0px);
    /* Inicialmente ocultos en el centro */
    transform-origin: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ufo-menu.active li {
    visibility: visible;
    opacity: 1;
    /* Al abrirse, se alejan 110px del centro */
    transform: rotate(calc(360deg / 8 * var(--i))) translateX(110px);
}

/* Efecto Diamante Brillante */
.ufo-menu li::before {
    content: "";
    position: absolute;
    inset: 20px;
    box-shadow: 0 0 0 2px var(--clr), 0 0 0 4px var(--bg-dark), 0 0 0 6px var(--clr);
    transition: 0.5s;
    z-index: 1;
    border-radius: 10px;
    opacity: 0;
}

.ufo-menu li:hover::before {
    inset: 0;
    opacity: 1;
}

.ufo-menu li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    transform: rotate(45deg);
    /* Rombo */
    z-index: 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.ufo-menu li:hover::after {
    background: var(--clr);
    /* Se llena de color */
    border: none;
    box-shadow: 0 0 15px var(--clr);
    transform: rotate(45deg) scale(1.1);
}

/* Iconos */
.ufo-menu li a {
    position: relative;
    z-index: 10;
    color: var(--clr);
    font-size: 1.8em;
    transition: 0.5s;
    /* Contrarrestar rotación para que el icono se vea derecho */
    transform: rotate(calc(360deg / -8 * var(--i)));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.ufo-menu li:hover a {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: rotate(calc(360deg / -8 * var(--i))) scale(1.2);
}

/* 3. TOOLTIPS (ETIQUETAS FLOTANTES) */
.ufo-label {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 35, 0.9);
    color: var(--clr);
    padding: 5px 5px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--clr);
    pointer-events: none;
    z-index: 20;
}

/* Flechita del Tooltip */
.ufo-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    /* Centrado manual */
    border-width: 6px;
    border-style: solid;
    border-color: var(--clr) transparent transparent transparent;
}

/* Mostrar Tooltip al Hover */
.ufo-menu li:hover .ufo-label {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

/* Sobreponer Tooltip al Hover */
.ufo-menu li:hover {
    z-index: 1000 !important;
}

/* 4. RESPONSIVE MÓVIL */
@media (max-width: 480px) {
    .ufo-container {
        right: 20px;
        bottom: 20px;
    }

    .ufo-menu {
        width: 240px;
        height: 240px;
    }

    .ufo-toggle {
        width: 60px;
        height: 60px;
    }

    .ufo-menu.active li {
        transform: rotate(calc(360deg / 8 * var(--i))) translateX(90px);
        /* Menor radio */
    }

    .ufo-label {
        display: none;
    }
}

/* ========== ZYLOX BURBUJA ========== */
.notification-bubble {
    position: fixed;
    bottom: 217px;
    right: 165px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f0f23;
    padding: 15px 20px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.6);
    z-index: 10000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--primary-lime);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: auto;
}

/* El triangulito de la viñeta */
.notification-bubble::after {
    content: '';
    position: absolute;
    bottom: -19.5px;
    right: -2px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid var(--primary-lime);
    /* Mismo color del borde */
}

/* Animación de entrada */
@keyframes popIn {
    0% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Animación de salida */
@keyframes popOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }
}

/* ========== CARRITO ========== */
.cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    /* Centrado absoluto */
    transform: translate(-50%, -50%) scale(0.8);
    width: 60%;
    height: 80%;

    /* Fondo Mutación: Burbujas verdes difuminadas */
    background:
        radial-gradient(circle at 20% 30%, rgba(132, 204, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        rgba(10, 10, 20, 0.95);
    /* Base oscura */

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-lime);
    box-shadow: 0 0 50px rgba(132, 204, 22, 0.2), inset 0 0 20px rgba(132, 204, 22, 0.1);
    border-radius: 20px;

    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* EFECTO ABDUCCIÓN (SALIDA) */
.cart-modal.abducting {
    animation: abductionExit 1.5s forwards cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.cart-header .close-cart {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-lime);
    color: var(--primary-lime);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
    backdrop-filter: blur(5px);
}

.cart-header .close-cart:hover {
    background: var(--primary-lime);
    color: #000;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 25px var(--primary-lime);
}

.cart-header .close-cart i {
    pointer-events: none;
}

@keyframes abductionExit {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }

    20% {
        transform: translate(-50%, -40%) scale(0.9);
        filter: brightness(2) hue-rotate(90deg);
    }

    100% {
        transform: translate(-50%, -200vh) scale(0.1);
        opacity: 0;
    }

}

/* HEADER */
.cart-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(132, 204, 22, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.cart-header h2 {
    font-family: var(--font-display);
    color: var(--primary-lime);
    text-shadow: 0 0 10px var(--primary-lime);
    letter-spacing: 2px;
}

/* ITEMS (GRILLA MUTANTE) */
.cart-items {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 23px;
    align-content: start;
    overflow-y: auto;
}

/* CADA ITEM (BURBUJA FLOTANTE) */
.cart-item {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.5rem;
    overflow: hidden;
    transition: 0.3s;
    min-height: 240px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    box-shadow: 0 0 0 1px transparent;
}

.cart-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.cart-item:hover img {
    transform: scale(1.05) translateY(-5px);
}

/* ITEM MVP (EL MÁS CARO - SE VE MÁS GRANDE Y BRILLANTE) */
.cart-item.mvp-item {
    border-color: var(--primary-lime);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.2);
    transform: scale(1.1);
    z-index: 2;
    background: rgba(132, 204, 22, 0.05);
}

@keyframes floatItem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.cart-item.mvp-item {
    animation: floatMVP 3s infinite ease-in-out;
}

@keyframes floatMVP {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.cart-item h4,
.cart-item p {
    text-shadow: none;
    transform: translateZ(0);
}

.cart-item h4 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Botón eliminar flotante */
.cart-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.2);
}

.cart-item .remove-btn i {
    font-size: 1.1rem;
}

.cart-item .remove-btn:hover {
    background: #ff4444;
    color: white;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
    transform: rotate(90deg);
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-cyan);
}


/* FOOTER (RESUMEN DE PAGO) */
.cart-footer {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-top: 1px solid rgba(132, 204, 22, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-display);
}

.summary-row.total span:last-child {
    color: var(--primary-lime);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--primary-lime), #4d7c0f);
    border: none;
    color: black;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
    cursor: pointer;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

.checkout-btn:hover {
    background: white;
    box-shadow: 0 0 40px var(--primary-lime);
    letter-spacing: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-modal {
        width: 95%;
        height: 90%;
    }

    .cart-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== FOOTER ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer {
    position: relative;
    margin-top: 300px;
    /* Espacio para la animación superior */
    padding: 3rem 0;
    color: var(--text-main);
    background: #000;
    /* Fondo negro puro */
    font-family: 'Rajdhani', sans-serif;
    overflow: visible;
    /* Importante para ver la animación arriba */
}

/* --- ESTRUCTURA DE COLUMNAS --- */
.footer__columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Alineación superior */
    gap: 20px;
    flex-wrap: wrap;
}

.footer__col {
    flex: 1;
    min-width: 250px;
}

/* Columna Central (Logo) Especial */
.footer__col.center-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transition: transform 0.3s ease;
    margin-top: 50px;
    transform: translateX(-100px);
}

.footer-logo:hover {
    transform: translateX(-100px) scale(1.1) rotate(2deg);
}

/* Títulos de Columna */
.footer__col-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: var(--primary-cyan);
}

.footer__col-title span {
    margin-left: 10px;
}

/* --- LISTAS Y ENLACES --- */
.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* Más compacto */
    list-style: none;
}

.footer__nav-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    /* Color gris suave */
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.footer__nav-link i {
    margin-right: 10px;
    color: var(--primary-lime);
    /* Iconos verdes */
    font-size: 1.2rem;
}

.footer__nav-link:hover {
    color: #fff;
    padding-left: 5px;
    /* Pequeño movimiento al hover */
}

/* --- COPYRIGHT --- */
.footer__copyrights {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-lime);
}

.zylox-signature {
    color: var(--primary-cyan);
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
    text-shadow: 0 0 8px var(--primary-cyan);
}

/* --- ANIMACIONES --- */
.footer__parralax {
    position: absolute;
    left: 0;
    top: -300px;
    /* Se posiciona ARRIBA del footer */
    height: 300px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Click through */
    z-index: 1;
}

/* Elementos comunes de fondo */
.footer__parralax-trees,
.footer__parralax-premierplan,
.footer__parralax-secondplan {
    position: absolute;
    inset: 0;
    background-repeat: repeat-x;
    background-position-y: 100% !important;
    animation: parralax 60s linear infinite;
}

/* ÁRBOLES (Fondo Lejano) */
.footer__parralax-trees {
    background-image: url(https://i.ibb.co/nQM4PGJ/arbres.png);
    bottom: -60px;
    animation-duration: 100s;
    /* Más lento */
    filter: hue-rotate(240deg) brightness(0.6);
    /* Efecto noche azulada */
}

/* PLANO MEDIO */
.footer__parralax-secondplan {
    background-image: url(https://i.ibb.co/J3TjC4W/second-plan.png);
    animation-duration: 60s;
    filter: hue-rotate(280deg);
    /* Efecto morado */
}

/* PRIMER PLANO (Suelo) */
.footer__parralax-premierplan {
    background-image: url(https://i.ibb.co/RQhDWbk/premierplanv3.png);
    animation-duration: 30s;
    /* Más rápido */
}

/* 🏍️ LA MOTO (Luego será el OVNI) */
.footer__parralax-moto {
    position: absolute;
    bottom: 80px;
    left: 50%;
    margin-left: -250px;
    height: 200px;
    width: 150px;
    background: url(https://res.cloudinary.com/degcddlab/image/upload/v1765089891/UFO_Footer_ckr86p.gif) no-repeat;
    transform-origin: 50% 80%;
    animation: moto 5s linear infinite;
}

/* 🚗 EL CARRO (Luego será la Vaca) */
.footer__parralax-voiture {
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: 250px;
    height: 114px;
    width: 206px;
    background: url(https://res.cloudinary.com/degcddlab/image/upload/v1765090213/Quieta_jbnx70.gif) no-repeat;
    animation: voiture 1s linear infinite;
}

/* KEYFRAMES */
@keyframes parralax {
    0% {
        background-position: 260px;
    }

    100% {
        background-position: -10000px;
    }
}

@keyframes moto {
    0% {
        transform: translateY(0) rotate(0);
    }

    5% {
        transform: translateY(0) rotate(-5deg);
    }

    25% {
        transform: translateY(60px) rotate(-20deg);
    }

    49% {
        transform: translateY(0) rotate(-1deg);
    }

    51% {
        transform: translateY(0) rotate(1deg);
    }

    75% {
        transform: translateY(60px) rotate(20deg);
    }

    80% {
        transform: translateY(60px) rotate(0deg);
    }

    98% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes voiture {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(0);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer__columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__col-title {
        justify-content: center;
    }

    .footer__nav-link {
        justify-content: center;
    }

    .footer__parralax-moto {
        margin-left: -100px;
        /* Ajuste móvil */
    }

    .footer__parralax-voiture {
        margin-left: 50px;
        /* Ajuste móvil */
    }
}

.zylox-menu {
    position: fixed;
    top: 100px;
    /* Por defecto, se posicionará con JS */
    right: 20px;
    width: 320px;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-cyan);
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(6, 182, 212, 0.3);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999;
    /* Asegurar que esté por encima de todo */
    overflow: hidden;
}

/* Estado Activo */
.zylox-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Borde superior neón */
.zylox-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-purple),
            var(--primary-cyan),
            var(--primary-lime));
}

/* Header del menú */
.menu-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
}

/* Avatar */
.menu-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-cyan);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Info del usuario */
.menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Items del menú */
.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-cyan);
    padding-left: 25px;
}

/* Botón de logout específico */
.logout-btn {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.logout-btn:hover {
    background: rgba(255, 69, 69, 0.1);
    border-left-color: #ff4444;
}

.logout-btn:hover i {
    animation: logout-shake 0.5s ease;
}

@keyframes logout-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .zylox-menu {
        width: 90%;
        max-width: 350px;
        right: 5%;
        left: 5%;
    }
}

/* ========== CORRECCIONES ADICIONALES AL HEADER ========== */

/* Asegurar que el botón de login tenga el cursor correcto */
.login-btn {
    cursor: pointer !important;
    position: relative;
}

/* Evitar que el botón se distorsione al cambiar a avatar */
.login-btn img,
.login-btn span {
    cursor: pointer;
    display: block;
}

.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Fondo oscuro */
    backdrop-filter: blur(15px);
    /* Efecto cristal */
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-modal.active {
    opacity: 1;
    visibility: visible;
}

.logout-content {
    background: #151f28;
    border: 1px solid #ff4444;
    /* Borde rojo alerta */
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logout-modal.active .logout-content {
    transform: scale(1);
}

.logout-icon {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 10px;
    animation: pulse-red 2s infinite;
}

.logout-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-content p {
    font-family: 'Rajdhani', sans-serif;
    color: #a0a0a0;
    font-size: 1.2rem;
}

.logout-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-cancel,
.btn-confirm-logout {
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 0.9rem;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: white;
    color: black;
}

.btn-confirm-logout {
    background: linear-gradient(90deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.btn-confirm-logout:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.6);
}

@keyframes pulse-red {
    0% {
        text-shadow: 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        text-shadow: 0 0 20px rgba(255, 68, 68, 0);
    }

    100% {
        text-shadow: 0 0 0 rgba(255, 68, 68, 0);
    }
}