/* ===============================
   FUENTES
================================ */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300..800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* ===============================
   VARIABLES
================================ */
:root {
    --color-azul: #0b8bd8;
    --color-azul-light: #e9f6ff;
    --color-azul-dark: #0e3f77;
    --color-azul-dark2: #1a5892;
    --color-azul-dark3: #0c3392;
    --color-gray: #667085;
    --color-gray-dark: #1e293b;
    --color-bg-page: #f3f8fc;
    --color-card: #ffffff;
    --color-stroke: #d7e8f5;
    --shadow-soft: 0 20px 45px rgba(10, 51, 105, 0.09);
}

/* ===============================
   BASE
================================ */
.consulta-page {
    font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #102a43;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
}

h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i {
    margin-right: 6px;
}


strong {
    font-weight: bolder;
    font-weight: 700;
}

label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
}

label,
.label {
    color: #333333;
    font-size: 0.8rem;
    font-weight: 700;
}

label i,
.flow-resume i {
    margin-right: 6px;
    color: #ffffff;
}

label i,
.flow-resume i,
.modern-table th i,
.modern-table tfoot i {
    margin-right: 6px;
    color: #0d1a63;
}

.modern-table th i {
    color: #ffffff;
}

.label_b {
    display: block;
    font-weight: 700;
    color: #1361c5;
}

a {
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #0d7fc9;
    outline-offset: 2px;
}


.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    justify-self: anchor-center;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    position: relative;
    margin-right: 8px;
    background-color: white;
    transition: background-color 0.2s ease;
}

.checkbox-container input:checked+.checkmark {
    background-color: #007bff;
}

.checkbox-container input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* radio */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    width: 230px;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option img {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
}

.radio-option.selected {
    border-color: #007bff;
    background-color: #e6f0ff;
}

.image-checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.image-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    transition: 0.3s;
    width: 120px;
}

.image-checkbox input[type="checkbox"] {
    display: none;
}

.image-checkbox img {
    width: 60px;
    height: auto;
}

.image-checkbox.selected {
    border-color: #007bff;
    background-color: #e6f0ff;
}

.alert.alert-info {
    background: #0696a6;
    border: #0696a6;
    color: #fff;
    font-weight: 600;
}

button#toggleBtn {
    padding: 9px 11px;
}

span.label_t {
    background: none;
    padding: 0px;
    margin-right: 13px;
}

span.badge.bg-azul-am {
    font-size: 16px;
    background: var(--color-azul-dark);
    color: #fff;
}

.small-x {
    font-size: 9px;
}

span.bold {
    font-weight: 700;
}

.header-sidebar {
    margin: 40px 0px;
    padding-left: 24px;
}

.label-welcolme {
    font-size: 1.2rem;
    font-weight: 200;
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.custom-checkbox-wrapper {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 25px;
    cursor: pointer;
}

.custom-checkbox-wrapper input:checked+.checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.custom-checkbox-wrapper input:checked+.checkmark:after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-wrapper .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    border: 2px solid #0d6efd;
    transition: .2s;
}

.formpse {
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-stroke);
    margin-top: 20px;
}

/* ===============================
   HELPERS
================================ */
.block {
    display: block;
}

.h-full {
    height: 100vh;
}

.text-small {
    font-size: 12px;
    font-weight: 600;
}

.justify {
    text-align: justify;
}

.v-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   SPACING
================================ */
.p30 {
    padding: 30px;
}

.m-b-10 {
    margin-bottom: 10px;
}

.m-b-20 {
    margin-bottom: 20px;
}

.m-b-50 {
    margin-bottom: 50px;
}

/* ===============================
   BUTTONS
================================ */
.btn-primary {
    background: var(--color-azul);
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 18px;
    box-shadow: 0 8px 20px rgba(9, 91, 162, 0.23);
}

.btn-primary:hover {
    background: var(--color-azul-dark);
    transform: translateY(-1px);
}

.btn-info {
    background: var(--color-azul-dark3);
    color: #fff;
}

.btn i {
    margin-right: 7px;
}

/* ===============================
   CARDS
================================ */
.card {
    border: none;
}

.card-header {
    background: var(--color-azul-light);
    font-weight: 600;
}

.card2,
.card3 {
    box-shadow: var(--shadow-soft);
}

/* ===============================
   TABLES
================================ */
.table th {
    background: var(--color-azul-light);
    color: #23456d;
    font-weight: 500;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

/* ===============================
   BADGES
================================ */
.badge {
    padding: 8px;
    font-weight: 600;
}

.badge.pagada,
.badge.PAGADO {
    background: #028165;
}

.badge.pendiente,
.badge.SINPAGO {
    background: #fe6767;
}

/* ===============================
   CHECKBOX & RADIO
================================ */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-azul-dark);
    accent-color: var(--color-azul-dark);
}

