* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --azul: #160C7D;
    --azul2: #2825B4;
    --azul3: #160C7D;
    --azul-light: #EBF2FF;
    --azul-mid: #BEDAF5;
    --rojo: #D62B2B;
    --rojo2: #B82222;
    --rojo-light: #FEF0F0;
    --rojo-border: #F0B8B8;
    --amarillo: #FFD166;
    --blanco: #fff;
    --gris1: #F6F8FB;
    --gris2: #E2E8F2;
    --gris3: #A0AFCA;
    --gris4: #5A6B85;
    --negro: #192133;
    --radio: 14px;
    --rsm: 9px;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #F0F4FA;
    color: var(--negro);
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 3rem;
}

/* ── LOGO HEADER (ambas pantallas) ── */
.top-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

    .top-logo img {
        height: 56px;
        object-fit: contain;
    }



/* ── PASO 1 ── */
#paso1 {
    display: block;
}

#paso2 {
    display: none;
}

.card-head-plus {
    color: var(--rojo);
    font-size: 22px;
}

.card-logo-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.card-logo {
    height: 52px;
    object-fit: contain;
}

.meta-hint {
    font-size: 11px;
    color: var(--azul2);
    margin-top: 4px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.meta-error {
    display: none;
}


/* Banner Proyecta+ */
.banner-img {
    width: 100%;
    position: relative;
    border-radius: var(--radio);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 52, 128, 0.18);
}

    .banner-img img {
        width: 100%;
        display: block;
        border-radius: var(--radio);
    }

/* Card formulario */
.card {
    background: var(--blanco);
    border: 1.5px solid var(--gris2);
    border-radius: var(--radio);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-head {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 6px;
}

.card-sub {
    font-size: 13px;
    color: var(--gris4);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .fld label {
        font-family: "Nunito", sans-serif;
        font-size: 11px;
        font-weight: 800;
        color: var(--gris4);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .fld input {
        height: 46px;
        border: 2px solid var(--gris2);
        border-radius: var(--rsm);
        padding: 0 14px;
        font-size: 15px;
        font-family: "Open Sans", sans-serif;
        color: var(--negro);
        background: var(--blanco);
        outline: none;
        transition: border-color .15s;
        width: 100%;
    }

        .fld input:focus {
            border-color: var(--azul);
        }

.fld-err {
    font-size: 10px;
    color: var(--rojo);
    margin-top: 2px;
    display: none;
}

.fld.show-err input {
    border-color: var(--rojo);
}

.fld.show-err .fld-err {
    display: block;
}

.politica-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--azul-light);
    border-radius: var(--rsm);
    border: 1.5px solid var(--azul-mid);
    margin-bottom: 1.25rem;
    cursor: pointer;
}

    .politica-wrap input[type=checkbox] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: var(--azul);
        cursor: pointer;
    }

.politica-txt {
    font-size: 12px;
    color: var(--gris4);
    line-height: 1.5;
}

    .politica-txt a {
        color: var(--azul);
        font-weight: 600;
        text-decoration: underline;
    }

.politica-err {
    font-size: 10px;
    color: var(--rojo);
    margin-bottom: 1rem;
    display: none;
}

    .politica-err.show {
        display: block;
    }

.btn-siguiente {
    width: 100%;
    height: 52px;
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: var(--rsm);
    font-size: 16px;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

    .btn-siguiente:hover {
        background: var(--azul2);
    }

    .btn-siguiente svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        fill: none;
        stroke-width: 2.5;
    }

.send-status {
    font-size: 11px;
    color: var(--gris4);
    text-align: center;
    margin-top: 8px;
    min-height: 16px;
}

/* ── HEADER SIMULADOR (paso 2) ── */
.sim-header {
    background: var(--azul);
    border-radius: var(--radio);
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: 0 4px 24px rgba(27, 95, 193, 0.18);
}

