 :root {
        --primary-red: #E41E26;
        --primary-black: #0C0C0C;
        --secondary-gold: #D8A21F;
        --complementary-blue: #1E2D5C;
        --light-white: #F4F4F4;
        --gradient-blue: linear-gradient(135deg, #1E2D5C 0%, #2A3D6E 100%);
        --gradient-gold: linear-gradient(135deg, #D8A21F 0%, #E8B229 100%);
        --gradient-red: linear-gradient(135deg, #E41E26 0%, #C21820 100%);
        --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }
    
    .calendar-header {
        background: var(--gradient-blue);
        padding-top: 100px !important;
        position: relative;
        overflow: hidden;
    }
    
    .calendar-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><path d="M500 50L550 30L600 50L650 30L700 50L750 30L800 50L850 30L900 50L950 30L1000 50L1000 100L0 100L0 50Z"/></svg>');
        background-size: cover;
        background-position: bottom;
    }
    
    .calendar-container {
        background: var(--light-white);
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(216, 162, 31, 0.2);
    }
    
    .calendar-container:hover {
        box-shadow: 0 25px 60px rgba(0,0,0,0.15);
        transform: translateY(-8px);
    }
    
    .filter-sidebar {
        position: sticky;
        top: 120px;
    }
    
    .filter-card {
        background: var(--light-white);
        border: none;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        border: 1px solid rgba(216, 162, 31, 0.2);
    }
    
    .filter-card:hover {
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        transform: translateY(-5px);
    }
    
    .whatsapp-card {
        background: linear-gradient(135deg, #25D366, #128C7E);
        border: none;
        border-radius: 20px;
        color: white;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    
    .whatsapp-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
    }
    
    /* Inventario Mejorado */
    .inventory-section {
        background: var(--light-white);
        border-radius: 20px;
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border: 1px solid rgba(216, 162, 31, 0.2);
    }
    
    .inventory-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .inventory-card {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }
    
    .inventory-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-gold);
    }
    
    .inventory-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        border-color: var(--secondary-gold);
    }
    
    .inventory-quantity {
        font-size: 2rem;
        font-weight: 800;
        color: var(--complementary-blue);
        margin-bottom: 0.5rem;
    }
    
    .inventory-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-red);
    }
    
    /* FullCalendar Personalizado */
    .fc {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    
    .fc-toolbar {
        padding: 2rem 1.5rem 1rem;
        background: var(--light-white);
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(216, 162, 31, 0.2);
    }
    
    .fc-toolbar-title {
        font-weight: 800;
        color: var(--complementary-blue);
        font-size: 1.8rem !important;
    }
    
    .fc-button {
        background: var(--gradient-blue) !important;
        border: none !important;
        border-radius: 12px !important;
        font-weight: 700;
        padding: 0.6rem 1.2rem !important;
        transition: all 0.3s ease !important;
    }
    
    .fc-button:hover {
        background: var(--complementary-blue) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(30, 45, 92, 0.3) !important;
    }
    
    .fc-daygrid-day {
        transition: all 0.3s ease;
        border-radius: 12px;
        margin: 3px;
        border: 2px solid transparent;
    }
    
    .fc-daygrid-day:hover {
        background: rgba(216, 162, 31, 0.1) !important;
        transform: scale(1.05);
        border-color: var(--secondary-gold);
    }
    
    .fc-day-today {
        background: rgba(216, 162, 31, 0.1) !important;
        border: 2px solid var(--secondary-gold) !important;
    }
    
    .fc-event {
        border: none !important;
        border-radius: 10px !important;
        padding: 0.4rem 0.6rem !important;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: all 0.3s ease !important;
        cursor: pointer;
        font-size: 0.85rem;
    }
    
    .fc-event:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(228, 30, 38, 0.3);
    }
    
    .fc-col-header-cell {
        background: var(--gradient-blue) !important;
        color: var(--light-white) !important;
        font-weight: 700;
        padding: 1rem 0.5rem !important;
        font-size: 0.9rem;
        border: none !important;
    }
    
    .fc-daygrid-day-number {
        font-weight: 700;
        color: var(--primary-black);
        padding: 0.8rem !important;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .fc-daygrid-day:hover .fc-daygrid-day-number {
        color: var(--complementary-blue);
        transform: scale(1.2);
    }
    
    /* Estadísticas */
    .stats-card {
        background: var(--light-white);
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 1px solid rgba(216, 162, 31, 0.2);
        text-align: center;
    }
    
    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .stats-card:hover .stats-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    /* Responsive Mejorado */
    @media (max-width: 1199.98px) {
        .inventory-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
    }
    
    @media (max-width: 991.98px) {
        .filter-sidebar {
            position: static;
            margin-bottom: 2rem;
        }
        
        .fc-toolbar {
            padding: 1.5rem 1rem 0.5rem;
        }
        
        .fc-toolbar-title {
            font-size: 1.3rem !important;
        }
        
        .inventory-section {
            padding: 1.5rem;
        }
        
        .inventory-grid {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
        }
    }
    
    @media (max-width: 767.98px) {
        .calendar-header .display-4 {
            font-size: 2.2rem;
        }
        
        .fc-toolbar {
            flex-direction: column;
            gap: 1rem;
        }
        
        #calendar {
            height: 500px !important;
        }
        
        .inventory-section {
            padding: 1rem;
            margin: 1rem 0;
        }
        
        .inventory-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .inventory-card {
            padding: 1.25rem;
        }
        
        .inventory-quantity {
            font-size: 1.8rem;
        }
        
        .stats-card {
            padding: 1.25rem;
            margin-bottom: 1rem;
        }
    }
    
    @media (max-width: 575.98px) {
        .calendar-header .display-4 {
            font-size: 1.8rem;
        }
        
        .fc-toolbar-title {
            font-size: 1.1rem !important;
        }
        
        .inventory-quantity {
            font-size: 1.6rem;
        }
        
        .stats-icon {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
    }
    
    /* Colores de la paleta */
    .badge.bg-warning {
        background: var(--secondary-gold) !important;
        color: var(--primary-black);
    }
    
    .badge.bg-success {
        background: var(--primary-red) !important;
        color: var(--light-white);
    }
    
    .badge.bg-info {
        background: var(--complementary-blue) !important;
        color: var(--light-white);
    }
    
    .text-primary {
        color: var(--complementary-blue) !important;
    }
    
    .text-warning {
        color: var(--secondary-gold) !important;
    }
    
    .text-success {
        color: var(--primary-red) !important;
    }
    
    .btn-primary {
        background: var(--primary-red);
        border: none;
        color: var(--light-white);
    }
    
    .btn-primary:hover {
        background: #C21820;
        color: var(--light-white);
    }
    /* Estilos para imágenes de inventario */
.inventory-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.inventory-image img {
    transition: transform 0.3s ease;
}

.inventory-card:hover .inventory-image img {
    transform: scale(1.05);
}

.inventory-placeholder {
    background: var(--gradient-blue);
    opacity: 0.1;
}

/* Mejoras de responsive para calendario en móviles */
@media (max-width: 767.98px) {
    .calendar-header .display-4 {
        font-size: 2rem;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem 0.5rem !important;
    }
    
    .fc-toolbar-title {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc-button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    #calendar {
        height: 500px !important;
    }
    
    .fc-daygrid-day {
        margin: 1px;
        border-radius: 8px;
    }
    
    .fc-daygrid-day-number {
        padding: 0.4rem !important;
        font-size: 0.8rem;
    }
    
    .fc-event {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.3rem !important;
        margin: 1px;
    }
    
    .fc-col-header-cell {
        padding: 0.5rem 0.2rem !important;
        font-size: 0.75rem;
    }
    
    /* Mejorar las cards de inventario en móvil */
    .inventory-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .inventory-card {
        padding: 1rem;
    }
    
    .inventory-image {
        height: 150px !important;
    }
    
    .inventory-quantity {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .calendar-header .display-4 {
        font-size: 1.6rem;
    }
    
    .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc-button {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    #calendar {
        height: 450px !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.75rem;
        padding: 0.3rem !important;
    }
    
    .inventory-quantity {
        font-size: 1.3rem;
    }
    
    .inventory-image {
        height: 130px !important;
    }
}

/* Asegurar que el calendario se vea bien en todos los dispositivos */
.fc .fc-view-harness {
    min-height: 400px;
}

.fc .fc-daygrid-body {
    width: 100% !important;
}

.fc .fc-scrollgrid-sync-table {
    width: 100% !important;
}