/* ===== TEMA OSCURO PARA DISCOTECA ===== */

/* Variables CSS para tema oscuro */
:root {
    --primary-color: #8B5CF6; /* Violeta para discoteca */
    --primary-hover: #7C3AED;
    --secondary-color: #6366F1; /* Índigo */
    --accent-color: #EC4899; /* Rosa neón */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    
    /* Colores de fondo */
    --bg-primary: #0F0F23; /* Negro profundo */
    --bg-secondary: #1A1A2E; /* Azul muy oscuro */
    --bg-tertiary: #16213E; /* Azul oscuro */
    --bg-card: #1E1E3F; /* Azul medio oscuro */
    --bg-elevated: #2D2D5F; /* Azul claro oscuro */
    
    /* Colores de texto */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-accent: #E0E7FF;
    
    /* Colores de borde */
    --border-primary: #3F3F46;
    --border-secondary: #52525B;
    --border-accent: #8B5CF6;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
}

/* ===== ESTILOS BASE ===== */

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== ANIMACIONES DE TRANSICIÓN ===== */

/* Animación de entrada para pasos */
@keyframes stepSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes stepSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

/* ===== CONTENEDORES DE PASOS ===== */

.step-content {
    animation: stepSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 1rem;
}

.step-content.sliding-out {
    animation: stepSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BOTONES MEJORADOS ===== */

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #D946EF 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation: pulseGlow 2s infinite;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ===== HEADER Y NAVEGACIÓN ===== */

.header {
    background: var(--gradient-secondary);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-xl);
}

.header h1 {
    color: var(--text-primary);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: neonPulse 3s infinite;
}

.header p {
    color: var(--text-accent);
    text-align: center;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* ===== BARRA DE PROGRESO ===== */

.progress-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

.progress-bar {
    background: var(--gradient-primary);
    height: 8px;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-color);
}

.progress-text {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-steps {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== CALENDARIO ===== */

.calendar-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

.calendar-header {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.calendar-day {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day.available {
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 10;
}

.calendar-day.selected {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-color);
    animation: pulseGlow 2s infinite;
}

.calendar-day.today {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.calendar-day.disabled {
    background: var(--bg-primary);
    color: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.other-month {
    background: var(--bg-primary);
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== FORMULARIOS ===== */

.form-input, .form-select, .form-textarea {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ===== INFORMACIÓN DE DISPONIBILIDAD ===== */

.availability-status {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

.availability-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-secondary);
    text-align: center;
    transition: all 0.3s ease;
}

.availability-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.availability-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* ===== CONFIRMACIÓN ===== */

.confirmation-summary {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

.summary-item {
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== NOTIFICACIONES ===== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    z-index: 9999;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease-out;
}

.notification.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-color: #EF4444;
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: #F59E0B;
    color: white;
}

.notification.info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-color: #3B82F6;
    color: white;
}

/* Estilos para listas en notificaciones */
.notification ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.notification li {
    margin-bottom: 0.25rem;
}

.notification strong {
    font-weight: 600;
}

/* ===== LOADING STATES ===== */

.loading-spinner {
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 1.5rem;
        margin: 0 1rem 1rem 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .availability-number {
        font-size: 2.5rem;
    }
}

/* ===== EFECTOS ESPECIALES ===== */

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* ===== ACCESIBILIDAD ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ESTILOS PARA ESTADOS ESPECIALES ===== */

.no-availability {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

.no-availability h3 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-availability p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== BOTONES DE NAVEGACIÓN ===== */

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.navigation-buttons .btn-secondary {
    order: 1;
}

.navigation-buttons .btn-primary {
    order: 2;
}

@media (max-width: 640px) {
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn-secondary,
    .navigation-buttons .btn-primary {
        order: unset;
        width: 100%;
    }
}
