/* =========================================================
   ENET - PORTAL DE CLIENTES
   CONSULTA
   DISEÑO MULTICONTRATO
   ========================================================= */

:root {

    --enet-dark: #06142d;
    --enet-dark-2: #081b3b;

    /* Superficies diferenciadas del fondo */
    --enet-surface: #0b2344;
    --enet-surface-2: #102b4f;
    --enet-surface-soft: rgba(18, 49, 82, .72);

    --enet-border: rgba(67, 151, 208, .42);
    --enet-border-soft: rgba(108, 165, 211, .16);

    --enet-cyan: #00d9ff;
    --enet-cyan-soft: #76d8ee;

    --enet-yellow: #ffca05;
    --enet-yellow-hover: #ffd52e;

    --enet-white: #ffffff;
    --enet-text: #d7e4f3;
    --enet-muted: #91aac8;

    --success: #35d48a;
    --danger: #ff6b76;
    --warning: #f0aa55;
    --neutral: #aab7c7;
    --kill: #b58cff;

    --radius: 18px;

    --shadow:
        0 25px 65px rgba(0, 0, 0, .30);

    --shadow-card:
        0 20px 50px rgba(0, 0, 0, .24),
        0 0 35px rgba(0, 174, 239, .035);

}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {

    margin: 0;

    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--enet-white);

    background:

        radial-gradient(
            circle at 86% 12%,
            rgba(0, 174, 239, .12),
            transparent 29%
        ),

        radial-gradient(
            circle at 8% 72%,
            rgba(0, 217, 255, .045),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #06142d 0%,
            #071936 50%,
            #09284b 100%
        );

}

button,
input {
    font-family: inherit;
}


/* =========================================================
   PORTAL
   ========================================================= */

.portal {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}


/* =========================================================
   HEADER
   ========================================================= */

.portal-header {

    height: 74px;

    flex-shrink: 0;

    background:
        rgba(2, 15, 36, .97);

    border-bottom:
        1px solid rgba(255, 255, 255, .07);

}

.header-content {

    width:
        min(
            1120px,
            calc(100% - 48px)
        );

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 145px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-mark {

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #e6d900,
            #00c6df
        );

    color: #06203d;

    font-size: 28px;

    font-weight: 900;

    font-style: italic;

}

.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1;

}

.brand-text strong {

    font-size: 26px;

    font-style: italic;

    letter-spacing: -1px;

}

.brand-text span {

    margin-top: 4px;

    font-size: 9px;

    letter-spacing: 1.5px;

    color: white;

}

.header-caption {

    color: #dce8f7;

    font-size: 14px;

    font-weight: 700;

}


/* =========================================================
   MAIN
   ========================================================= */

.portal-main {

    width:
        min(
            1120px,
            calc(100% - 48px)
        );

    margin: 0 auto;

    padding:
        52px 0
        70px;

    flex: 1;

}


/* =========================================================
   CLIENT AREA
   ========================================================= */

.client-area {

    margin-bottom: 44px;

}

.client-introduction {

    margin-bottom: 25px;

}

.eyebrow {

    display: inline-flex;

    align-items: center;

    padding:
        8px 15px;

    border:
        1px solid rgba(0, 217, 255, .50);

    border-radius: 30px;

    background:
        rgba(0, 217, 255, .045);

    color: var(--enet-cyan);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

}

.client-introduction h1 {

    margin:
        18px 0 7px;

    font-size: 40px;

    line-height: 1;

    letter-spacing: -1.3px;

}

.client-introduction p {

    margin: 0;

    color: var(--enet-muted);

    font-size: 15px;

    line-height: 1.55;

}


/* =========================================================
   CARD ÚNICO DEL CLIENTE
   ========================================================= */

.client-card {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        230px;

    min-height: 118px;

    overflow: hidden;

    border:
        1px solid rgba(83, 155, 211, .45);

    border-radius: 18px;

    background:

        linear-gradient(
            135deg,
            rgba(18, 49, 82, .96),
            rgba(9, 30, 58, .96)
        );

    box-shadow:
        var(--shadow-card);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

}

.client-card::before {

    content: "";

    position: absolute;

    top: -80px;
    left: -20%;

    width: 55%;
    height: 180%;

    background:
        linear-gradient(
            105deg,
            transparent 20%,
            rgba(255, 255, 255, .045) 48%,
            transparent 72%
        );

    transform:
        translateX(-80%);

    transition:
        transform .65s ease;

    pointer-events: none;

}

