/* ============================================
   DAEJ - TOP 10 MUSICAL
   Estilos Principales
   Subdominio: daej.grupocapitalbermudez.com
   ============================================ */

/* ========== VARIABLES Y CONFIGURACIÓN ========== */
:root {
    /* Paleta de colores DAEJ */
    --negro-profundo: #02020B;
    --azul-oscuro: #1B2A73;
    --lila-brillante: #D9A7FF;
    --blanco-azulado: #EEF7FF;
    --azul-electrico: #3D6BFF;
    --morado-neon: #A855F7;
    --celeste-claro: #BEE7FF;
    --rosa-intenso: #FF4F8B;
    
    /* Gradientes */
    --gradient-1: linear-gradient(135deg, #3D6BFF, #A855F7);
    --gradient-2: linear-gradient(135deg, #A855F7, #BEE7FF);
    --gradient-3: linear-gradient(135deg, #FF4F8B, #A855F7);
    --gradient-4: linear-gradient(45deg, #3D6BFF, #A855F7, #FF4F8B);
    
    /* Sombras neón */
    --glow-blue: 0 0 20px rgba(61, 107, 255, 0.5), 0 0 40px rgba(61, 107, 255, 0.2);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
    --glow-pink: 0 0 20px rgba(255, 79, 139, 0.5), 0 0 40px rgba(255, 79, 139, 0.2);
    
    /* Fuentes */
    --font-primary: 'Montserrat', sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

/* ========== RESET Y ESTILOS BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--negro-profundo);
    color: var(--blanco-azulado);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.loaded {
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--negro-profundo);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-bottom: 30px;
}

.viz-bar {
    width: 6px;
    border-radius: 3px;
    animation: visualize 1.2s ease-in-out infinite;
}

.bar-1 { height: 20px; background: var(--azul-electrico); animation-delay: 0s; }
.bar-2 { height: 35px; background: var(--morado-neon); animation-delay: 0.1s; }
.bar-3 { height: 50px; background: var(--rosa-intenso); animation-delay: 0.2s; }
.bar-4 { height: 40px; background: var(--lila-brillante); animation-delay: 0.3s; }
.bar-5 { height: 55px; background: var(--celeste-claro); animation-delay: 0.4s; }
.bar-6 { height: 30px; background: var(--azul-electrico); animation-delay: 0.5s; }
.bar-7 { height: 45px; background: var(--morado-neon); animation-delay: 0.6s; }

@keyframes visualize {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

.preloader-logo {
    margin-bottom: 30px;
}

.neon-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.preloader-progress {
    max-width: 300px;
    margin: 0 auto;
}

.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-4);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--lila-brillante);
    letter-spacing: 2px;
}

.preloader-particles .particle {
    position: absolute;
    background: var(--morado-neon);
    border-radius: 50%;
    animation: float-particle 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

/* ========== APP CONTAINER ========== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 2, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Menú toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blanco-azulado);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.menu-toggle:hover span {
    background: var(--morado-neon);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-sub {
    font-size: 0.6rem;
    color: var(--lila-brillante);
    letter-spacing: 2px;
    font-weight: 600;
}

/* Header Center */
.header-center {
    flex: 1;
    max-width: 500px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--lila-brillante);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    color: var(--blanco-azulado);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 15px rgba(61, 107, 255, 0.2);
}

.search-glow {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-4);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition-normal);
}

.search-input:focus ~ .search-glow {
    opacity: 1;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header {
    padding: 8px 18px;
    border: 2px solid;
    border-radius: 25px;
    background: transparent;
    color: var(--blanco-azulado);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

.btn-acceder {
    border-color: var(--azul-electrico);
    box-shadow: 0 0 10px rgba(61, 107, 255, 0.2);
}

.btn-acceder:hover {
    background: var(--azul-electrico);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-admin {
    border-color: var(--rosa-intenso);
    box-shadow: 0 0 10px rgba(255, 79, 139, 0.2);
}

.btn-admin:hover {
    background: var(--rosa-intenso);
    box-shadow: var(--glow-pink);
    transform: translateY(-2px);
}

/* User info en header */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--glow-purple);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--lila-brillante);
}

.logout-btn {
    color: var(--rosa-intenso);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    padding: 5px;
}

.logout-btn:hover {
    color: var(--blanco-azulado);
    text-shadow: var(--glow-pink);
}

.header-border {
    height: 2px;
    background: var(--gradient-4);
    opacity: 0.5;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(2, 2, 11, 0.98);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    z-index: 999;
    transition: left var(--transition-normal);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo-text span {
    display: block;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.sidebar-logo-text small {
    color: var(--lila-brillante);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(238, 247, 255, 0.7);
    transition: var(--transition-normal);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--blanco-azulado);
    background: rgba(168, 85, 247, 0.1);
}

.nav-item.active .nav-link {
    color: var(--blanco-azulado);
    background: var(--gradient-1);
    box-shadow: var(--glow-purple);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--gradient-3);
    color: white;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 20px;
}

/* Sidebar Player */
.sidebar-player {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.player-cover .cover-art {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.cover-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-4);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-track {
    font-weight: 600;
    font-size: 0.85rem;
}

.player-artist {
    font-size: 0.7rem;
    color: var(--lila-brillante);
}

.player-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.player-visualizer .bar {
    width: 3px;
    background: var(--azul-electrico);
    border-radius: 1px;
    animation: visualize 0.8s ease-in-out infinite;
}

.player-visualizer .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.player-visualizer .bar:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.player-visualizer .bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.player-visualizer .bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.player-visualizer .bar:nth-child(5) { height: 18px; animation-delay: 0.4s; }

.player-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: var(--gradient-4);
    border-radius: 2px;
    animation: progress-animate 3s ease-in-out infinite;
}

@keyframes progress-animate {
    0% { width: 30%; }
    50% { width: 80%; }
    100% { width: 30%; }
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.7rem;
    color: rgba(238, 247, 255, 0.4);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: sphere-float 8s ease-in-out infinite;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--azul-electrico);
    top: -100px;
    left: -100px;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: var(--morado-neon);
    bottom: -50px;
    right: -50px;
    animation-delay: -4s;
}

.sphere-3 {
    width: 250px;
    height: 250px;
    background: var(--rosa-intenso);
    top: 50%;
    right: 20%;
    animation-delay: -2s;
}

@keyframes sphere-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 20px); }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--lila-brillante);
    letter-spacing: 2px;
}

