/* Estilos para el dropzone mejorado */
.dropzone {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .dropzone::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
        transition: left 0.6s ease;
    }

    .dropzone:hover::before {
        left: 100%;
    }

    .dropzone.drag-over {
        border-color: #10b981 !important;
        background: #f0fdf4 !important;
        transform: scale(1.01);
    }

        .dropzone.drag-over .upload-icon {
            transform: scale(1.2) rotate(10deg);
            color: #10b981 !important;
        }

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.dropzone.has-files .dropzone-content {
    padding: 0.5rem;
}

.dropzone.has-files .upload-icon {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.dropzone.has-files .upload-text {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
}

.dropzone.has-files .upload-hint {
    font-size: 0.7rem !important;
}

.dropzone-files {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.dropzone.has-files {
    padding: 1rem !important;
}

.upload-icon {
    transition: all 0.3s ease;
}

.upload-text, .upload-hint {
    transition: all 0.3s ease;
}

/* Estilos para las tarjetas de archivos dentro del dropzone */
.file-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .file-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.file-size {
    color: #6b7280;
    font-size: 0.75rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-remove {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.375rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-remove:hover {
        background: #fee2e2;
        transform: scale(1.05);
    }

.progress-bar {
    width: 100%;
    height: 3px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.375rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-counter {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    display: inline-block;
}

    .file-counter.warning {
        background: #fef3c7;
        color: #d97706;
    }

/* Estilos para las notificaciones fijas */
#file-cards-container {
    position: fixed;
    top: 840px;
    right: 20px;
    z-index: 1000;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.card-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.card-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.card-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
/* Estilos del formulario */

.required-label::after {
    content: " *";
    color: red;
    font-weight: bold;
}
.info-icon {
    cursor: pointer;
    color: #6c757d;
    margin-left: 5px;
}

    .info-icon:hover {
        color: #495057;
    }
#resultadoConsulta {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.ticket {
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-ticket {
    background-color: #e1ffc7;
    margin-left: auto;
    text-align: right;
}

.response-ticket {
    background-color: #f1f0f0;
    margin-right: auto;
    text-align: left;
}

.fecha {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    text-align: right;
}

.alert-heading {
    font-weight: bold;
}

#consultarPqrBtn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #consultarPqrBtn:hover {
        background-color: #0056b3;
    }

#consultarPreaBtn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #consultarPreaBtn:hover {
        background-color: #0056b3;
    }

.custom-success {
    border-color: #4d7e15;
    color: white;
    background-color: #589e1e;
}

    .custom-success:hover {
        background-color: #4d7e15;
        color: white;
    }

.custom-getback {
    border-color: #4d7e15;
    color: white;
    background-color: #589e1e;
}

    .custom-getback:hover {
        background-color: #4d7e15;
        color: white;
    }

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    height: 20px;
    margin-top: 10px;
}

.progress {
    height: 100%;
    width: 0;
    background-color: #589e1e;
    /* Color de la barra de progreso */
    border-radius: 5px;
    transition: width 0.4s ease;
}

.custom-success {
    border-color: #4d7e15;
    color: white;
    background-color: #589e1e;
}

    .custom-success:hover {
        background-color: #4d7e15;
        color: white;
    }

.custom-getback {
    border-color: #4d7e15;
    color: white;
    background-color: #589e1e;
}

    .custom-getback:hover {
        background-color: #4d7e15;
        color: white;
    }

.container-custom {
    padding:10px 150px;
}
@media (max-width: 768px) {
    .container-custom {
        padding: 10px 20px;
    }
}

    .form-section-custom {
        margin-bottom: 20px;
    }

h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
}