.radio-option,
.image-checkbox {
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.radio-option.selected,
.image-checkbox.selected {
    border-color: #007bff;
    background: #e6f0ff;
}

/* ===============================
   PSE
================================ */
.pse {
    padding-top: 50px;

}

.pse.dark {
    background: linear-gradient(180deg, #1361c5 0%, #0c32a1 100%);
    color: #fff;
}

.pse.dark h1,
.pse.dark h2 {
    color: #65eaf7;
}

.pse.style2 {
    padding-top: 10px;
    margin-bottom: 2rem;
}

.div_total {
    font-weight: 600;
    color: #1361c5;
    padding-bottom: 10px;
}

.formpse.modern-form.media-card {
    margin: 0px;
    margin-bottom: 2rem;
}

.none {
    display: none;
}

/* ===============================
   PRIMEFACES OVERRIDE
================================ */
.select-custom,
.input-text {
    width: 100% !important;
    height: 34px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
}

.c_rojo {
    color: var(--color-1);
}

.c_azuldark {
    color: var(--color-azul-dark);
}

/* ===============================
   MODERN LAYOUT
================================ */
.page-shell {
    padding-top: 24px;
    padding-bottom: 40px;
}

.quick-steps {
    margin-top: 14px;
}

.sticky-flow {
    position: sticky;
    top: 12px;
    z-index: 20;
}

.quick-steps-inner {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cfe3f4;
    border-radius: 11px;
    box-shadow: 0 10px 28px rgba(14, 63, 119, 0.1);
    padding: 16px 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.quick-step-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.quick-step-item.is-active,
.quick-step-item.is-done {
    opacity: 1;
}

.quick-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, #88b9e6, #b5d7f3);
}

.quick-step-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f6eb8;
    font-size: 1.2rem;
    background: linear-gradient(140deg, #ecf7ff, #dff1ff);
    border: 1px solid #b9daf3;
}

.quick-step-item.is-active .quick-step-icon {
    border-color: #1592e6;
    box-shadow: 0 0 0 4px rgba(21, 146, 230, 0.18);
}

.quick-step-item.is-done .quick-step-icon {
    color: #ffffff;
    background: linear-gradient(140deg, #2196F3, #0d1a63);
    border-color: #0d1a63;
}

.quick-step-item small {
    display: block;
    font-size: 0.72rem;
    color: #6a86a2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 2px;
}

.quick-step-item h3 {
    font-size: 1rem;
    margin: 0;
    color: #143d63;
    font-weight: 700;
}

.flow-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d7e8f5;
    background: #f6fbff;
    border-radius: 12px;
    color: #35516b;
    font-size: 0.92rem;
}

.flow-resume strong {
    color: #0f4f86;
}

.dark {
    color: #ffffff !important;
    background: #0d1a63 !important;
    background: linear-gradient(to left, #0d1a63, #208dcd) !important;

}

.dark * {
    color: #ffffff !important;
}

.hero-banner img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.hero-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.92));
    border: 1px solid var(--color-stroke);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 36px 28px;
}

.content.dark.hero-card {
    color: #ffffff !important;
    background: linear-gradient(to left, #0d1a63, #208dcd) !important;
    border: 1px solid var(--color-stroke);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 36px 28px;
}

.content.dark.hero-card h1 {
    color: #ffffff !important;
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    margin-bottom: 14px;
}


.hero-kicker {
    display: inline-block;
    color: #0f6eb8;
    background: #0d2478;
    border: 1px solid #b6deff;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.hero-card h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    margin-bottom: 14px;
}

.hero-card p {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #34495f;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
}

.hero-highlights span {
    background: #fff;
    border: 1px solid var(--color-stroke);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4f86;
}

.hero-cta {
    min-width: 180px;
    padding: 19px 18px !important;
}

.step-card-wrap {
    margin-top: 16px;
}

.flow-grid .step-card {
    margin-bottom: 0;
    height: 100%;
}

.inline-selection.pse.style2 {
    padding-top: 0;
    margin-bottom: 0;
}

.step-card,
.modern-card,
.modern-form {
    background: var(--color-card);
    border: 1px solid var(--color-stroke);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.step-card {
    padding: 26px;
    margin-bottom: 2rem;
}

.btn-step {
    min-width: 220px;
}

.intro-table {
    font-size: 0.98rem;
    color: #334e68;
    margin-bottom: 14px;
}

.modern-table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4e6f5;
    background: #fff;
    margin-bottom: 0;
}

.modern-table thead th {
    background: #098bd8;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #c7def2;
    padding: 13px 12px;
}

.modern-table thead th .label_b {
    color: #ffffff;
}

.modern-table tbody td {
    padding: 14px 12px;
    background: #fff;
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.modern-table tbody tr:hover td {
    background: #f3f9ff;
}

.modern-table th,
.modern-table td {
    border-color: #dce9f4;
}

.modern-table tbody tr.selected-row {
    background: #edf7ff;
}

.modern-table tbody tr.selected-row td {
    background: #eaf5ff;
}



.modern-table tfoot td {
    background: #f1f8ff;
    font-size: 0.95rem;
    border-top: 1px solid #c7def2;
    padding: 11px 12px;
}

.modern-table .checkbox-container {
    justify-content: flex-start;
    gap: 8px;
}

.modern-table .label_b {
    margin-bottom: 0;
}

.due-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2f4b66;
}

.due-date i {
    color: #1b7ec5;
}

.media-card {
    margin-bottom: 20px;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d1dfea;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #66afe9;
    box-shadow: 0 0 0 3px rgba(12, 109, 190, 0.12);
}

.summary-panel {
    padding-top: 6px;
}

.summary-panel .div_total {
    border: 1px solid #cbe4f8;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5fbff 0%, #e5f4ff 100%);
    padding: 14px 12px;
    margin-bottom: 12px;
}

.summary-panel .valor_total {
    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 6px;
}

.pay-btn {
    border: 1px solid #d1e4f5;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    width: 100%;
    max-width: 220px;
}

.pay-btn:hover {
    border-color: #9ccbf1;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .page-shell {
        padding-top: 16px;
    }

    .quick-steps-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sticky-flow {
        position: static;
    }

    .quick-step-item:not(:last-child)::after {
        display: none;
    }

    .flow-resume {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        padding: 24px 18px;
    }

    .step-card,
    .formpse {
        padding: 16px;
    }

    .flow-grid .step-card {
        margin-bottom: 1rem;
    }

    .summary-panel .valor_total {
        font-size: 1.45rem;
    }

    .modern-table thead th,
    .modern-table tbody td,
    .modern-table tfoot td {
        padding: 10px 8px;
        font-size: 0.83rem;
    }
}