/* ==========================================================================
   SINASSC 728 - Rediseño UI/UX Libro de Reclamaciones Virtual (Estándar 2026)
   ========================================================================== */

/* Contenedor y Fondo */
.claim-portal-section {
    background-color: #F5F8FC !important;
    padding: 3.5rem 0 5rem 0;
}

.claim-portal-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}

/* Tarjeta Principal */
.claim-main-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 35px -5px rgba(10, 37, 64, 0.08), 0 1px 3px rgba(10, 37, 64, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Encabezado Institucional Integrado */
.claim-header-banner {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 55%, #3B82F6 100%);
    padding: 2.25rem 2.75rem;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.claim-header-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.claim-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 0.3rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38BDF8;
    margin-bottom: 0.65rem;
}

.claim-header-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.65rem;
    font-weight: 700;
    color: #FFFFFF !important;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.claim-header-title i {
    color: #38BDF8;
    font-size: 1.5rem;
}

.claim-header-subtitle {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin: 0;
    max-width: 860px;
    font-weight: 400;
}

/* Cuerpo del Formulario */
.claim-card-body {
    padding: 2.75rem 3rem;
}

/* Encabezados de Sección */
.claim-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #EEF2F6;
}

.claim-section-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    color: #1E3A8A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.08);
}

.claim-section-title-wrap {
    flex: 1;
}

.claim-section-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A2540 !important;
    margin: 0 0 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.claim-section-title i {
    color: #3B82F6;
    font-size: 1.05rem;
}

.claim-section-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

/* Controles de Formulario */
.claim-form-group {
    margin-bottom: 1.25rem;
}

.claim-label {
    font-size: 0.87rem;
    font-weight: 600;
    color: #172B4D;
    margin-bottom: 0.4rem;
    display: block;
}

.claim-label .required-star {
    color: #DC2626;
    font-weight: 700;
    margin-left: 2px;
}

.claim-control {
    width: 100%;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.68rem 0.95rem;
    font-size: 0.92rem;
    color: #0F172A;
    background-color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.claim-control:hover:not(:disabled) {
    border-color: #94A3B8;
}

.claim-control:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14) !important;
    background-color: #FFFFFF !important;
}

.claim-control::placeholder {
    color: #94A3B8;
    font-size: 0.88rem;
}

select.claim-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 10px;
    padding-right: 2.25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea.claim-control {
    min-height: 110px;
    line-height: 1.55;
    resize: none;
}

/* Área de Carga Profesional (Evidencias) */
.claim-upload-zone {
    border: 2px dashed #93C5FD;
    border-radius: 14px;
    background: #F8FAFC;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.claim-upload-zone:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
}

.claim-upload-icon {
    font-size: 2.5rem;
    color: #3B82F6;
    margin-bottom: 0.65rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.claim-upload-zone:hover .claim-upload-icon {
    transform: scale(1.08);
}

.claim-upload-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: #0A2540;
    margin-bottom: 0.25rem;
}

.claim-upload-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 0.85rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.claim-upload-btn {
    border: 1.5px solid #3B82F6;
    background: #FFFFFF;
    color: #1E3A8A;
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}

.claim-upload-zone:hover .claim-upload-btn {
    background: #3B82F6;
    color: #FFFFFF;
}

.claim-upload-meta {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: #94A3B8;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.claim-upload-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Badge de Archivo Seleccionado */
.claim-file-badge {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.claim-file-badge-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: #065F46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claim-file-badge-remove {
    background: none;
    border: none;
    color: #DC2626;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.claim-file-badge-remove:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Bloque Declaración Jurada */
.claim-affidavit-card {
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.claim-affidavit-card:hover {
    border-color: #93C5FD;
    background: #E8F2FF;
}

.claim-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #1E3A8A;
    cursor: pointer;
    border-radius: 4px;
}

.claim-affidavit-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #1E3A8A;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

/* Botón de Envío Institucional */
.claim-submit-btn {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 50%, #3B82F6 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.85rem 3.5rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    cursor: pointer !important;
}

.claim-submit-btn:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.4) !important;
    background: linear-gradient(135deg, #071728 0%, #172554 50%, #2563EB 100%) !important;
    color: #FFFFFF !important;
}

.claim-submit-btn:active:not(:disabled):not(.disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
}

.claim-submit-btn:disabled,
.claim-submit-btn.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(25%) !important;
}

/* Separador sutil entre bloques */
.claim-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 2.25rem 0;
}

/* ==========================================================================
   Adaptabilidad Responsive (Tablet y Móvil)
   ========================================================================== */
@media (max-width: 991.98px) {
    .claim-header-banner {
        padding: 1.75rem 2rem;
    }
    .claim-card-body {
        padding: 2rem 2rem;
    }
    .claim-header-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 767.98px) {
    .claim-portal-section {
        padding: 2rem 0 3.5rem 0;
    }
    .claim-header-banner {
        padding: 1.5rem 1.25rem;
    }
    .claim-card-body {
        padding: 1.5rem 1.25rem;
    }
    .claim-header-title {
        font-size: 1.28rem;
    }
    .claim-header-subtitle {
        font-size: 0.85rem;
    }
    .claim-section-title {
        font-size: 1.08rem;
    }
    .claim-upload-zone {
        padding: 1.5rem 1rem;
    }
    .claim-submit-btn {
        width: 100% !important;
        padding: 0.85rem 1.5rem !important;
    }
    .claim-affidavit-card {
        padding: 1rem 1.15rem;
    }
}