.hbar {
    height: 6px;
    background: linear-gradient(90deg, var(--rojo) 0%, #F05A5A 40%, var(--amarillo) 100%);
}

.hd1 {
    position: absolute;
    right: -30px;
    top: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.hd2 {
    position: absolute;
    right: 90px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hinner {
    padding: 1.4rem 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.hleft {
    flex: 1;
    min-width: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 6px 14px 6px 12px;
    margin-bottom: 12px;
    gap: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pill-texto {
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--azul2);
    line-height: 1;
}

.pill-heart {
    color: var(--rojo);
    font-size: 16px;
    line-height: 1;
    margin: 0 1px;
}

.pill-plus {
    font-family: "Nunito", sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--azul2);
    line-height: .9;
    margin-left: 2px;
}

.htitle {
    font-family: "Nunito", sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.15;
}

    .htitle em {
        font-style: normal;
        color: var(--amarillo);
    }

.hsub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.hright {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

    .hright img {
        height: 60px;
        object-fit: contain;
        background: #fff;
        border-radius: 10px;
        padding: 6px 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

/* CARDS SIMULADOR */
.scard {
    background: var(--blanco);
    border: 1.5px solid var(--gris2);
    border-radius: var(--radio);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ctit {
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.ctit-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cico {
    width: 26px;
    height: 26px;
    background: var(--azul-light);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cico svg {
        width: 13px;
        height: 13px;
        stroke: var(--azul2);
        fill: none;
        stroke-width: 2.5;
    }

.tbrow {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.tbadge {
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid;
}

    .tbadge.t1 {
        background: #EBF4FF;
        border-color: #BEDAF5;
        color: #1A4FAF;
    }

    .tbadge.t2 {
        background: var(--azul-light);
        border-color: var(--azul-mid);
        color: var(--azul2);
    }

    .tbadge.t3 {
        background: var(--azul);
        border-color: var(--azul);
        color: #fff;
    }

    .tbadge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        opacity: .6;
    }

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field label {
        font-family: "Nunito", sans-serif;
        font-size: 11px;
        font-weight: 800;
        color: var(--gris4);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.iw {
    position: relative;
}

.ipfx {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--gris3);
    pointer-events: none;
}

.isfx {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gris2);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--gris4);
    font-family: "Nunito", sans-serif;
}

.field input[type=text] {
    width: 100%;
    height: 48px;
    border: 2px solid var(--gris2);
    border-radius: var(--rsm);
    font-size: 17px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    color: var(--negro);
    background: var(--blanco);
    outline: none;
    padding: 0 50px 0 30px;
    transition: border-color .15s;
}

    .field input[type=text]:focus {
        border-color: var(--azul);
    }

.pgrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.pgrid7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.pbtn.disponible {
    border-color: #00A86B;
    background: #E8F8F2;
    color: #007A4D;
    font-weight: 800;
}

    .pbtn.disponible .ps {
        color: #007A4D;
    }

.pbtn.no-disponible {
    border-color: var(--gris2);
    background: var(--gris1);
    color: var(--gris3);
    cursor: not-allowed;
    opacity: 0.5;
}

    .pbtn.no-disponible .pn,
    .pbtn.no-disponible .ps {
        color: var(--gris3);
    }

.pbtn {
    border: 2px solid var(--gris2);
    background: var(--blanco);
    border-radius: var(--rsm);
    padding: 9px 4px 7px;
    font-family: "Nunito", sans-serif;
    color: var(--gris4);
    cursor: pointer;
    text-align: center;
    transition: all .15s;
}

    .pbtn:hover {
        border-color: var(--azul-mid);
        color: var(--azul);
    }

    .pbtn.active {
        border-color: var(--azul);
        background: var(--azul-light);
        color: var(--azul);
    }

    .pbtn .pn {
        font-size: 17px;
        font-weight: 900;
        display: block;
        line-height: 1;
    }

    .pbtn .ps {
        font-size: 10px;
        font-weight: 600;
        opacity: .6;
        display: block;
        margin-top: 2px;
    }

.cuota-box {
    background: var(--azul);
    border-radius: var(--radio);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(27, 95, 193, 0.2);
}

.cuota-main {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.clbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    margin-bottom: 4px;
}

.cnum {
    font-family: "Nunito", sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.cright {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    flex-shrink: 0;
}

.cfooter {
    background: var(--rojo);
    padding: 9px 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cfooter span {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, .9);
        font-family: "Nunito", sans-serif;
    }

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}

.metric {
    border-radius: var(--rsm);
    padding: 1rem 1.1rem;
}

    .metric.mm {
        background: var(--azul-light);
        border: 1.5px solid var(--azul-mid);
    }

    .metric.mp {
        background: var(--rojo-light);
        border: 1.5px solid var(--rojo-border);
    }

    .metric.mt {
        background: var(--azul3);
        border: 1.5px solid var(--azul3);
    }

.mlbl {
    font-family: "Nunito", sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
}

.mm .mlbl {
    color: var(--azul2);
}

.mp .mlbl {
    color: var(--rojo);
}

.mt .mlbl {
    color: white;
}

.mval {
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.mm .mval {
    color: var(--azul);
}

.mp .mval {
    color: var(--rojo);
}

.mt .mval {
    color: #fff;
}

.msub {
    font-size: 10px;
    margin-top: 3px;
}

.mm .msub {
    color: var(--azul2);
}

.mp .msub {
    color: var(--rojo2);
}

.mt .msub {
    color: rgba(255, 255, 255, .55);
}

.ppill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--rojo);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
    letter-spacing: .07em;
}

.total-heart {
    color: white;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 3px;
    display: block;
}

.chart-outer {
    position: relative;
    margin-top: .5rem;
}

.chart-wrap {
    position: relative;
    height: 260px;
}

.bar-label {
    position: absolute;
    font-family: "Nunito", sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    color: #fff;
}

.bar-total-label {
    position: absolute;
    font-family: "Nunito", sans-serif;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    color: var(--azul3);
    background: var(--amarillo);
    padding: 2px 6px;
    border-radius: 10px;
    transform: translate(-50%, -100%);
    margin-top: -6px;
}

.tbl-scroll {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
    border-radius: var(--rsm);
    border: 1px solid var(--gris2);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 560px;
}

thead tr {
    background: var(--azul3);
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th {
    font-size: 10px;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px;
    text-align: right;
    white-space: nowrap;
}

    thead th:first-child,
    thead th:nth-child(2),
    thead th:nth-child(3) {
        text-align: left;
    }

tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--gris2);
    font-size: 12px;
    text-align: right;
}

    tbody td:first-child,
    tbody td:nth-child(2),
    tbody td:nth-child(3) {
        text-align: left;
    }

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: #F0F6FF;
}

tbody tr.yr-row td {
    background: var(--azul-light);
    font-weight: 700;
    color: var(--azul);
    border-top: 1.5px solid var(--azul-mid);
}

    tbody tr.yr-row td.tdp {
        color: var(--rojo);
    }

.tdp {
    color: var(--rojo);
    font-weight: 700;
}

.tdm {
    color: var(--gris4);
}

.yr-badge {
    display: inline-block;
    background: var(--azul);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

.btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    border: none;
    transition: all .15s;
}

.btn-pdf {
    background: var(--rojo);
    color: #fff;
}

    .btn-pdf:hover {
        background: var(--rojo2);
    }

.btn-print {
    background: var(--gris1);
    color: var(--gris4);
    border: 1.5px solid var(--gris2);
}

    .btn-print:hover {
        border-color: var(--azul-mid);
        color: var(--azul);
    }

.btn-dl svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.view-toggle {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--gris2);
    border-radius: 20px;
    overflow: hidden;
    font-family: "Nunito", sans-serif;
}

    .view-toggle button {
        border: none;
        background: transparent;
        padding: 5px 14px;
        font-size: 11px;
        font-weight: 700;
        color: var(--gris4);
        cursor: pointer;
        font-family: "Nunito", sans-serif;
        transition: all .15s;
    }

        .view-toggle button.active {
            background: var(--azul);
            color: #fff;
        }

/* ADMIN */
.admin-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999;
}

.admin-fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 52, 128, 0.85);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .admin-modal.open {
        display: flex;
    }

