/* ==========================================================================
   ESTILOS Y MODAL DE RADICACIÓN DE PQRS - GLOBAL HEALTH GROUP
   ========================================================================== */

/* Tarjeta de Consulta en el lateral */
.consultar-banner-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f5 100%);
    border: 1px solid #b2f5ea;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(13, 138, 114, 0.06);
}

.consultar-banner-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #0f766e;
    font-weight: 500;
}

.btn-consultar-trigger {
    background: #0d8a72;
    color: #ffffff;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(13, 138, 114, 0.2);
}

.btn-consultar-trigger:hover {
    background: #0a6c5d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 138, 114, 0.3);
}

/* Campo para Adjuntar Archivo */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: #0d8a72;
    background-color: #f0fdfa;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.88rem;
}

.file-upload-label i {
    font-size: 1.8rem;
    color: #0d8a72;
}

.file-name-preview {
    font-size: 0.82rem;
    color: #0f766e;
    font-weight: 700;
    margin-top: 6px;
    word-break: break-all;
}

/* Modal Emergente Rediseñado */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.65);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    background: linear-gradient(135deg, #0a2540 0%, #11365d 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-input-group {
    margin-bottom: 16px;
}

.modal-input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 6px;
}

.modal-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.93rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.modal-input-group input:focus {
    border-color: #0d8a72;
    box-shadow: 0 0 0 3px rgba(13, 138, 114, 0.15);
}

.btn-modal-search {
    width: 100%;
    background: #0d8a72;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-modal-search:hover {
    background: #0a6c5d;
}