.client-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(0, 217, 255, .58);

    box-shadow:

        0 28px 65px rgba(0, 0, 0, .32),

        0 0 45px
        rgba(0, 217, 255, .055);

}

.client-card:hover::before {

    transform:
        translateX(250%);

}

.client-card-main {

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        24px 28px;

}

.client-icon {

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(0, 217, 255, .22);

    border-radius: 14px;

    background:
        rgba(0, 217, 255, .055);

    color:
        var(--enet-cyan);

}

.client-icon svg {

    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.client-information {

    min-width: 0;

}

.client-label {

    display: block;

    margin-bottom: 5px;

    color: var(--enet-cyan);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .9px;

}

.client-information > strong {

    display: block;

    color: white;

    font-size: 18px;

    line-height: 1.25;

    text-transform: uppercase;

}

.client-contact {

    margin-top: 10px;

}

.client-data {

    display: flex;

    align-items: center;

    gap: 8px;

}

.data-icon {

    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--enet-cyan-soft);

}

.data-icon svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.client-data div {

    display: flex;

    align-items: baseline;

    gap: 7px;

}

.client-data small {

    color: var(--enet-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .7px;

}

.client-data strong {

    color: white;

    font-size: 12px;

}


/* =========================================================
   CONTRATOS DEL CLIENTE
   ========================================================= */

.client-contracts {

    min-width: 190px;

    padding:
        20px 26px;

    display: flex;

    align-items: center;

    gap: 12px;

    border-left:
        1px solid var(--enet-border-soft);

    background:
        rgba(3, 19, 39, .22);

}

.contracts-icon {

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(0, 217, 255, .20);

    border-radius: 11px;

    background:
        rgba(0, 217, 255, .045);

    color: var(--enet-cyan);

}

.contracts-icon svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.client-contracts > div:last-child {

    display: flex;

    flex-direction: column;

}

.client-contracts span {

    color: var(--enet-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

}

.client-contracts strong {

    margin-top: 2px;

    color: var(--enet-cyan);

    font-size: 25px;

    line-height: 1;

}

.client-contracts small {

    margin-top: 3px;

    color: var(--enet-muted);

    font-size: 8px;

}


/* =========================================================
   CONTRATOS
   ========================================================= */

.contracts-section {

    margin-top: 5px;

}

.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;

}

.section-kicker {

    display: block;

    color: var(--enet-cyan);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

}

.section-heading h2 {

    margin:
        5px 0 0;

    color: white;

    font-size: 25px;

    letter-spacing: -.5px;

}

.contract-count {

    flex-shrink: 0;

    padding:
        8px 14px;

    border:
        1px solid rgba(0, 217, 255, .22);

    border-radius: 20px;

    background:
        rgba(0, 217, 255, .055);

    color: var(--enet-cyan);

    font-size: 10px;

    font-weight: 800;

}


/* =========================================================
   CARD CONTRATO
   ========================================================= */

.contract-card {

    position: relative;

    margin-bottom: 26px;

    overflow: hidden;

    border:
        1px solid rgba(74, 143, 197, .48);

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            rgba(16, 43, 79, .97),
            rgba(8, 28, 54, .98)
        );

    box-shadow:

        0 22px 55px
        rgba(0, 0, 0, .27),

        inset 0 1px 0
        rgba(255, 255, 255, .025);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

}

.contract-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:

        linear-gradient(
            90deg,
            rgba(0, 217, 255, .85),
            rgba(0, 217, 255, .18),
            transparent 72%
        );

}

.contract-card::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    top: -170px;
    right: -90px;

    background:
        radial-gradient(
            circle,
            rgba(0, 217, 255, .075),
            transparent 68%
        );

    pointer-events: none;

}

.contract-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(87, 170, 224, .60);

    box-shadow:

        0 30px 65px
        rgba(0, 0, 0, .33),

        0 0 40px
        rgba(0, 174, 239, .045);

}


/* =========================================================
   CABECERA CONTRATO
   ========================================================= */

.contract-header {

    min-height: 104px;

    padding:
        22px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background:
        rgba(3, 18, 38, .32);

    border-bottom:
        1px solid var(--enet-border-soft);

}