.admin-box {
    background: #fff;
    border-radius: var(--radio);
    padding: 1.5rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

    .admin-box h3 {
        font-family: "Nunito", sans-serif;
        font-size: 15px;
        font-weight: 800;
        color: var(--azul3);
        margin-bottom: 1rem;
    }

.admin-pw-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: .5rem;
}

    .admin-pw-wrap input {
        flex: 1;
        height: 40px;
        border: 1.5px solid var(--gris2);
        border-radius: 7px;
        padding: 0 12px;
        font-size: 14px;
        font-family: "Open Sans", sans-serif;
        outline: none;
    }

        .admin-pw-wrap input:focus {
            border-color: var(--azul);
        }

    .admin-pw-wrap button {
        height: 40px;
        padding: 0 16px;
        background: var(--azul);
        color: #fff;
        border: none;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
        font-family: "Nunito", sans-serif;
        cursor: pointer;
    }

.admin-fields {
    display: none;
    margin-top: .75rem;
}

    .admin-fields.open {
        display: block;
    }

.agrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: .75rem;
}

.af {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .af label {
        font-size: 11px;
        color: var(--gris4);
        font-weight: 600;
        font-family: "Nunito", sans-serif;
    }

.aw {
    position: relative;
}

.apfx {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--gris3);
}

