:root {
    --azul: #003149;
    --azul-md: #0665a5;
    --rojo: #aa0d2e;
    --gris-fondo: #f2f5fb;
    --gris-borde: #e8e8e8;
}


/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.pqrs-page {
    background-color: var(--gris-fondo);
    min-height: calc(100vh - 70px);
    padding-bottom: 50px;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.pqrs-page .section-text {
    max-width: 1060px;
    margin: 0 auto;
    padding-top: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--rojo);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    position: relative;
}

.pqrs-page .section-text::before,
.pqrs-page .section-text::after {
    content: '';
    height: 2px;
    background-color: #d5dbe2;
    flex: 1;
    margin: 0 18px;
}

.title-revisiones {
    text-align: center;

    margin-top: 8px;

    color: var(--azul);

    font-family: var(--font-display, 'DM Serif Display', Georgia, serif);

    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 400;

    line-height: 1.25;
}

.title-revisiones::after {
    content: '';

    display: block;

    width: 44px;
    height: 2px;

    background-color: var(--azul);

    margin: 10px auto 0;
}

.bar-regulatorio {
    display: none;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.pqrs-page>.container {
    max-width: var(--content-max, 1280px);
}


/* ============================================================
   COLUMNA IZQUIERDA
   ============================================================ */

.pqrs-welcome-box {
    background-color: #ffffff;

    border-left: 4px solid var(--rojo);
    border-radius: 8px;

    padding: 18px 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);

    margin-bottom: 20px;
}

.pqrs-welcome-box p {
    margin: 0;

    color: #333;

    font-size: 1rem;
    line-height: 1.7;
}


/* ============================================================
   AVISO FORMATO FÍSICO
   ============================================================ */

.print-notice {
    background-color: #fff3cd;

    border-left: 4px solid #f0a500;

    border-radius: 8px;

    padding: 16px 18px;

    color: #5a4000;

    font-size: .98rem;

    line-height: 1.65;

    margin-bottom: 22px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .03);
}

.print-notice strong {
    display: block;

    color: #5a4000;

    font-size: 1.05rem;

    margin-bottom: 6px;
}

.print-notice i {
    margin-right: 7px;
}

.print-notice a {
    display: inline-block;

    margin-top: 6px;

    color: var(--rojo);

    font-weight: 700;

    text-decoration: none;
}

.print-notice a:hover {
    text-decoration: underline;
}


/* ============================================================
   INSTRUCCIONES
   ============================================================ */

.pqrs-instructions-list {
    margin: 0;

    padding-left: 30px;

    color: #333;

    font-size: 1rem;

    line-height: 1.7;
}

.pqrs-instructions-list li {
    padding-left: 5px;

    margin-bottom: 9px;
}

.pqrs-instructions-list strong {
    color: #222;
}


/* ============================================================
   IMAGEN PQR
   ============================================================ */

.pqrs-image {
    max-width: 230px;

    height: auto;

    display: block;

    margin: 15px auto 0;
}


/* ============================================================
   FORMULARIO
   ============================================================ */

.form-pqr {
    background-color: #ffffff;

    border-radius: 10px;

    border-top: 4px solid var(--rojo);

    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);

    padding: 28px;

    margin-bottom: 30px;
}

.form-pqr h3 {
    color: #222;

    font-weight: 600;

    margin: 0 0 6px;

    font-size: 1.55rem;

    line-height: 1.3;
}

.form-pqr h3 i {
    margin-right: 7px;
}

.pqrs-required-text {
    font-size: .82rem;

    margin-bottom: 18px;
}

.pqrs-required-text .text-danger {
    color: var(--rojo) !important;
}


/* ============================================================
   SECCIONES DEL FORMULARIO
   ============================================================ */

.form-section {
    border: 1px solid var(--gris-borde);

    border-radius: 9px;

    padding: 18px 20px 15px;

    margin-bottom: 18px;

    background-color: #fafafa;
}

.form-section-title {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--rojo);

    font-size: .95rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 16px;
}

