/* Botón zapote oscuro para reportar incidencia */
.btn-zapote {
    background-color: #a3471c;
    color: #fff;
    border-radius: 0.75rem;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    width: 100%;
    margin-top: 1rem;
    display: none;
}
.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    z-index: 50;
    max-height: 500px;
    overflow-y: auto;
}


.bg-black-30 {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Estilos para el carrusel con scroll horizontal */
.carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

/* Estilos personalizados para scrollbar en navegadores webkit */
.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .carousel-slide {
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        width: calc(33.333% - 0.67rem);
    }
}

/* Estilos para notificaciones de éxito */
.notification-success {
    background-color: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.notification-success.show {
    transform: translateX(0);
}

/* Estilos para notificaciones de información */
.notification-info {
    background-color: #3b82f6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.notification-info.show {
    transform: translateX(0);
}

/* Animaciones para las notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

.notification-exit {
    animation: slideOutRight 0.3s ease-in;
}

/* Estilos para el área de carga */
.upload-area {
    transition: all 0.3s ease;
    border: 2px dashed #d1d5db;
}

.upload-area:hover {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.upload-area.dragover {
    border-color: #ef4444;
    background-color: #fef2f2;
    transform: scale(1.02);
}

/* Estilos para el overlay de éxito */
.overlay-success {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.overlay-success.show {
    opacity: 1;
}

.overlay-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.overlay-content.show {
    transform: scale(1);
}

/* Botón zapote oscuro para actualizar */
.bg-zapote {
    background-color: #8B3A1A !important; /* zapote oscuro */
}

.bg-zapote-hover:hover {
    background-color: #6E2E14 !important; /* más oscuro para hover */
}

/* ============================================= */
/* CLASES DE COLOR ORANGE - Tailwind v2 Legacy */
/* ============================================= */
/* Fondo orange */
.bg-orange-50 { background-color: #FFF7ED; }
.bg-orange-100 { background-color: #FFEDD5; }
.bg-orange-200 { background-color: #FED7AA; }
.bg-orange-300 { background-color: #FDBA74; }
.bg-orange-400 { background-color: #FB923C; }
.bg-orange-500 { background-color: #F97316; }
.bg-orange-600 { background-color: #EA580C; }
.bg-orange-700 { background-color: #C2410C; }
.bg-orange-800 { background-color: #9A3412; }
.bg-orange-900 { background-color: #7C2D12; }

/* Texto orange */
.text-orange-50 { color: #FFF7ED; }
.text-orange-100 { color: #FFEDD5; }
.text-orange-200 { color: #FED7AA; }
.text-orange-300 { color: #FDBA74; }
.text-orange-400 { color: #FB923C; }
.text-orange-500 { color: #F97316; }
.text-orange-600 { color: #EA580C; }
.text-orange-700 { color: #C2410C; }
.text-orange-800 { color: #9A3412; }
.text-orange-900 { color: #7C2D12; }

/* Borde orange */
.border-orange-50 { border-color: #FFF7ED; }
.border-orange-100 { border-color: #FFEDD5; }
.border-orange-200 { border-color: #FED7AA; }
.border-orange-300 { border-color: #FDBA74; }
.border-orange-400 { border-color: #FB923C; }
.border-orange-500 { border-color: #F97316; }
.border-orange-600 { border-color: #EA580C; }
.border-orange-700 { border-color: #C2410C; }
.border-orange-800 { border-color: #9A3412; }
.border-orange-900 { border-color: #7C2D12; }

.login-min-h-screen {
    min-height: 100dvh;
}

.login-hero-panel {
    background-image: url('../img/fondo_pollo.jpg');
}

.login-hero-footer {
    background-color: rgb(255 0 0 / 25%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.08);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 10s infinite;
}

.blob-delay-2000 {
    animation-delay: 2s;
}

.blob-delay-4000 {
    animation-delay: 4s;
}

.bg-grid-pattern {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMCwgMCwgMCwgMC4wMikiLz48L3N2Zz4=");
}

.view-min-header-height {
    min-height: calc(100vh - var(--mainHeaderHeight));
}

.negative-header-offset {
    margin-top: calc(0px - var(--mainHeaderHeight));
}

.scroll-panel-45vh {
    max-height: 45vh;
    overflow-y: auto;
}

.scroll-panel-35vh {
    max-height: 35vh;
    overflow-y: auto;
}

.progress-track-thin {
    height: 8px;
}

.transition-opacity-fast {
    transition: opacity 0.2s ease;
}

@keyframes demoProgressStripe {
    0% {
        background-position-x: 1rem;
    }
}

.demo-progress-bar-fill {
    background-color: #2563eb;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.4s ease;
    animation: 1s linear infinite demoProgressStripe;
}

@media (prefers-reduced-motion: reduce) {
    .demo-progress-bar-fill {
        animation: none;
    }
}

.modal-scroll-90vh {
    max-height: 90vh;
    overflow-y: auto;
}

.swal-incidents-progress {
    height: 4px;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 2px;
    background-color: #f3f4f6;
}

.swal-incidents-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(to right, #dc2626 0%, #991b1b 100%);
    transition: width 0.1s linear;
}

.dashboard-action-dark {
    background-color: #334155;
}

.swal-copy-muted {
    opacity: 0.8;
}

.swal-divider-soft {
    border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================= */
/* BARRAS DE PROGRESO DINÁMICAS (CSS Custom Properties) */
/* ============================================= */
/* Clase base para barras de progreso con ancho dinámico */
.progress-bar-dynamic {
    width: var(--progress-width, 0%);
    transition: width 0.3s ease;
}
