/* ============================================= 
   VARIABLES Y ESTILOS GLOBALES
   ============================================= */
:root {
    --purple-main: #9333EA;
    --purple-dark: #7C3AED;
    --purple-light: #A855F7;
    --purple-lighter: #C084FC;
    --bg-dark: #0F0F23;
    --bg-darker: #0A0A15;
    --glass-bg: rgba(147, 51, 234, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F0F23 0%, #1a0033 50%, #2d1b69 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

/* ============================================= 
   EFECTOS GLASS
   ============================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(147, 51, 234, 0.2);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--purple-light) !important;
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.25) !important;
    color: white !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================= 
   FIX SELECTS - DROPDOWN OSCURO
   ============================================= */
.glass-input option {
    background-color: #1a1a2e !important;
    color: white !important;
    padding: 10px;
}

.glass-input option:hover,
.glass-input option:focus,
.glass-input option:checked {
    background-color: #9333EA !important;
    color: white !important;
}

select.glass-input {
    background-color: rgba(26, 26, 46, 0.95) !important;
    color: white !important;
}

select.glass-input:focus {
    background-color: rgba(26, 26, 46, 0.98) !important;
}

/* Para navegadores webkit (Chrome, Safari, Edge) */
select.glass-input option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Custom select para mejor compatibilidad */
.form-control.glass-input[multiple] option,
.form-control.glass-input option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 8px 12px;
}

.form-control.glass-input[multiple] option:checked,
.form-control.glass-input option:checked {
    background: linear-gradient(0deg, #9333EA 0%, #9333EA 100%);
    color: white;
}

/* Fix para el custom-file en masivos */
.custom-file-input:lang(es) ~ .custom-file-label::after {
    content: "Buscar";
}

/* ============================================= 
   PÁGINA DE LOGIN
   ============================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    padding: 40px;
    animation: fadeInUp 0.5s ease;
}

.brand-logo {
    font-size: 2.5rem;
    color: var(--purple-light);
    font-weight: bold;
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.4);
    color: white;
}

/* ============================================= 
   DASHBOARD
   ============================================= */
.dashboard-page {
    padding-top: 70px;
}

.navbar {
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple-light) !important;
}

.dashboard-container {
    height: calc(100vh - 70px);
    padding: 0;
}

/* ============================================= 
   SIDEBAR
   ============================================= */
.sidebar {
    height: 100%;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 25px;
}

.menu-item:hover {
    background: rgba(147, 51, 234, 0.2);
    border-left-color: var(--purple-light);
    color: white;
    text-decoration: none;
}

.menu-item.active {
    background: rgba(147, 51, 234, 0.3);
    border-left-color: var(--purple-light);
    color: var(--purple-lighter);
}

/* ============================================= 
   CONTENIDO PRINCIPAL
   ============================================= */
.main-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================= 
   LISTA DE CHATS
   ============================================= */
.chat-list-container {
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    border-bottom: 1px solid var(--glass-border);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.chat-item:hover {
    background: rgba(147, 51, 234, 0.15);
}

.chat-item.active {
    background: rgba(147, 51, 234, 0.25);
    border-left: 3px solid var(--purple-light);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-last-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    text-align: right;
}

.chat-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.chat-badge {
    background: var(--purple-main);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================= 
   ÁREA DE CONVERSACIÓN
   ============================================= */
.conversation-container {
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.no-chat-selected {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#chatContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    border-bottom: 1px solid var(--glass-border);
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    animation: fadeInMessage 0.3s ease;
}

.message.entrante {
    justify-content: flex-start;
}

.message.saliente {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 15px;
    word-wrap: break-word;
}

.message.entrante .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 5px;
}

.message.saliente .message-bubble {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.message-input-container {
    border-top: 1px solid var(--glass-border);
}

/* ============================================= 
   MODALES
   ============================================= */
.modal-content.glass {
    background: var(--bg-darker);
}

.modal-header {
    border-bottom-color: var(--glass-border);
}

.modal-footer {
    border-top-color: var(--glass-border);
}

/* ============================================= 
   TABLAS
   ============================================= */
.table-glass {
    background: rgba(255, 255, 255, 0.02);
    color: white;
}

.table-glass th {
    border-color: var(--glass-border);
    color: var(--purple-lighter);
    font-weight: 600;
}

.table-glass td {
    border-color: var(--glass-border);
}

.table-glass tbody tr:hover {
    background: rgba(147, 51, 234, 0.1);
}

/* ============================================= 
   TARJETAS
   ============================================= */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

/* ============================================= 
   BADGES Y ETIQUETAS
   ============================================= */
.badge-purple {
    background: var(--purple-main);
    color: white;
}

.badge-success {
    background: #10B981;
}

.badge-danger {
    background: #EF4444;
}

.badge-warning {
    background: #F59E0B;
}

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

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

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

/* ============================================= 
   SCROLLBARS PERSONALIZADOS
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-main);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

/* ============================================= 
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    .chat-list-container {
        display: none;
    }
    
    .conversation-container {
        width: 100%;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

/* ============================================= 
   UTILIDADES
   ============================================= */
.text-purple {
    color: var(--purple-light) !important;
}

.bg-purple {
    background: var(--purple-main) !important;
}

.border-purple {
    border-color: var(--purple-light) !important;
}

hr {
    border-top-color: var(--glass-border);
}

/* ============================================= 
   CUSTOM SWITCHES
   ============================================= */
.custom-switch .custom-control-label::before {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--glass-border);
}

.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--purple-main);
    border-color: var(--purple-main);
}

/* ============================================= 
   PANEL DE CONTROLES DEL BOT
   ============================================= */
.bot-controls-panel {
    background: rgba(147, 51, 234, 0.15);
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.3s ease;
}

.bot-controls-panel .form-control-sm {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.chat-mode-indicator .badge {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Icono de modo en la lista de chats */
.chat-name i {
    margin-left: 5px;
    font-size: 0.85rem;
}

/* Mensaje de error de audio */
.message .text-warning {
    color: #F59E0B !important;
    font-style: italic;
}

/* Badge de audio en prompts */
.badge-info {
    background: #06B6D4;
    color: white;
}

/* Modal Nueva Sesión - Configuración del Bot */
#sessionBotSelectionContainer {
    animation: fadeIn 0.2s ease;
}

#sessionBotInfo {
    display: block;
    margin-top: 5px;
}

/* ============================================= 
   SECCIÓN MASIVOS
   ============================================= */

/* Botón outline purple */
.btn-outline-purple {
    color: var(--purple-light);
    border-color: var(--purple-light);
    background: transparent;
}

.btn-outline-purple:hover,
.btn-outline-purple.active {
    background: var(--purple-main);
    border-color: var(--purple-main);
    color: white;
}

/* Botón neon play */
.btn-neon-play {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    animation: neon-glow 2s infinite;
}

.btn-neon-play:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.btn-neon-play:disabled {
    background: #6c757d;
    animation: none;
}

@keyframes neon-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.4),
                    0 0 10px rgba(16, 185, 129, 0.3),
                    0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.6),
                    0 0 20px rgba(16, 185, 129, 0.4),
                    0 0 30px rgba(16, 185, 129, 0.3);
    }
}