.hero-badge i {
    color: var(--rosa-intenso);
    animation: pulse 1.5s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line:first-child {
    color: var(--blanco-azulado);
    text-shadow: 0 0 30px rgba(61, 107, 255, 0.5);
}

.title-line.accent {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 6rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(238, 247, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(27, 42, 115, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
    min-width: 180px;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--morado-neon);
    box-shadow: var(--glow-purple);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-text {
    font-size: 0.8rem;
    color: var(--lila-brillante);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-glow {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    background: var(--gradient-3);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    box-shadow: var(--glow-pink);
    font-family: var(--font-primary);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 79, 139, 0.6);
}

.btn-outline {
    padding: 15px 35px;
    border: 2px solid var(--azul-electrico);
    border-radius: 30px;
    background: transparent;
    color: var(--blanco-azulado);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
}

.btn-outline:hover {
    background: var(--azul-electrico);
    box-shadow: var(--glow-blue);
    transform: translateY(-3px);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(238, 247, 255, 0.5);
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========== INFO SECTION ========== */
.info-section {
    padding: 80px 20px;
    background: rgba(2, 2, 11, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.neon-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: rgba(238, 247, 255, 0.7);
    font-size: 1.1rem;
}

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: rgba(27, 42, 115, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--morado-neon);
    box-shadow: var(--glow-purple);
}

.step-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-card p {
    color: rgba(238, 247, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.credentials-hint {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credentials-hint small {
    color: var(--lila-brillante);
    font-size: 0.75rem;
}

.credentials-hint small i {
    margin-right: 5px;
    opacity: 0.7;
}

/* ========== LOGIN SECTION ========== */
.login-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: rgba(2, 2, 11, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.gradient-text {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(238, 247, 255, 0.6);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: rgba(255, 79, 139, 0.15);
    border: 1px solid rgba(255, 79, 139, 0.3);
    color: var(--rosa-intenso);
}

.alert-success {
    background: rgba(61, 107, 255, 0.15);
    border: 1px solid rgba(61, 107, 255, 0.3);
    color: var(--azul-electrico);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(238, 247, 255, 0.8);
}

.form-label i {
    color: var(--morado-neon);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    color: var(--blanco-azulado);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 15px rgba(61, 107, 255, 0.2);
}

.form-input.error {
    border-color: var(--rosa-intenso);
    box-shadow: 0 0 10px rgba(255, 79, 139, 0.2);
}

.field-error {
    color: var(--rosa-intenso);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--lila-brillante);
    cursor: pointer;
    font-size: 1.1rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--azul-electrico);
    background: rgba(61, 107, 255, 0.1);
    box-shadow: var(--glow-blue);
}

.role-card i {
    font-size: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-4);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    margin-top: 10px;
}

.btn-submit:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(238, 247, 255, 0.5);
}

.login-footer a {
    color: var(--lila-brillante);
    text-decoration: underline;
}

/* ========== PÁGINA DE ENCUESTA ========== */
.page-encuesta .main-content,
.page-admin .main-content {
    margin-left: 0;
}

.encuesta-page,
.admin-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header-content h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.page-header-content p {
    color: rgba(238, 247, 255, 0.6);
}

.encuestas-restantes {
    margin-top: 10px;
}

.badge-counter {
    background: rgba(168, 85, 247, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Formulario de encuesta */
.encuesta-form-container {
    background: rgba(27, 42, 115, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 40px;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: rgba(2, 2, 11, 0.5);
    border-radius: var(--border-radius);
    padding: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title i {
    color: var(--morado-neon);
    font-size: 1.2rem;
}

.section-title h3 {
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(238, 247, 255, 0.8);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--blanco-azulado);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 10px rgba(61, 107, 255, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--negro-profundo);
    color: var(--blanco-azulado);
}

.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gradient-4);
    cursor: pointer;
    box-shadow: var(--glow-purple);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 30px;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars i {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.rating-stars i.active {
    color: var(--rosa-intenso);
    text-shadow: 0 0 10px rgba(255, 79, 139, 0.5);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 5px;
    position: relative;
    transition: var(--transition-normal);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gradient-1);
    border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-submit-encuesta,
.btn-reset {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-encuesta {
    background: var(--gradient-4);
    border: none;
    color: white;
    box-shadow: var(--glow-purple);
}

.btn-submit-encuesta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.btn-reset {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--blanco-azulado);
}

.btn-reset:hover {
    border-color: var(--blanco-azulado);
}

/* Mis encuestas */
.mis-encuestas .section-header {
    text-align: left;
    margin-bottom: 25px;
}

.encuestas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.encuesta-card {
    background: rgba(27, 42, 115, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition-normal);
}

.encuesta-card:hover {
    border-color: var(--morado-neon);
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-rating {
    background: var(--gradient-1);
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-genre {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-body h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.card-body p {
    color: rgba(238, 247, 255, 0.6);
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: rgba(238, 247, 255, 0.5);
}

/* ========== PÁGINA ADMIN ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-refresh,
.btn-logout {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-refresh {
    background: rgba(61, 107, 255, 0.2);
    border: 1px solid var(--azul-electrico);
    color: var(--blanco-azulado);
}

.btn-refresh:hover {
    background: var(--azul-electrico);
}

.btn-logout {
    background: rgba(255, 79, 139, 0.2);
    border: 1px solid var(--rosa-intenso);
    color: var(--blanco-azulado);
}

.btn-logout:hover {
    background: var(--rosa-intenso);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(27, 42, 115, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
}

.summary-card:hover {
    border-color: var(--morado-neon);
    transform: translateY(-3px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--card-color, var(--gradient-1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.card-label {
    font-size: 0.8rem;
    color: rgba(238, 247, 255, 0.6);
}

/* Admin Content Layout */
.admin-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
}

.admin-card {
    background: rgba(27, 42, 115, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: rgba(168, 85, 247, 0.2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.admin-card-body {
    padding: 20px;
}

/* Top List */
.top-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.top-position {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--morado-neon);
    min-width: 30px;
}

.top-info {
    flex: 1;
}

.top-info strong {
    display: block;
    font-size: 0.9rem;
}

.top-info small {
    color: rgba(238, 247, 255, 0.5);
    font-size: 0.8rem;
}

.top-rating {
    font-weight: 700;
    color: var(--rosa-intenso);
}

/* Genre List */
.genre-item {
    margin-bottom: 15px;
}

.genre-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.genre-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.genre-bar-fill {
    height: 100%;
    background: var(--gradient-4);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.genre-avg {
    font-size: 0.8rem;
    color: var(--lila-brillante);
}

/* Search Form */
.search-form {
    margin-bottom: 0;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrapper i {
    color: var(--lila-brillante);
}

.search-input-wrapper input {
    flex: 1;
    padding: 10px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--blanco-azulado);
    font-family: var(--font-primary);
}

.btn-search,
.btn-clear {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
}

.btn-search {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.btn-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--blanco-azulado);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--lila-brillante);
    white-space: nowrap;
}

.admin-table td {
    font-size: 0.85rem;
}

.genre-tag {
    background: rgba(168, 85, 247, 0.15);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.rating-badge {
    font-weight: 700;
    color: var(--rosa-intenso);
}

/* Recent & Daily Lists */
.recent-item,
.daily-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.recent-info {
    flex: 1;
}

.recent-info strong {
    display: block;
}

.recent-info small {
    color: rgba(238, 247, 255, 0.5);
}

.recent-time {
    color: rgba(238, 247, 255, 0.4);
}

.daily-date {
    font-weight: 600;
    min-width: 40px;
}

.daily-bar-container {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
}

.daily-bar {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    min-width: 30px;
    transition: width 0.5s ease;
}

.daily-value {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .admin-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line.accent {
        font-size: 4rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        padding: 10px 15px;
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        gap: 5px;
    }
    
    .btn-header {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .encuesta-form-container {
        padding: 20px;
    }
    
    .role-selector {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line.accent {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .btn-glow,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .login-card {
        padding: 25px;
    }
}

/* ========== ANIMACIONES ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Estilos para scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--negro-profundo);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-4);
}

/* Selección de texto */
::selection {
    background: rgba(168, 85, 247, 0.4);
    color: white;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 80px; /* Espacio respecto al contenido */
    background: rgba(2, 2, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 40px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--blanco-azulado);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-4);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(238, 247, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-col ul li a:hover {
    color: var(--lila-brillante);
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .logo-text .logo-main {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.footer-logo .logo-text .logo-sub {
    font-size: 0.6rem;
    color: var(--lila-brillante);
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(238, 247, 255, 0.5);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(238, 247, 255, 0.4);
}

/* ========== MODALES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(2, 2, 11, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--blanco-azulado);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: var(--rosa-intenso);
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--morado-neon);
}

.modal-body p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--blanco-azulado);
}

.modal-info {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.modal-info small {
    color: rgba(238, 247, 255, 0.6);
    font-size: 0.85rem;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.btn-modal {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.btn-modal:hover {
    box-shadow: var(--glow-purple);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 80px;
    background: rgba(2, 2, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 40px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--blanco-azulado);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-4);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(238, 247, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.footer-col ul li a:hover {
    color: var(--lila-brillante);
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .logo-text .logo-main {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.footer-logo .logo-text .logo-sub {
    font-size: 0.6rem;
    color: var(--lila-brillante);
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(238, 247, 255, 0.5);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(238, 247, 255, 0.4);
}

/* Mejoras para las credenciales en las tarjetas */
.credentials-hint {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.cred-label {
    font-size: 0.7rem;
    color: var(--lila-brillante);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.credentials-hint small {
    color: var(--blanco-azulado);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.credentials-hint small i {
    opacity: 0.7;
    width: 15px;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(2, 2, 11, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 30px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    white-space: nowrap;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--morado-neon);
    font-size: 1.2rem;
}

.toast-notification span {
    color: var(--blanco-azulado);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== FORMULARIO CREAR USUARIO ========== */
.crear-usuario-form {
    background: rgba(2, 2, 11, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.crear-usuario-form h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crear-usuario-form .form-group {
    margin-bottom: 15px;
}

.crear-usuario-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: rgba(238, 247, 255, 0.7);
}

.crear-usuario-form input[type="text"],
.crear-usuario-form input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--blanco-azulado);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.crear-usuario-form input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 10px rgba(61, 107, 255, 0.2);
}

/* ========== BOTÓN LIMPIAR BÚSQUEDA ========== */
.btn-clean-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 79, 139, 0.1);
    border: 1px solid rgba(255, 79, 139, 0.3);
    border-radius: 25px;
    color: var(--rosa-intenso);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.btn-clean-search:hover {
    background: rgba(255, 79, 139, 0.2);
    border-color: var(--rosa-intenso);
    box-shadow: 0 0 15px rgba(255, 79, 139, 0.3);
    transform: translateY(-2px);
}

/* ========== BADGES DE JERARQUÍA ========== */
.jerarquia-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.jerarquia-alta {
    background: rgba(255, 79, 139, 0.2);
    color: #FF4F8B;
    border: 1px solid rgba(255, 79, 139, 0.4);
}

.jerarquia-media {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.jerarquia-baja {
    background: rgba(61, 107, 255, 0.2);
    color: #3D6BFF;
    border: 1px solid rgba(61, 107, 255, 0.4);
}

/* ========== BOTÓN ELIMINAR USUARIO ========== */
.btn-delete-user {
    background: rgba(255, 79, 139, 0.1);
    border: 1px solid rgba(255, 79, 139, 0.3);
    color: var(--rosa-intenso);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.8rem;
}

.btn-delete-user:hover {
    background: rgba(255, 79, 139, 0.3);
    box-shadow: 0 0 10px rgba(255, 79, 139, 0.3);
}

/* ========== FORMULARIO CREAR USUARIO ========== */
.crear-usuario-form {
    background: rgba(2, 2, 11, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.crear-usuario-form h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crear-usuario-form .form-group {
    margin-bottom: 15px;
}

.crear-usuario-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: rgba(238, 247, 255, 0.7);
}

.crear-usuario-form input[type="text"],
.crear-usuario-form input[type="email"],
.crear-usuario-form select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--blanco-azulado);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.crear-usuario-form input:focus,
.crear-usuario-form select:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 10px rgba(61, 107, 255, 0.2);
}

.crear-usuario-form select option {
    background: var(--negro-profundo);
    color: var(--blanco-azulado);
}

/* ========== GRÁFICAS ========== */
.graficas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .graficas-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SIDEBAR PERMISOS ========== */
.sidebar-user-status {
    padding: 10px 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-rol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-admin { background: var(--rosa-intenso); box-shadow: 0 0 8px rgba(255, 79, 139, 0.5); }
.dot-user { background: var(--azul-electrico); box-shadow: 0 0 8px rgba(61, 107, 255, 0.5); }

.permiso-icon {
    margin-left: auto;
    font-size: 0.9rem;
}

.permiso-icon.permitido { color: #22c55e; }
.permiso-icon.denegado { color: #ef4444; }

.permiso-denegado .nav-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.permiso-denegado .nav-link:hover {
    background: transparent;
    color: rgba(238, 247, 255, 0.5);
}

.nav-denegado {
    cursor: not-allowed !important;
}

.nav-denegado:hover {
    background: rgba(255, 79, 139, 0.1) !important;
}

/* ========== TOAST ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(2, 2, 11, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 30px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    white-space: nowrap;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i { color: var(--morado-neon); font-size: 1.2rem; }
.toast-notification span { color: var(--blanco-azulado); font-weight: 500; font-size: 0.9rem; }

/* ========== BOTONES ========== */
.btn-clean-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 79, 139, 0.1);
    border: 1px solid rgba(255, 79, 139, 0.3);
    border-radius: 25px;
    color: var(--rosa-intenso);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.btn-clean-search:hover {
    background: rgba(255, 79, 139, 0.2);
    border-color: var(--rosa-intenso);
    box-shadow: 0 0 15px rgba(255, 79, 139, 0.3);
    transform: translateY(-2px);
}

.btn-delete-small {
    background: rgba(255, 79, 139, 0.1);
    border: 1px solid rgba(255, 79, 139, 0.3);
    color: var(--rosa-intenso);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.8rem;
}

.btn-delete-small:hover {
    background: rgba(255, 79, 139, 0.3);
    box-shadow: 0 0 10px rgba(255, 79, 139, 0.3);
}

.btn-generar-password {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--lila-brillante);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.btn-generar-password:hover {
    background: rgba(168, 85, 247, 0.4);
}

/* ========== JERARQUÍA BADGES ========== */
.jerarquia-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.jerarquia-alta { background: rgba(255, 79, 139, 0.2); color: #FF4F8B; border: 1px solid rgba(255, 79, 139, 0.4); }
.jerarquia-media { background: rgba(168, 85, 247, 0.2); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.4); }
.jerarquia-baja { background: rgba(61, 107, 255, 0.2); color: #3D6BFF; border: 1px solid rgba(61, 107, 255, 0.4); }

/* ========== FORMULARIO CREAR USUARIO ========== */
.crear-usuario-form {
    background: rgba(2, 2, 11, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.crear-usuario-form h4 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.crear-usuario-form .form-group { margin-bottom: 15px; }
.crear-usuario-form label { display: block; margin-bottom: 5px; font-size: 0.85rem; color: rgba(238, 247, 255, 0.7); }

.crear-usuario-form input[type="text"],
.crear-usuario-form input[type="email"],
.crear-usuario-form select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--blanco-azulado);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.crear-usuario-form input:focus,
.crear-usuario-form select:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 10px rgba(61, 107, 255, 0.2);
}

.crear-usuario-form select option {
    background: var(--negro-profundo);
    color: var(--blanco-azulado);
}

/* ========== ESTILOS ADICIONALES RESPONSIVE ========== */

/* Logo personalizado en header */
.logo-custom-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    transition: var(--transition-normal);
}

.logo-custom-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Hero logo */
.hero-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    transition: var(--transition-normal);
}

.hero-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.8);
}

/* Mejoras responsive generales */
@media (max-width: 768px) {
    .logo-custom-img {
        width: 35px;
        height: 35px;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .title-line.accent {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 15px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .stat-box {
        min-width: 200px;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-glow, .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .steps-wrapper {
        gap: 20px;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .login-card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .role-selector {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .title-line.accent {
        font-size: 1.8rem !important;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 15px;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-text {
        font-size: 0.7rem !important;
    }
    
    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .encuesta-form-container {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .title-line.accent {
        font-size: 4rem;
    }
}

/* Mejoras para el sidebar en móvil */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        left: -85%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .header-inner {
        padding: 8px 12px;
    }
    
    .header-center {
        display: none;
    }
    
    .btn-header {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Ajustes para el footer en móvil */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-col ul li a:hover {
        padding-left: 0;
    }
}

/* Animación suave para elementos */
.step-card, .stat-box, .encuesta-card, .summary-card, .admin-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card.animated, .stat-box.animated, .encuesta-card.animated, 
.summary-card.animated, .admin-card.animated {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll suave para toda la página */
html {
    scroll-behavior: smooth;
}

/* Mejoras para inputs en móvil */
@media (max-width: 768px) {
    input, select, textarea, button {
        font-size: 16px !important; /* Previene zoom en iOS */
    }
}

/* ========== CORRECCIÓN BUSCADOR HEADER ========== */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--lila-brillante);
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(238, 247, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 30px;
    color: var(--blanco-azulado);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 15px rgba(61, 107, 255, 0.2);
}

.search-glow {
    position: absolute;
    bottom: -2px;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 2px;
    background: var(--gradient-4);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.search-input:focus ~ .search-glow {
    opacity: 1;
    width: 90%;
    left: 5%;
}

/* Ajuste para móvil del buscador */
@media (max-width: 768px) {
    .search-input {
        padding: 10px 12px 10px 40px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        left: 12px;
        font-size: 0.85rem;
    }
    
    .search-glow {
        bottom: -1px;
    }
}

/* ========== CORRECCIÓN SCROLL HINT ========== */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(238, 247, 255, 0.6);
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
    background: rgba(2, 2, 11, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
}

.scroll-hint:hover {
    color: var(--lila-brillante);
    background: rgba(168, 85, 247, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@media (max-width: 768px) {
    .scroll-hint {
        bottom: 10px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .scroll-hint span {
        display: none;
    }
    
    .scroll-hint i {
        font-size: 1.2rem;
    }
}

/* ========== MEJORAS RESPONSIVE ADICIONALES ========== */
@media (max-width: 480px) {
    .hero-actions {
        gap: 10px;
    }
    
    .btn-glow, .btn-outline {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
    
    .btn-glow i, .btn-outline i {
        font-size: 0.8rem;
    }
    
    .stats-container {
        gap: 10px;
    }
    
    .stat-box {
        padding: 10px 15px !important;
        min-width: auto !important;
        width: 100%;
        max-width: 200px;
    }
}

/* ========== BOTÓN EXPORTAR EXCEL ========== */
.btn-excel {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #A855F7;
    color: var(--blanco-azulado);
}

.btn-excel:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.btn-excel i {
    color: #4CAF50;
}

.btn-excel:hover i {
    color: white;
}

/* ========== BOTÓN EXPORTAR EXCEL ========== */
.btn-excel {
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid #A855F7 !important;
    color: var(--blanco-azulado) !important;
    transition: var(--transition-normal) !important;
}

.btn-excel:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32) !important;
    border-color: #4CAF50 !important;
    transform: translateY(-2px);
}

.btn-excel i {
    color: #4CAF50;
}

.btn-excel:hover i {
    color: white;
}