.contract-number-block {

    display: flex;

    flex-direction: column;

}

.contract-label {

    margin-bottom: 6px;

    color: var(--enet-cyan);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

}

.contract-number {

    color: white;

    font-size: 29px;

    line-height: 1;

    letter-spacing: -.8px;

}

.contract-status-block {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 6px;

}

.contract-status-block > span {

    color: var(--enet-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

}


/* =========================================================
   AGENCIA
   ========================================================= */

.agency-section {

    min-height: 72px;

    padding:
        14px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background:
        rgba(13, 43, 76, .42);

    border-bottom:
        1px solid var(--enet-border-soft);

}

.agency-information {

    display: flex;

    align-items: center;

    gap: 13px;

}

.agency-icon {

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(0, 217, 255, .23);

    border-radius: 11px;

    background:
        rgba(0, 217, 255, .045);

    color:
        var(--enet-cyan);

}

.agency-icon svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.agency-information > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.agency-information span {

    color: var(--enet-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

}

.agency-information strong {

    color: #f5f9ff;

    font-size: 13px;

    text-transform: uppercase;

}


/* =========================================================
   BURBUJA SERVICIOS
   ========================================================= */

.agency-services {

    min-width: 62px;

    height: 48px;

    padding:
        5px 13px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(0, 217, 255, .18);

    border-radius: 25px;

    background:
        rgba(0, 217, 255, .035);

}

.agency-services span {

    color: var(--enet-muted);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: .7px;

}

.agency-services strong {

    color: var(--enet-cyan);

    font-size: 15px;

    line-height: 1.1;

}


/* =========================================================
   CONTENIDO INTERNO
   ========================================================= */

.contract-content {

    padding:
        25px 28px;

}

.contract-content + .contract-content {

    border-top:
        1px solid var(--enet-border-soft);

}

.content-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 17px;

}

.content-heading > div {

    display: flex;

    flex-direction: column;

}

.content-heading > div > span {

    color: var(--enet-cyan);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

}

.content-heading h3 {

    margin:
        4px 0 0;

    color: #eef5fd;

    font-size: 16px;

    font-weight: 700;

}

.content-count {

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(94, 155, 205, .22);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .025);

    color: var(--enet-muted);

    font-size: 10px;

    font-weight: 800;

}


/* =========================================================
   SERVICIOS
   ========================================================= */

.services-list {

    width: 100%;

    border-top:
        1px solid var(--enet-border-soft);

}

.service-item {

    min-height: 76px;

    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        120px
        125px;

    align-items: center;

    gap: 17px;

    padding:
        13px 0;

    border-bottom:
        1px solid var(--enet-border-soft);

}

.service-item:last-child {

    border-bottom: none;

}

.service-icon {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(0, 217, 255, .20);

    border-radius: 12px;

    background:
        rgba(0, 217, 255, .045);

    color:
        var(--enet-cyan);

}