.form-section-title::after {
    content: '';

    flex: 1;

    height: 1px;

    background-color: #ddd;
}


/* ============================================================
   CAMPOS
   ============================================================ */

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;

    font-weight: 600;

    color: #333;

    font-size: .88rem;

    margin-bottom: 5px;
}

.text-danger {
    color: var(--rojo) !important;
}

.form-control {
    width: 100%;

    border-radius: 6px;

    border: 1px solid #ced4da;

    box-shadow: none;

    min-height: 38px;

    font-size: .9rem;

    color: #333;

    background-color: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--azul-md);

    box-shadow:
        0 0 0 3px rgba(6, 101, 165, .10);

    outline: none;
}

.form-control::placeholder {
    color: #9aa0a6;
}

textarea.form-control {
    resize: vertical;

    min-height: 120px;

    line-height: 1.55;
}

input[type="file"] {
    padding: 6px;

    background-color: #f8f9fa;
}


/* ============================================================
   TEXTO DE AYUDA
   ============================================================ */

.pqrs-help-text {
    font-size: .82rem;

    line-height: 1.5;

    margin-bottom: 10px;
}


/* ============================================================
   RADIO CARDS
   ============================================================ */

.radio-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 5px;
}

.radio-grid.columna {
    flex-direction: column;

    gap: 8px;
}

.radio-card {
    display: flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    font-size: .88rem;

    line-height: 1.4;

    color: #444;

    padding: 9px 13px;

    border-radius: 7px;

    border: 1px solid #ddd;

    background-color: #fff;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;

    user-select: none;

    margin: 0;
}