.af input {
    height: 36px;
    width: 100%;
    border: 1.5px solid var(--gris2);
    border-radius: 7px;
    padding: 0 8px 0 26px;
    font-size: 13px;
    background: var(--blanco);
    outline: none;
}

    .af input:focus {
        border-color: var(--azul);
    }

.admin-btns {
    display: flex;
    gap: 8px;
}

.abtn {
    flex: 1;
    height: 36px;
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
}

    .abtn.sec {
        background: var(--gris2);
        color: var(--gris4);
    }

.admin-err {
    font-size: 11px;
    color: var(--rojo);
    margin-top: 4px;
    display: none;
}

.anote {
    font-size: 10px;
    color: var(--gris3);
    margin-top: 6px;
}

.disc {
    font-size: 10px;
    color: var(--gris3);
    margin-top: 1rem;
    line-height: 1.65;
    border-top: 1px solid var(--gris2);
    padding-top: .75rem;
}


.chart-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#proyeccion {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}


/* SECCIÓN GRAFICO */

.chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: .75rem;
    font-size: 11px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .chart-legend-item.aporte {
        color: #5A6B85;
    }

    .chart-legend-item.rendimiento {
        color: #33ba2a;
    }

.chart-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

    .chart-legend-color.aporte {
        background: #160C7D;
    }

    .chart-legend-color.rendimiento {
        background: #33ba2a;
    }


    /* */

.th-left {
    text-align: left;
}

/* RESPONSIVE */
@media(max-width:600px) {
    body {
        padding: 1rem .5rem;
    }

    .hinner {
        flex-wrap: wrap;
        padding: 1.2rem;
    }

    .hright {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .htitle {
        font-size: 20px;
    }

    .cnum {
        font-size: 26px;
    }

    .cuota-main {
        flex-wrap: wrap;
    }

    .cright {
        text-align: left;
        width: 100%;
    }

    .row2 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .agrid {
        grid-template-columns: 1fr 1fr;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn-dl {
        justify-content: center;
    }

    .view-toggle {
        width: 100%;
    }

        .view-toggle button {
            flex: 1;
            text-align: center;
        }

    .pgrid7 {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    table {
        min-width: 480px;
    }

    .top-logo img {
        height: 44px;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .admin-float,
    .cfooter,
    .btn-row,
    .view-toggle {
        display: none !important;
    }

    #paso1 {
        display: none !important;
    }

    .tbl-scroll {
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
    }

    .sim-header,
    .scard {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .wrap {
        max-width: 100% !important;
    }

    thead tr {
        background: #160C7D !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cuota-box {
        background: #1B5FC1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .chart-outer {
        display: none;
    }

    table {
        min-width: auto !important;
        font-size: 10px;
    }

    tbody td,
    thead th {
        padding: 5px 7px !important;
    }

    @page {
        margin: 1.5cm;
        size: A4 landscape;
    }
}