.service-icon svg {

    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.45;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.service-information {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.service-information strong {

    overflow: hidden;

    color: #f6f9fd;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    text-overflow: ellipsis;

}

.service-information span {

    color:
        var(--enet-muted);

    font-size: 10px;

}

.service-status {

    text-align: right;

}

.service-price {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 3px;

}

.service-price span {

    color: var(--enet-muted);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: .7px;

}

.service-price strong {

    color:
        var(--enet-cyan);

    font-size: 17px;

    white-space: nowrap;

}


/* =========================================================
   ESTADOS
   ========================================================= */

.estado-activo,
.estado-inactivo,
.estado-baja,
.estado-generado,
.estado-kill,
.estado-default {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        5px 10px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .35px;

    white-space: nowrap;

}


/* ACTIVO */

.estado-activo {

    color:
        var(--success);

    background:
        rgba(53, 212, 138, .08);

    border:
        1px solid rgba(53, 212, 138, .16);

}


/* INACTIVO */

.estado-inactivo {

    color:
        var(--danger);

    background:
        rgba(255, 107, 118, .08);

    border:
        1px solid rgba(255, 107, 118, .16);

}


/* BAJA */

.estado-baja {

    color:
        var(--warning);

    background:
        rgba(240, 170, 85, .09);

    border:
        1px solid rgba(240, 170, 85, .17);

}


/* GENERADO */

.estado-generado {

    color:
        var(--neutral);

    background:
        rgba(170, 183, 199, .08);

    border:
        1px solid rgba(170, 183, 199, .15);

}


/* KILL */

.estado-kill {

    color:
        var(--kill);

    background:
        rgba(181, 140, 255, .08);

    border:
        1px solid rgba(181, 140, 255, .17);

}


/* DEFAULT */

.estado-default {

    color:
        var(--enet-muted);

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid rgba(255, 255, 255, .08);

}


/* =========================================================
   ESTADO DE CUENTA
   ========================================================= */

.debt-content {

    background:
        rgba(3, 18, 37, .18);

}


/* =========================================================
   BADGES CUENTA
   ========================================================= */

.account-status {

    display: inline-flex;

    align-items: center;

    padding:
        6px 11px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .6px;

}

.account-status.debt {

    color:
        var(--danger);

    background:
        rgba(255, 107, 118, .075);

    border:
        1px solid rgba(255, 107, 118, .15);

}

.account-status.paid {

    color:
        var(--success);

    background:
        rgba(53, 212, 138, .07);

    border:
        1px solid rgba(53, 212, 138, .14);

}


/* =========================================================
   RESUMEN DEUDA
   ========================================================= */

.debt-summary {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        140px
        140px;

    overflow: hidden;

    margin-bottom: 18px;

    border:
        1px solid var(--enet-border-soft);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .025);

}

.debt-total,
.debt-metric {

    min-height: 78px;

    padding:
        14px 18px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.debt-total {

    border-right:
        1px solid var(--enet-border-soft);

}

.debt-metric {

    border-right:
        1px solid var(--enet-border-soft);

}

.debt-metric:last-child {

    border-right: none;

}

.debt-total span,
.debt-metric span {

    margin-bottom: 5px;

    color: var(--enet-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .7px;

}

.debt-total strong {

    color:
        var(--danger);

    font-size: 24px;

}

.debt-metric strong {

    color: white;

    font-size: 18px;

}


/* =========================================================
   DETALLE DEUDA
   ========================================================= */

.debt-list {

    width: 100%;

    border:
        1px solid var(--enet-border-soft);

    border-radius: 13px;

    overflow: hidden;

}

.debt-row {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        150px
        130px;

    align-items: center;

    gap: 20px;

    padding:
        15px 18px;

    background:
        rgba(255, 255, 255, .018);

    border-bottom:
        1px solid var(--enet-border-soft);

    transition:
        background .2s ease;

}

.debt-row:last-child {

    border-bottom: none;

}

.debt-row:hover {

    background:
        rgba(0, 217, 255, .025);

}

.debt-concept,
.debt-due,
.debt-amount {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;

}

.debt-concept span,
.debt-due span,
.debt-amount span {

    color:
        var(--enet-muted);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: .7px;

}

.debt-concept strong {

    color:
        #edf4fc;

    font-size: 11px;

    line-height: 1.45;

    word-break: break-word;

}

.debt-due strong {

    color: white;

    font-size: 11px;

    white-space: nowrap;

}

.debt-amount {

    align-items: flex-end;

}

.debt-amount strong {

    color:
        var(--danger);

    font-size: 13px;

    white-space: nowrap;

}


/* =========================================================
   CUENTA AL DÍA
   ========================================================= */

.account-paid {

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        17px;

    border:
        1px solid rgba(53, 212, 138, .14);

    border-radius: 13px;

    background:
        rgba(53, 212, 138, .035);

}

.paid-icon {

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(53, 212, 138, .09);

    color:
        var(--success);

}

.paid-icon svg {

    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.account-paid div:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.account-paid strong {

    color: white;

    font-size: 13px;

}

.account-paid span {

    color: var(--enet-muted);

    font-size: 10px;

}


/* =========================================================
   VACÍO
   ========================================================= */

.empty-state {

    padding:
        18px;

    border:
        1px dashed var(--enet-border);

    border-radius: 11px;

    color: var(--enet-muted);

    font-size: 11px;

    text-align: center;

}


/* =========================================================
   ACCIONES
   ========================================================= */

.result-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-top: 25px;

    padding:
        3px 2px;

}

.security-note {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--enet-muted);

}

.security-icon {

    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

}

.security-icon svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.security-note div {

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.security-note strong {

    color: #c7d8ec;

    font-size: 10px;

}

.security-note small {

    color: var(--enet-muted);

    font-size: 9px;

}


/* =========================================================
   BOTONES
   ========================================================= */

.btn-new-query,
.btn-consultar {

    border: none;

    cursor: pointer;

    text-decoration: none;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-height: 54px;

    padding:
        0 27px;

    border-radius: 11px;

    background:
        var(--enet-yellow);

    color:
        #06142d;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .7px;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}

.btn-new-query:hover,
.btn-consultar:hover {

    background:
        var(--enet-yellow-hover);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 28px
        rgba(255, 202, 5, .15);

}

.btn-new-query span,
.btn-consultar span {

    font-size: 17px;

}

.btn-consultar {

    width: 100%;

    min-height: 56px;

}


/* =========================================================
   FORMULARIO
   ========================================================= */

.login-layout {

    display: flex;

    justify-content: center;

    padding:
        10px 0 30px;

}

.login-card {

    width:
        min(
            530px,
            100%
        );

    padding:
        42px;

    border:
        1px solid var(--enet-border);

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            rgba(12, 37, 70, .98),
            rgba(6, 25, 55, .98)
        );

    box-shadow:
        var(--shadow);

}

.login-header {

    text-align: center;

    margin-bottom: 30px;

}

.login-header h1 {

    margin:
        18px 0 8px;

    font-size: 34px;

    letter-spacing: -.8px;

}

.login-header p {

    max-width: 400px;

    margin: 0 auto;

    color: var(--enet-muted);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   ALERTA
   ========================================================= */

.alert-error {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    padding:
        13px 15px;

    border:
        1px solid rgba(255, 107, 118, .28);

    border-radius: 10px;

    background:
        rgba(255, 107, 118, .065);

    color: #ffb5be;

    font-size: 12px;

}

.alert-icon {

    width: 23px;
    height: 23px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 107, 118, .13);

    font-weight: 900;

}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group {

    margin-bottom: 21px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #e8f1fc;

    font-size: 12px;

    font-weight: 800;

}

.input-wrapper {

    position: relative;

}

.input-icon {

    position: absolute;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 2;

    color:
        var(--enet-cyan);

    font-size: 9px;

    font-weight: 900;

}

.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:
        0 16px 0 58px;

    border:
        1px solid var(--enet-border);

    border-radius: 10px;

    outline: none;

    background:
        rgba(2, 16, 37, .65);

    color: white;

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.input-wrapper input:focus {

    border-color:
        var(--enet-cyan);

    box-shadow:
        0 0 0 3px
        rgba(0, 217, 255, .07);

}

.input-wrapper input::placeholder {

    color:
        #5e7da4;

}

.form-group small {

    display: block;

    margin-top: 7px;

    color:
        var(--enet-muted);

    font-size: 10px;

}


/* =========================================================
   CAPTCHA
   ========================================================= */

.captcha-box {

    margin:
        22px 0;

    padding:
        14px;

    border-radius: 9px;

    background:
        #f4f6f9;

    color:
        #25364a;

}

.captcha-label {

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

}

.captcha-label input {

    position: absolute;

    opacity: 0;

}

.captcha-check {

    position: relative;

    width: 25px;
    height: 25px;

    flex-shrink: 0;

    border:
        2px solid #8c949d;

    border-radius: 3px;

    background: white;

}

.captcha-label input:checked + .captcha-check {

    border-color:
        #1a73e8;

    background:
        #1a73e8;

}

.captcha-label input:checked
+ .captcha-check::after {

    content: "✓";

    position: absolute;

    left: 4px;
    top: -2px;

    color: white;

    font-size: 18px;

    font-weight: 900;

}

.captcha-text {

    flex: 1;

    font-size: 13px;

}

.captcha-brand {

    display: flex;

    flex-direction: column;

    align-items: center;

    font-size: 10px;

    font-weight: 900;

}

.captcha-brand small {

    margin-top: 2px;

    color: #777;

    font-size: 7px;

}


/* =========================================================
   SEGURIDAD LOGIN
   ========================================================= */

.login-security {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 24px;

    padding-top: 19px;

    border-top:
        1px solid var(--enet-border-soft);

    color: var(--enet-muted);

}

.login-security > span {

    display: flex;

    align-items: center;
    justify-content: center;

}

.login-security svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.login-security div {

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.login-security strong {

    color:
        #cbd9ea;

    font-size: 11px;

}

.login-security small {

    font-size: 9px;

}


/* =========================================================
   FOOTER
   ========================================================= */

.portal-footer {

    min-height: 54px;

    padding:
        15px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border-top:
        1px solid rgba(255, 255, 255, .06);

    color:
        #6383aa;

    font-size: 10px;

}

.footer-separator {

    opacity: .45;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .portal-main {

        width:
            calc(100% - 32px);

        padding-top: 36px;

    }

    .client-card {

        grid-template-columns:
            1fr;

    }

    .client-contracts {

        min-height: 82px;

        border-left: none;

        border-top:
            1px solid var(--enet-border-soft);

    }

    .service-item {

        grid-template-columns:
            48px
            minmax(0, 1fr)
            110px;

    }

    .service-price {

        grid-column: 3;

    }

    .service-status {

        grid-column: 2;

    }

    .debt-row {

        grid-template-columns:
            minmax(0, 1fr)
            125px
            110px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .portal-header {

        height: 66px;

    }

    .header-content {

        width:
            calc(100% - 28px);

    }

    .header-caption {

        display: none;

    }

    .brand-mark {

        width: 40px;
        height: 40px;

        font-size: 24px;

    }

    .brand-text strong {

        font-size: 23px;

    }

    .portal-main {

        width:
            calc(100% - 22px);

        padding:
            28px 0
            45px;

    }

    .client-introduction h1 {

        font-size: 33px;

    }

    .client-introduction p {

        font-size: 13px;

    }

    .client-card-main {

        padding:
            20px;

        align-items: flex-start;

    }

    .client-information > strong {

        font-size: 15px;

    }

    .client-data div {

        align-items: flex-start;

        flex-direction: column;

        gap: 1px;

    }

    .client-contracts {

        padding:
            18px 20px;

    }

    .section-heading {

        align-items: flex-start;

    }

    .section-heading h2 {

        font-size: 21px;

    }

    .contract-card {

        border-radius: 16px;

    }

    .contract-header {

        padding:
            20px;

        min-height: 95px;

    }

    .contract-number {

        font-size: 22px;

    }

    .contract-status-block {

        min-width: auto;

    }

    .agency-section {

        padding:
            13px 20px;

    }

    .agency-information strong {

        font-size: 12px;

    }

    .contract-content {

        padding:
            21px 20px;

    }

    .service-item {

        grid-template-columns:
            43px
            minmax(0, 1fr);

        gap: 12px;

    }

    .service-status {

        grid-column: 2;

        text-align: left;

    }

    .service-price {

        grid-column: 2;

        align-items: flex-start;

    }

    .service-information strong {

        white-space: normal;

    }

    .debt-summary {

        grid-template-columns:
            1fr 1fr;

    }

    .debt-total {

        grid-column:
            1 / -1;

        border-right: none;

        border-bottom:
            1px solid var(--enet-border-soft);

    }

    .debt-row {

        grid-template-columns:
            1fr 1fr;

        gap: 15px;

    }

    .debt-concept {

        grid-column:
            1 / -1;

    }

    .debt-due {

        grid-column: 1;

    }

    .debt-amount {

        grid-column: 2;

    }

    .result-actions {

        flex-direction: column;

        align-items: stretch;

    }

    .security-note {

        justify-content: center;

    }

    .btn-new-query {

        width: 100%;

    }

    .login-card {

        padding:
            30px 22px;

    }

}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {

    .client-card-main {

        flex-direction: column;

    }

    .contract-header {

        flex-direction: column;

        align-items: flex-start;

    }

    .contract-status-block {

        align-items: flex-start;

    }

    .contract-status-block > span {

        text-align: left;

    }

    .debt-summary {

        grid-template-columns:
            1fr;

    }

    .debt-total {

        grid-column: auto;

        border-right: none;

        border-bottom:
            1px solid var(--enet-border-soft);

    }

    .debt-metric {

        border-right: none;

        border-bottom:
            1px solid var(--enet-border-soft);

    }

    .debt-metric:last-child {

        border-bottom: none;

    }

}
