/* ==========================================================================
   Barbería 27 - Custom Styles & UI Enhancements
   ========================================================================== */

/* Suavizado de tipografía y scroll general */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: #0B0F17;
    overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0F17;
}
::-webkit-scrollbar-thumb {
    background: #28344B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Efecto Glassmorphism */
.glass-panel {
    background: rgba(21, 28, 40, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Celdas del Calendario */
.cal-day-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

/* Días inhabilitados (Lunes, Martes, Jueves, Sábados, Domingos y Días Pasados) */
.cal-day-disabled {
    color: #475569;
    background-color: transparent;
    cursor: not-allowed;
    opacity: 0.35;
}

/* Días Habilitados (Miércoles y Viernes futuros) */
.cal-day-active {
    color: #F8FAFC;
    background-color: rgba(30, 39, 56, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.25);
    cursor: pointer;
    font-weight: 600;
}

.cal-day-active:hover {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Día actualmente Seleccionado */
.cal-day-selected {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #000000 !important;
    border-color: #FBBF24 !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
    transform: scale(1.04) !important;
}

/* Indicador de día actual */
.cal-day-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 90%;
    background-color: #F59E0B;
}

/* Botones de Turnos / Slots */
.slot-btn {
    transition: all 0.2s ease-in-out;
}

.slot-btn.available {
    background-color: #1E2738;
    border: 1px solid #28344B;
    cursor: pointer;
}

.slot-btn.available:hover {
    border-color: #F59E0B;
    background-color: rgba(245, 158, 11, 0.1);
    transform: translateX(3px);
}

.slot-btn.selected {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: #FBBF24;
    color: #000000 !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    transform: scale(1.02);
}

.slot-btn.selected * {
    color: #000000 !important;
}

.slot-btn.booked {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

/* Indicadores de pasos del formulario */
.step-indicator.active .step-number {
    background-color: #F59E0B;
    color: #000000;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.step-indicator.completed .step-number {
    background-color: #10B981;
    color: #000000;
}

/* Animaciones de Toasts */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-in {
    animation: slideInRight 0.25s ease-out forwards;
}

/* Badge pulsante */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.pulse-badge {
    animation: pulseGlow 2.5s infinite;
}
