/* --- CSS BASE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            cursor: none !important;
        }

        html {
            color-scheme: dark;
            scroll-behavior: smooth
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: radial-gradient(circle at 20% 50%, #2a0505, #000000 70%);
            color: #fff;
            overflow-x: hidden;
            cursor: none;
        }

        canvas {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none
        }

        /* --- HEADER --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, .9);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 50px;
            z-index: 3002;
            box-shadow: 0 2px 8px rgba(255, 255, 255, .05)
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px
        }

        .logo img {
            width: 40px;
            height: 40px;
            border-radius: 50%
        }

        .logo span {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 20px;
            align-items: center
        }

        nav ul li {
            position: relative
        }

        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 5px;
            transition: .3s
        }

        nav ul li a:hover {
            color: #ff3c3c
        }

        nav ul li a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0;
            height: 2px;
            background: #ff3c3c;
            transition: width .3s
        }

        nav ul li a:hover::after {
            width: 100%
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(0, 0, 0, .95);
            padding: 10px 0;
            border-radius: 8px;
            min-width: 200px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
            z-index: 25;
        }

        nav ul li:hover .submenu {
            display: block;
        }

        .submenu li {
            padding: 5px 20px;
        }

        .submenu li a {
            display: block;
            color: #fff;
            padding: 8px 10px;
            transition: .3s;
            position: relative;
            white-space: nowrap;
        }

        .submenu li a:hover {
            background: rgba(65, 11, 11, 0.8);
            color: #fff;
            border-radius: 5px;
            transform: translateX(3px);
        }

        nav ul li.parent-active>a {
            color: #d4af37 !important;
            font-weight: 700;
        }

        nav ul li.parent-active>a::after {
            content: "";
            width: 100%;
            background: #ff3c3c;
            height: 2px;
            position: absolute;
            left: 0;
            bottom: -5px;
        }

        .submenu li a.active-page {
            background: #5c0c0c;
            color: #fff !important;
            font-weight: 700;
            border-radius: 10px;
            border-left: 5px solid #d4af37;
            border-bottom: none;
            margin: 5px 10px;
            /* Rounded card style */
            padding-left: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        

        

        /* Ocultar Nav de PC en Móvil */
        @media (max-width: 900px),
        (max-width: 1025px) and (orientation: portrait) {
            nav {
                display: none;
            }

            

            /* Asegurar que el header esté encima del menú */
            header {
                padding: 15px 20px;
                z-index: 100;
            }
        }

        /* Contenedor del Menú Móvil */
        

        

        

        

        /* Resaltado del Padre Activo (Cuando abres el submenú) */
        

        

        /* Estilo para la página actual */
        

        /* Submenús */
        

        

        /* Estilo de sub-item activo (tipo tarjeta) */
        

        /* --- Optimización Landscape (Celulares horizontales) --- */
        @media (max-width: 900px) and (orientation: landscape) {
            

            

            /* Ajuste header delgado */
            header {
                padding: 5px 20px;
            }
        }

        /* --- LAYOUT CREADOR --- */
        section.creator-hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 5% 150px;
            position: relative;
            z-index: 5;
        }

        .profile-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 60px;
            align-items: center;
            width: 100%;
            max-width: 1400px;
        }

        /* COLUMNA DE IMAGEN (IZQUIERDA) */
        .profile-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Contenedor del Visualizador */
        .visual-frame {
            position: relative;
            width: 560px;
            /* Aumentado para dar espacio a la imagen de 350px + espectro */
            height: 560px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Canvas del Visualizador (Estilo JS.Nation) */
        #visualizer-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            /* Detrás de la imagen */
            filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
            /* Glow dorado */
        }

        .profile-img {
            width: 350px;
            height: 350px;
            object-fit: cover;
            border-radius: 50%;
            position: relative;
            z-index: 2;
            /* Encima del canvas */
            border: 4px solid #000;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
            clip-path: circle(50% at 50% 50%);
            /* Elimina el cuadro invisible */

            /* OPTIMIZACIÓN DE RENDIMIENTO */
            will-change: transform;
            transition: transform 0.1s ease-out;
        }

        @media(max-width: 1000px) {
            .visual-frame {
                width: 320px;
                height: 320px;
                margin: 0 auto;
            }

            .profile-img {
                width: 200px;
                height: 200px;
            }
        }

        @media(max-width: 480px) {
            .visual-frame {
                width: 280px;
                height: 280px;
            }

            .profile-img {
                width: 170px;
                height: 170px;
            }
        }

        /* COLUMNA DE TEXTO */
        .profile-content {
            text-align: left;
            position: relative;
        }

        .profile-content::before {
            content: "CREATOR";
            position: absolute;
            top: -60px;
            left: -20px;
            font-size: 8rem;
            font-weight: 900;
            color: rgba(255, 255, 255, 0.03);
            z-index: -1;
            font-family: 'Cinzel', serif;
        }

        h1 {
            font-family: 'Cinzel', serif;
            font-size: 4rem;
            line-height: 1.1;
            color: #fff;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        }

        .highlight-name {
            color: #d4af37;
            display: block;
            text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
        }

        h2.role {
            font-size: 1.5rem;
            color: #ff3c3c;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 30px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        h2.role::after {
            content: '';
            flex-grow: 1;
            height: 2px;
            background: linear-gradient(to right, #ff3c3c, transparent);
            max-width: 200px;
        }

        .bio-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #ccc;
            margin-bottom: 40px;
            border-left: 3px solid rgba(212, 175, 55, 0.5);
            padding-left: 25px;
        }

        .contact-grid {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn-premium {
            padding: 15px 35px;
            border-radius: 0;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-wsp {
            background: transparent;
            color: #25D366;
            border-color: #25D366;
        }

        .btn-wsp:hover {
            background: #25D366;
            color: #000;
            box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
        }

        .btn-mail {
            background: transparent;
            color: #d4af37;
            border-color: #d4af37;
        }

        .btn-mail:hover {
            background: #d4af37;
            color: #000;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        }

        /* --- REPRODUCTOR --- */
        .music-player-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 320px;
            background: rgba(10, 10, 10, 0.85);
            border: 1px solid rgba(212, 175, 55, 0.4);
            border-radius: 15px;
            padding: 15px;
            z-index: 2000;
            backdrop-filter: blur(10px);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.1);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: transform 0.3s ease;
        }

        .music-info {
            display: flex;
            flex-direction: column;
            margin-bottom: 5px;
        }

        .song-title {
            color: #d4af37;
            font-weight: 700;
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .song-artist {
            color: #aaa;
            font-size: 0.8rem;
        }

        .progress-container {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.75rem;
            color: #ccc;
        }

        .progress-bar-bg {
            flex-grow: 1;
            height: 4px;
            /* The visual height of the bar remains thin */
            background: rgba(212, 175, 55, 0.2);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            touch-action: none;
            /* No padding here to keep visual math perfect */
        }

        /* Hitbox invisible para facilitar el click (Mobile y PC) */
        .progress-bar-bg::after {
            content: '';
            position: absolute;
            top: -15px;
            bottom: -15px;
            left: 0;
            right: 0;
            z-index: 10;
            /* background: rgba(255,0,0,0.3); Descomentar para debuggear hitbox */
        }

        .progress-bar-fill {
            height: 100%;
            background: #d4af37;
            width: 0%;
            border-radius: 2px;
            position: relative;
        }

        .progress-bar-fill::after {
            content: '';
            position: absolute;
            right: -4px;
            top: -3px;
            width: 10px;
            height: 10px;
            background: #000000;
            border-radius: 50%;
            box-shadow: 0 0 5px #d4af37;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .progress-bar-bg:hover .progress-bar-fill::after {
            opacity: 1;
        }

        .controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }

        .control-btn {
            background: transparent;
            border: none;
            color: #d4af37;
            font-size: 1.2rem;
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            position: relative;
        }

        /* Hitbox invisible masiva para facilitar tap en celulares */
        .control-btn::after {
            content: '';
            position: absolute;
            top: -15px;
            bottom: -15px;
            left: -15px;
            right: -15px;
            z-index: 10;
        }

        .control-btn:hover {
            color: #fff;
            transform: scale(1.1);
        }

        .play-pause-btn {
            width: 40px;
            height: 40px;
            background: transparent;
            border-radius: 50%;
            border: 2px solid #d4af37;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #d4af37;
            font-size: 1rem;
        }

        .play-pause-btn:hover {
            background: #d4af37;
            color: #000;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
        }

        /* Footer & Otros */
        .social-links {
            position: fixed;
            bottom: 30px;
            left: 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100
        }

        .social-links a {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, .15);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 22px;
            transition: .3s;
            backdrop-filter: blur(5px)
        }

        .social-links a:hover {
            background: linear-gradient(135deg, #d4af37, #ffecb3);
            color: #000;
            transform: scale(1.1);
            box-shadow: 0 0 15px #d4af37, 0 0 30px #ffecb3
        }

        footer {
            text-align: center;
            padding: 25px 10px;
            color: #d4af37;
            font-size: .95rem;
            width: 100%;
            margin-top: auto
        }

        .code-sticker {
            position: absolute;
            top: 130px;
            left: 5%;
            width: 85px;
            z-index: 10;
            opacity: 0.8;
            filter: drop-shadow(0 0 10px rgba(103, 58, 183, 0.5));
            animation: sticker-float 6s ease-in-out infinite;
        }

        @keyframes sticker-float {

            0%,
            100% {
                transform: perspective(500px) rotate(-10deg) scale(1);
            }

            50% {
                transform: perspective(500px) rotate(15deg) scale(1.15);
            }
        }

        /* --- Tablet PC-Like Layout Scaling (768px - 1025px) --- */
        @media (min-width: 768px) and (max-width: 1025px) {
            section.creator-hero {
                padding: 100px 30px 100px;
                /* Reduced vertical padding */
            }

            .profile-wrapper {
                /* Force Grid Layout like PC */
                display: grid;
                grid-template-columns: 1fr 1.1fr;
                /* Slightly more balanced for tablet */
                gap: 20px;
                /* Much smaller gap than PC (60px) */
                align-items: center;
            }

            /* Scale down the Visual Frame significantly to fit */
            .visual-frame {
                width: 320px;
                height: 320px;
                margin: 0 auto;
            }

            .profile-img {
                width: 200px;
                height: 200px;
            }

            /* Scale Typography */
            h1 {
                font-size: 2.5rem;
                /* Smaller than PC (4rem) */
            }

            .profile-content::before {
                font-size: 6rem;
                top: -40px;
            }

            .bio-text {
                font-size: 0.95rem;
                /* Readable but smaller */
                margin-bottom: 25px;
            }

            .btn-premium {
                padding: 12px 25px;
                font-size: 0.9rem;
            }

            /* Music Player & Socials adjustment for Tablet */
            .music-player-container {
                bottom: 20px;
                right: 20px;
                width: 300px;
                /* Slightly tighter */
            }

            /* Ensure footer clears player */
            footer {
                padding-bottom: 30px;
            }
        }


        /* --- Mobile Optimization (Responsive) --- */
        /* --- Mobile Optimization (Responsive) --- */

        /* 1. Navigation Breakpoint (Keep Hamburger on Tablets/Phones) */
        @media(max-width: 1000px) {
            nav {
                display: none;
            }

            

            header {
                padding: 15px 20px;
                z-index: 3002;
            }

            /* Ensure footer clears player if needed, but layout remains PC-like */
            footer {
                padding-bottom: 25px;
            }
        }

        /* 2. Content Layout Breakpoint (Mobile Phones ONLY - < 768px) */
        /* Tablets (768px+) will show PC Grid Layout */
        @media(max-width: 767px) {
            section.creator-hero {
                /* Reduce vertical padding significantly */
                padding: 100px 20px 180px;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                /* Start from top */
            }

            .profile-wrapper {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 20px;
                /* Reduced gap from 40px */
            }

            .profile-content {
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            /* Better spacing for bio */
            .bio-text {
                border-left: none;
                border-top: 2px solid rgba(212, 175, 55, 0.5);
                padding-left: 0;
                padding-top: 15px;
                margin-bottom: 25px;
                font-size: 0.95rem;
                /* Slightly smaller for mobile reading */
                line-height: 1.6;
            }

            h2.role {
                justify-content: center;
                font-size: 1.2rem;
                /* Compact role title */
                margin-bottom: 20px;
            }

            h2.role::after {
                display: none;
            }

            /* Buttons side-by-side but full width if needed */
            .contact-grid {
                justify-content: center;
                width: 100%;
                gap: 15px;
            }

            .btn-premium {
                padding: 12px 25px;
                font-size: 0.9rem;
            }

            /* Visual elements */
            .visual-frame {
                width: 260px;
                height: 260px;
                margin: 0 auto;
            }

            .profile-img {
                width: 180px;
                height: 180px;
            }

            /* Typography adjustments */
            h1 {
                font-size: 2.8rem;
                margin-top: 10px;
            }

            .profile-content::before {
                font-size: 5rem;
                top: -40px;
                left: 50%;
                transform: translateX(-50%);
            }

            /* Music Player docked at bottom with better safe area */
            .music-player-container {
                width: 94%;
                left: 3%;
                right: 3%;
                bottom: 20px;
                /* Docked nicely */
                padding: 10px;
                gap: 5px;
            }

            .controls {
                gap: 15px;
            }

            /* --- MUSIC PLAYER DOCK LOGIC --- */
            #music-dock-mobile {
                position: relative;
                width: 100%;
                height: 60px;
                /* Súper ajustado a la altura real del contenido interno */
                margin-top: -10px;
                /* Acerda el reproductor más hacia arriba a los botones */
                z-index: 10;
            }

            .music-player-container.docked-player {
                position: absolute !important;
                bottom: 20px !important;
                /* El `left: 3%` y `right: 3%` se heredan, igualando su exacto ancho y posición
                   que tenía cuando estaba en `fixed` con respecto al viewport */
            }

            /* Reposition Social Links for Mobile to avoid clutter */
            .social-links {
                position: static;
                /* No longer fixed */
                flex-direction: row;
                justify-content: center;
                padding: 20px 0;
                width: 100%;
                margin-top: 20px;
            }

            .code-sticker {
                width: 50px;
                top: 85px;
                /* Tucked higher under nav */
                left: 10px;
                opacity: 0.6;
            }

            /* Add padding to footer so it clears the music player */
            footer {
                padding-bottom: 15px;
                /* Altamente reducido para pegar todo */
            }
        }

        #sad-flash {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            z-index: 99999;
            opacity: 1;
            pointer-events: none;
            transition: opacity 2s ease-in-out;
        }

        .text-gold-shine {
            color: #d4af37;
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
            animation: shine 2s infinite alternate;
        }

        @keyframes shine {
            from {
                text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
            }

            to {
                text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(255, 236, 179, 0.6);
            }
        }


        /* EFECTO DE SELECCIÓN MÁGICA */
        ::selection {
            background: rgba(106, 15, 15, 0.8);
            color: #ffffff;
            text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37, 0 0 20px #ffecb3;
        }

        ::-moz-selection {
            background: rgba(106, 15, 15, 0.8);
            color: #ffffff;
            text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
        }

        /* Estilo de la partícula mágica */
        .magic-star {
            position: fixed;
            pointer-events: none;
            background: #d4af37;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            box-shadow: 0 0 10px #ffecb3;
            animation: fadeOut 1s linear forwards;
            z-index: 9999;
        }

        @keyframes fadeOut {
            0% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }

            100% {
                opacity: 0;
                transform: scale(0) translateY(20px);
            }
        }

        /* Custom Animated Cursor */
        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.1s linear;
        }

        .custom-cursor svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
        }

        /* Estilo de la partícula mágica */
        .magic-star {
            position: fixed;
            pointer-events: none;
            background: #d4af37;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            box-shadow: 0 0 10px #ffecb3;
            animation: fadeOutMagic 1s linear forwards;
            z-index: 9999;
        }

        @keyframes fadeOutMagic {
            0% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }

            100% {
                opacity: 0;
                transform: scale(0) translateY(20px);
            }
        }

        /* Ocultar el cursor personalizado VIRTUAL enteramente en móviles */
        @media (pointer: coarse) {
            .custom-cursor {
                display: none !important;
            }
        }


        

        


        

        

        

/* WhatsApp Neon Glow Effect */
.neon-whatsapp {
    color: #25d366;
    text-shadow: 0 0 5px #25d366, 0 0 10px #25d366, 0 0 15px #25d366, 0 0 20px #25d366;
    font-weight: bold;
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px #25d366, 0 0 10px #25d366, 0 0 15px #25d366;
    }
    to {
        text-shadow: 0 0 10px #25d366, 0 0 20px #25d366, 0 0 30px #25d366, 0 0 40px #25d366;
    }
}