/* Botón stop */
.btn-stop {
    animation: pulse-danger 1s infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

/* Archivo item */
.archivo-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archivo-item:hover {
    background: rgba(147, 51, 234, 0.1);
}

/* Campaña item */
.campania-item {
    transition: all 0.3s ease;
}

.campania-item:hover {
    transform: translateX(5px);
}

/* Custom file input */
.custom-file-label.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
}

.custom-file-label.glass-input::after {
    background: var(--purple-main);
    color: white;
    border: none;
}

/* Progress bar personalizado */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* SweetAlert2 personalizado */
.swal2-popup {
    background: var(--bg-darker) !important;
    border: 1px solid var(--glass-border);
}

.swal2-title {
    color: white !important;
}

.swal2-html-container {
    color: rgba(255, 255, 255, 0.8) !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark)) !important;
}

/* Text purple */
.text-purple {
    color: var(--purple-light) !important;
}

/* Badge en contador */
#contadorCaracteres {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* Responsive masivos */
@media (max-width: 992px) {
    #masivosSection .col-md-6 {
        margin-bottom: 20px;
    }
}

/* ============================================= 
   SECCIÓN DASHBOARD - PÁGINA DE INICIO
   ============================================= */

.dashboard-welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Título neón animado */
.neon-title-container {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
}

.neon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.neon-text {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #a855f7, #d946ef, #c084fc, #a855f7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neon-flow 3s ease-in-out infinite, neon-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)) 
            drop-shadow(0 0 40px rgba(192, 132, 252, 0.6))
            drop-shadow(0 0 60px rgba(217, 70, 239, 0.4));
    letter-spacing: 2px;
}

.neon-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #e879f9;
    text-shadow: 0 0 10px rgba(232, 121, 249, 0.8),
                 0 0 20px rgba(232, 121, 249, 0.6),
                 0 0 30px rgba(232, 121, 249, 0.4),
                 0 0 40px rgba(168, 85, 247, 0.3);
    animation: subtitle-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neon-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)) 
                drop-shadow(0 0 40px rgba(192, 132, 252, 0.6))
                drop-shadow(0 0 60px rgba(217, 70, 239, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(168, 85, 247, 1)) 
                drop-shadow(0 0 60px rgba(192, 132, 252, 0.8))
                drop-shadow(0 0 90px rgba(217, 70, 239, 0.6));
    }
}