.radio-card input[type="radio"] {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.radio-card .radio-dot {
    width: 16px;
    height: 16px;

    border-radius: 50%;

    border: 2px solid #c9c9c9;

    flex: 0 0 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all .2s ease;
}

.radio-card .radio-dot::after {
    content: '';

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background-color: var(--rojo);

    opacity: 0;

    transition: opacity .2s ease;
}

.radio-card:hover {
    border-color: var(--rojo);

    background-color: #fff8fa;
}

.radio-card.activo {
    border-color: var(--rojo);

    background-color: #fde8ec;

    color: #7a0015;

    font-weight: 600;

    box-shadow: 0 1px 3px rgba(170, 13, 46, .08);
}

.radio-card.activo .radio-dot {
    border-color: var(--rojo);
}

.radio-card.activo .radio-dot::after {
    opacity: 1;
}


/* ============================================================
   AUTORIZACIÓN
   ============================================================ */

.auth-box {
    background-color: #fff8e1;

    border-left: 3px solid #f0a500;

    border-radius: 6px;

    padding: 12px 14px;

    font-size: .82rem;

    color: #5a4000;

    line-height: 1.6;

    margin-top: 12px;

    margin-bottom: 10px;
}

.auth-radio-group {
    display: flex;

    gap: 10px;

    margin-top: 8px;
}

.auth-radio-group .radio-card {
    flex: 0 0 auto;
}

.radio-card.si {
    color: #1a7a3c;

    border-color: #1a7a3c;
}

.radio-card.no {
    color: var(--rojo);

    border-color: var(--rojo);
}

.radio-card.si .radio-dot {
    border-color: #1a7a3c;
}

.radio-card.si .radio-dot::after {
    background-color: #1a7a3c;
}

.radio-card.si.activo {
    background-color: #e8f5ee;

    box-shadow:
        0 0 0 3px rgba(26, 122, 60, .10);
}

.radio-card.no.activo {
    background-color: #fde8ec;

    box-shadow:
        0 0 0 3px rgba(176, 0, 32, .10);
}


/* ============================================================
   CAMPOS "OTRO"
   ============================================================ */

.input-otro {
    margin-top: 10px;

    display: none;
}

.input-otro.visible {
    display: block;
}


/* ============================================================
   CONTADORES
   ============================================================ */

.textarea-wrap {
    position: relative;
}

.char-counter {
    position: absolute;

    right: 10px;

    bottom: 8px;

    font-size: .72rem;

    color: #999;

    pointer-events: none;

    background-color: rgba(255, 255, 255, .85);

    padding: 1px 4px;

    border-radius: 3px;
}

.char-counter.warn {
    color: #e67e22;

    font-weight: 600;
}

.char-counter.over {
    color: var(--rojo);

    font-weight: 700;
}


/* ============================================================
   BADGES
   ============================================================ */

.badge-req {
    font-size: .68rem;

    font-weight: 600;

    padding: 3px 8px;

    border-radius: 20px;

    text-transform: none;

    letter-spacing: 0;
}

.badge-req.obli {
    background-color: #fde8ec;

    color: var(--rojo);
}

.badge-req.opci {
    background-color: #e8f4fd;

    color: var(--azul-md);
}


/* ============================================================
   ERRORES
   ============================================================ */

.pqrs-error {
    display: block;

    margin-top: 7px;

    font-size: .78rem;

    font-weight: 600;
}

.pqrs-error[hidden] {
    display: none;
}


/* ============================================================
   ARCHIVO
   ============================================================ */

.pqrs-file-box {
    margin-top: 5px;
}

.pqrs-file-box label {
    display: block;

    color: #333;

    font-size: .88rem;

    font-weight: 600;

    margin-bottom: 7px;
}

.pqrs-file-box label i {
    color: var(--rojo);

    margin-right: 6px;
}

.pqrs-file-box small {
    font-weight: 400;

    font-size: .75rem;
}


/* ============================================================
   BOTÓN
   ============================================================ */

.btn-enviar {
    background-color: var(--rojo);

    border: 1px solid var(--rojo);

    color: #fff;

    border-radius: 6px;

    font-weight: 700;

    letter-spacing: .5px;

    padding: 11px 22px;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .15s ease;
}

.btn-enviar:hover {
    background-color: var(--azul);

    border-color: var(--azul);

    color: #fff;

    box-shadow:
        0 5px 15px rgba(0, 49, 73, .25);
}

.btn-enviar:active {
    transform: translateY(1px);
}

.btn-enviar:disabled {
    opacity: .7;

    cursor: not-allowed;

    box-shadow: none;
}

.btn-color {
    background-color: var(--rojo);

    border-color: var(--rojo);
}

.btn-text {
    color: #fff;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {

    .pqrs-page .section-text {
        max-width: 90%;
    }

    .pqrs-page>.container {
        max-width: 920px;
    }

    .form-pqr {
        padding: 24px;
    }

}


@media (max-width: 768px) {

    .pqrs-page {
        padding-bottom: 30px;
    }

    .pqrs-page .section-text {
        padding-top: 30px;

        font-size: 1rem;

        letter-spacing: 2px;
    }

    .pqrs-page .section-text::before,
    .pqrs-page .section-text::after {
        margin: 0 10px;
    }

    .title-revisiones {
        font-size: 1.75rem;

        padding: 0 15px;
    }

    .form-pqr {
        padding: 18px 15px;

        margin-top: 5px;
    }

    .form-pqr h3 {
        font-size: 1.35rem;
    }

    .form-section {
        padding: 15px 13px 12px;
    }

    .form-section-title {
        font-size: .85rem;
    }

    .radio-grid {
        flex-direction: column;
    }

    .radio-card {
        width: 100%;

        font-size: .86rem;
    }

    .auth-radio-group {
        flex-direction: column;
    }

    .auth-radio-group .radio-card {
        width: 100%;
    }

    .pqrs-instructions-list {
        font-size: .95rem;

        padding-left: 25px;
    }

    .pqrs-image {
        max-width: 180px;
    }

    .btn-enviar {
        font-size: .9rem;

        padding: 10px 18px;
    }

}


@media (max-width: 576px) {

    .pqrs-page .section-text {
        font-size: .9rem;
    }

    .title-revisiones {
        font-size: 1.5rem;
    }

    .form-pqr {
        border-radius: 8px;

        padding: 15px 12px;
    }

    .form-section {
        border-radius: 7px;
    }

    .pqrs-welcome-box,
    .print-notice {
        padding: 14px;
    }

}