    /* --- ESTILOS PARA EL NUEVO FORMULARIO PQRS --- */

.form-pqrs{
    margin-top: 20px;
    margin-bottom: 20px;
}
.pqrs-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que las columnas se apilen en móvil */
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden; /* Para que el borde redondeado afecte a la imagen */
}

.pqrs-image-col,
.pqrs-form-col {
    width: 100%; /* Ocupa todo el ancho en móvil */
}

/* Estilos para la columna de la imagen */
.pqrs-pic {
    width: 100%;
    height: 250px; /* Altura fija para la imagen en móvil */
    background-size: cover;
    background-position: center;
}

/* Contenedor del formulario */
.pqrs-form-container {
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Estructura de filas y grupos de campos */
.form-row {
    display: flex;
    flex-direction: column; /* Apilados por defecto */
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Estilos para etiquetas y campos de entrada */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-input {
    resize: vertical;
}

/* Estilos para los Radio Buttons personalizados */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-option input[type="radio"] {
    display: none; /* Ocultamos el radio button por defecto */
}

.radio-option label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 500;
}

/* Estilo cuando el radio button está seleccionado */
.radio-option input[type="radio"]:checked + label {
    background-color: #2980b9;
    color: #ffffff;
    border-color: #2980b9;
}

/* Estilos para el Checkbox personalizado (CORREGIDO) */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Alinear al inicio para mejor control */
    gap: 10px; /* Espacio entre el checkbox y el texto */
}

.checkbox-group input[type="checkbox"] {
    display: none; /* Ocultamos el checkbox por defecto */
}

.checkbox-group .checkbox-label {
    position: relative;
    padding-left: 28px; /* Espacio para el checkbox falso */
    cursor: pointer;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4; /* Mejora la legibilidad del texto */
}

.checkbox-group .checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* El cuadro del checkbox */
.checkbox-group .checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    /* Corrección: Centrado verticalmente respecto a la primera línea de texto */
    top: 0.2em; 
    width: 18px;
    height: 18px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label::before {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Símbolo de "check" o "palomita" */
.checkbox-group input[type="checkbox"]:checked + .checkbox-label::after {
    content: '\2713';
    position: absolute;
    left: 4px;
    /* Corrección: Alineado con el cuadro */
    top: 0.2em; 
    font-size: 14px;
    color: white;
    font-weight: bold; /* Hacer el check más visible */
    line-height: 18px; /* Centrar el check dentro del cuadro */
    text-align: center;
    width: 11px;
}


/* Estilos para el botón de envío */
.form-submit-group {
    text-align: center;
    margin-top: 1rem;
}

.btn-submit {
    background-color: #27ae60;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}



/* --- ARREGLO DE EMERGENCIA PARA TOM SELECT --- */

/* 1. Fondo sólido y elevación para que no se vea lo de abajo */
.ts-dropdown {
    background: #ffffff !important;
    z-index: 9999 !important; /* Lo pone por encima de todo */
    border: 1px solid #bdc3c7 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    position: absolute !important;
}

/* 2. Estilo de las opciones para que no se amontonen */
.ts-dropdown .option {
    padding: 12px 15px !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal !important; /* Permite que el texto largo salte de línea */
    line-height: 1.4 !important;
}

/* 3. Color cuando pasas el mouse o seleccionas */
.ts-dropdown .active {
    background-color: #3498db !important;
    color: #ffffff !important;
}

/* 4. El contenedor principal (el buscador) */
.ts-control {
    background: #ffffff !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
}

/* 5. Ocultar el select original por si acaso sigue molestando */
select#proyecto {
    display: none !important;
    visibility: hidden !important;
}

/* Fuerza el borde rojo y estilos de Bootstrap en el contenedor de Tom Select inválido */
.ts-wrapper.is-invalid .ts-control {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M6 8V6M6 4.5h.01'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 2.25rem center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* --- ESTILOS DE LA ZONA DE ARCHIVOS --- */
.file-drop-zone {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.file-drop-zone.dragover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.drop-zone-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
}

.btn-browse-file {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-browse-file:hover {
    background-color: #3498db;
    color: #ffffff;
}

.file-help-text {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 8px;
}

/* --- ESTILOS DE LA LISTA DE ARCHIVOS (PREVIEW) --- */
.file-preview-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #ecf0f1;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.file-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.file-item-size {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-remove-file:hover {
    transform: scale(1.2);
}

/* Estado de subida (Visual feedback) */
.file-item.uploading .file-item-size {
    color: #f39c12;
}
.file-item.success {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}
.file-item.success .file-item-size {
    color: #27ae60;
}

/* --- ESTILOS DE LA BARRA DE PROGRESO --- */
.form-progress-container {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.form-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #27ae60;
    transition: width 0.2s linear;
}

.form-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0px 0px 4px rgba(255,255,255,0.8);
    pointer-events: none;
}


/* --- ESTILOS DEL MODAL PERSONALIZADO --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999; /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Clase para mostrar el modal */
.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0) scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.custom-modal-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.custom-modal-close:hover {
    color: #e74c3c;
}

.custom-modal-body {
    padding: 1.5rem;
    color: #34495e;
    font-size: 1rem;
    line-height: 1.5;
}

.custom-modal-body p {
    margin: 0;
}

.custom-modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: right;
}

/* Reutiliza el estilo base de tu boton verde, pero ajusta el relleno */
.custom-modal-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    width: auto;
}

/* Estado de error para un archivo especifico */
.file-item.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}
.file-item.error .file-item-size {
    color: #c0392b;
    font-weight: 600;
}

/* --- Media Query para Moviles Pequeños --- */
@media (max-width: 480px) {
    .custom-modal-footer {
        text-align: center;
    }
    .custom-modal-btn {
        width: 100%;
    }
}

/* --- Media Queries para hacerlo responsivo --- */

/* Para tablets y pantallas medianas (a partir de 768px) */
@media (min-width: 768px) {
    .pqrs-image-col {
        width: 45%;
    }
    .pqrs-form-col {
        width: 55%;
    }
    .pqrs-pic {
        height: 100%; /* La imagen ocupa toda la altura de la columna */
    }
    .form-row {
        flex-direction: row; /* Los campos se ponen uno al lado del otro */
    }
    .form-row .form-group {
        flex: 1; /* Cada campo en la fila ocupa el mismo espacio */
    }
    .pqrs-form-container {
        padding: 2.5rem 3rem;
    }
}