/* ===== RESET Y VARIABLES GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #c4ff00;
    --secondary: #ff3366;
    --accent: #00ffcc;
    --dark: #0a0e27;
    --medium: #1a1e3a;
    --light: #2a2e4a;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(10px);
    --glass-blur-strong: blur(20px);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== ESTILOS BASE ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--dark);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===== CANVAS Y EFECTOS DE FONDO GLOBALES ===== */
.canvas-bg,
#universe,
#particles-canvas,
#wave-canvas,
#dna-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.floating-orbs,
.energy-orbs,
.particles-bg,
.radio-waves,
.genre-effects {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float-orb 20s infinite ease-in-out;
}

.orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 255, 0, 0.3), transparent);
    top: -150px;
    left: -150px;
    animation-duration: 25s;
}

.orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.3), transparent);
    bottom: -100px;
    right: -100px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.2), transparent);
    top: 50%;
    left: 50%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.app-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-bottom: 90px;
}

/* ===== HEADER GLOBAL MEJORADO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    z-index: 100;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(196, 255, 0, 0.02), 
        rgba(0, 255, 204, 0.02)
    );
    pointer-events: none;
}

.header-content {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Avatar del usuario */
.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(196, 255, 0, 0.2);
}

/* Información del usuario */
.user-info {
    flex: 1;
    margin-left: 4px;
}

.user-name {
    font-size: 17px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    line-height: 1.3;
}

.user-location {
    font-size: 13px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-simple 2s infinite;
}

@keyframes pulse-simple {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

/* Botón de configuración */
.settings-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

.settings-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Títulos de página en header */
.page-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    opacity: 0.6;
}

/* Headers centrados (para pantallas simples) */
.header-center {
    justify-content: center;
    text-align: center;
}

.header-center .header-content {
    flex-direction: column;
    gap: 8px;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    max-width: 420px;
    margin: 0 auto;
    padding: 120px 20px 20px;
}

/* ===== COMPONENTES GLASSMORPHISM ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    transition: all 0.3s var(--transition);
}

.glass-card-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: 30px;
}

.glass-card:hover {
    border-color: rgba(196, 255, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

/* ===== BOTONES GLOBALES ===== */
.btn {
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 255, 0, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(196, 255, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    backdrop-filter: var(--glass-blur);
}

.btn-icon:hover {
    background: rgba(196, 255, 0, 0.1);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ===== SECCIONES ===== */
.section {
    margin-bottom: 35px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== AVATARES GLOBALES ===== */
.avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
    position: relative;
    transition: all 0.3s var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(196, 255, 0, 0.6);
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar:hover::before {
    opacity: 0.5;
    animation: rotate 2s linear infinite;
}

/* ===== NAVEGACIÓN INFERIOR GLOBAL ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-top: 1px solid rgba(196, 255, 0, 0.1);
    padding: 15px 0 25px;
    z-index: 100;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(196, 255, 0, 0.05), transparent);
    pointer-events: none;
}

.nav-container {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.nav-item:hover::before {
    opacity: 0.1;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 8px var(--primary));
    transform: scale(1.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 3px;
}

.nav-item.active::before {
    opacity: 0.15;
}

.nav-icon {
    font-size: 22px;
    transition: all 0.3s var(--transition);
    margin-bottom: 2px;
}

.nav-item:hover .nav-icon {
    transform: translateY(-1px) scale(1.05);
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.nav-item.active .nav-label {
    opacity: 1;
    font-weight: 700;
}



/* ===== FORMULARIOS GLOBALES ===== */
.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    font-size: 16px;
    transition: all 0.3s var(--transition);
    backdrop-filter: var(--glass-blur);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(196, 255, 0, 0.05);
    box-shadow: 0 0 20px rgba(196, 255, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== BADGES GLOBALES ===== */
.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: rgba(196, 255, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.badge-live {
    background: var(--secondary);
    color: white;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== NOTIFICACIONES GLOBALES ===== */
.notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s var(--transition);
    max-width: 90%;
    text-align: center;
}

.notification.success {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, var(--secondary), #e55039);
    color: white;
}

.notification.info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        transform: translate(-50%, -30px); 
        opacity: 0;
    }
    to { 
        transform: translate(-50%, 0); 
        opacity: 1;
    }
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== CLASES ÚTILES ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-white {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;    
    margin: auto;
}

.social-link:hover {
    transform: scale(1.2) translateY(-2px);
    opacity: 1;
    background: rgba(196, 255, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(196, 255, 0, 0.3);
    color: var(--primary);
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 480px) {
    .main-content {
        padding: 100px 15px 15px;
    }
    
    .header {
        padding: 15px;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }

    .social-links {
        gap: 15px;
        justify-content: center;
    }

    .social-link {
        font-size: 14px;
        width: 32px;
        height: 32px;
        padding: 6px;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 90px 12px 12px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Navegación responsive */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .bottom-nav {
        padding: 12px 0 20px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        font-size: 12px;
        width: 28px;
        height: 28px;
        padding: 5px;
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== EFECTOS HOVER PARA GLASSMORPHISM ===== */
@media (hover: hover) {
    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s var(--transition);
    }
    
    .glass-card:hover::before {
        left: 100%;
    }
}

.back-link{
    margin:50px auto 0;
}