@keyframes subtitle-glow {
    0% {
        text-shadow: 0 0 10px rgba(232, 121, 249, 0.8),
                     0 0 20px rgba(232, 121, 249, 0.6),
                     0 0 30px rgba(232, 121, 249, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(232, 121, 249, 1),
                     0 0 30px rgba(232, 121, 249, 0.8),
                     0 0 45px rgba(232, 121, 249, 0.6),
                     0 0 60px rgba(168, 85, 247, 0.4);
    }
}

/* Tarjetas de pasos */
.steps-container {
    margin-bottom: 40px;
}

.step-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.4);
}

.step-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce-emoji 2s ease-in-out infinite;
}

.step-card:nth-child(1) .step-emoji { animation-delay: 0s; }
.step-card:nth-child(2) .step-emoji { animation-delay: 0.3s; }
.step-card:nth-child(3) .step-emoji { animation-delay: 0.6s; }

@keyframes bounce-emoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.5);
}

.step-title {
    color: var(--purple-lighter);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mensaje de bienvenida */
.welcome-message {
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
}

.welcome-icon {
    font-size: 3rem;
    color: var(--purple-light);
    margin-bottom: 20px;
    animation: rocket-float 3s ease-in-out infinite;
}

@keyframes rocket-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

.welcome-message h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 25px;
}

.welcome-text .highlight {
    color: var(--purple-lighter);
    font-weight: 600;
    position: relative;
}

.welcome-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--purple-light);
    animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.feature-badge {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(192, 132, 252, 0.2));
    border: 1px solid rgba(192, 132, 252, 0.4);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.5), rgba(192, 132, 252, 0.4));
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}

.feature-badge i {
    color: var(--purple-lighter);
}

/* ============================================= 
   EFECTOS NAVIDEÑOS (FÁCIL DE QUITAR)
   ============================================= */

/* Contenedor de efectos navideños */
.christmas-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Copos de nieve */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: snowfall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 1rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1.5rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.6rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.1rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 0.8s; font-size: 1.4rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 3.5s; font-size: 1.7rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 1.2s; font-size: 1.2rem; }

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Luces navideñas */
.christmas-lights {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.christmas-lights span {
    width: 15px;
    height: 25px;
    border-radius: 50%;
    animation: lights-blink 1.5s ease-in-out infinite;
}

.christmas-lights span:nth-child(1) { background: #ff4444; animation-delay: 0s; }
.christmas-lights span:nth-child(2) { background: #44ff44; animation-delay: 0.15s; }
.christmas-lights span:nth-child(3) { background: #ffff44; animation-delay: 0.3s; }
.christmas-lights span:nth-child(4) { background: #4444ff; animation-delay: 0.45s; }
.christmas-lights span:nth-child(5) { background: #ff44ff; animation-delay: 0.6s; }
.christmas-lights span:nth-child(6) { background: #44ffff; animation-delay: 0.75s; }
.christmas-lights span:nth-child(7) { background: #ff8844; animation-delay: 0.9s; }
.christmas-lights span:nth-child(8) { background: #88ff44; animation-delay: 1.05s; }
.christmas-lights span:nth-child(9) { background: #ff4488; animation-delay: 1.2s; }
.christmas-lights span:nth-child(10) { background: #44ff88; animation-delay: 1.35s; }

@keyframes lights-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px currentColor;
    }
}

/* Mensaje navideño con fuente manuscrita */
.christmas-message {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.christmas-text {
    font-family: 'Brush Script MT', 'Segoe Script', 'Bradley Hand', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.3),
                 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: christmas-glow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.christmas-icon {
    font-size: 2.5rem;
    animation: christmas-bounce 1s ease-in-out infinite;
}

.christmas-icon:last-child {
    animation-delay: 0.5s;
}

@keyframes christmas-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.5),
                     0 0 20px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.5),
                     0 0 60px rgba(255, 107, 107, 0.3);
    }
}

@keyframes christmas-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* ========== FIN EFECTOS NAVIDEÑOS ========== */

/* Responsive para dashboard */
@media (max-width: 768px) {
    .neon-text {
        font-size: 2rem;
    }
    
    .neon-subtitle {
        font-size: 1.3rem;
    }
    
    .step-card {
        min-height: auto;
        padding: 20px;
    }
    
    .step-emoji {
        font-size: 3rem;
    }
    
    .christmas-text {
        font-size: 1.3rem;
    }
    
    .christmas-lights span {
        width: 10px;
        height: 18px;
    }
}

