/* =========================================================
   VISARIO — MI PROCESO
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        "DM Sans",
        sans-serif;

    color: #1d1d1b;

    background:
        #f6f4f0;
}


/* =====================================================
   HEADER
====================================================== */

.portal-header {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 7%;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid #e8e4dd;

    position: sticky;
    top: 0;

    z-index: 20;
}


.portal-brand {
    display: flex;
    flex-direction: column;

    text-decoration: none;

    color: #171717;
}


.portal-brand span {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.12em;
}


.portal-brand small {
    margin-top: 2px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 12px;
}


.portal-home-link {
    color: #55514c;

    text-decoration: none;

    font-size: 14px;
}


/* =====================================================
   MAIN
====================================================== */

.portal-main {
    width:
        min(1160px, 86%);

    margin:
        0 auto;

    padding:
        80px 0 120px;
}


/* =====================================================
   INTRO
====================================================== */

.portal-intro {
    max-width: 760px;

    margin-bottom: 58px;
}


.portal-kicker,
.stage-kicker,
.access-kicker {
    margin:
        0 0 12px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.14em;

    color: #827a70;
}


.portal-intro h1 {
    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            42px,
            6vw,
            68px
        );

    line-height: 1.03;

    font-weight: 400;
}


.portal-intro h1 em {
    font-weight: 400;
}


.portal-intro-text {
    max-width: 590px;

    margin:
        25px 0 0;

    font-size: 18px;
    line-height: 1.7;

    color: #5e5a54;
}


/* =====================================================
   ACCESO
====================================================== */

.portal-access {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;

    margin-bottom: 80px;
}


.access-card {
    position: relative;

    padding: 38px;

    background: #ffffff;

    border:
        1px solid #e4dfd6;
}


.access-card-login {
    background:
        #efebe4;
}


.access-number {
    position: absolute;

    right: 30px;
    top: 25px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    color: #c7c0b5;
}


.access-card h2,
.stage-heading h2,
.dashboard-header h2 {
    margin:
        0 0 14px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 31px;

    font-weight: 400;
}


.access-card > p:not(
    .access-kicker
) {
    max-width: 440px;

    margin:
        0 0 28px;

    color: #65605a;

    line-height: 1.6;
}


.access-fields {
    display: grid;

    gap: 17px;

    margin-bottom: 24px;
}


.access-fields label,
.portal-question {
    display: grid;

    gap: 8px;
}


.access-fields label span,
.portal-question > span {
    font-size: 13px;

    font-weight: 500;
}


input,
select {
    width: 100%;

    min-height: 48px;

    padding:
        0 14px;

    border:
        1px solid #d8d2c8;

    background:
        #ffffff;

    color: #222;

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 15px;

    outline: none;
}


input:focus,
select:focus {
    border-color:
        #8d8579;
}


/* =====================================================
   BOTONES
====================================================== */

.portal-primary-button,
.portal-secondary-button,
.portal-small-button {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 3px;

    font-family:
        "DM Sans",
        sans-serif;

    font-weight: 500;

    cursor: pointer;

    text-decoration: none;
}


.portal-primary-button {
    min-height: 48px;

    padding:
        0 22px;

    border:
        1px solid #20201e;

    background:
        #20201e;

    color:
        #ffffff;

    font-size: 14px;
}


.portal-primary-button:hover {
    background:
        #343430;
}


.portal-secondary-button {
    min-height: 48px;

    padding:
        0 22px;

    border:
        1px solid #2d2d29;

    background:
        transparent;

    color:
        #262623;

    font-size: 14px;
}


.portal-secondary-button:hover {
    background:
        #ffffff;
}


.portal-small-button {
    min-height: 38px;

    padding:
        0 15px;

    background:
        #232320;

    color:
        #ffffff;

    font-size: 12px;
}


.forgot-password {
    display: inline-block;

    margin-top: 17px;

    color:
        #68635d;

    font-size: 12px;
}


/* =====================================================
   ETAPAS
====================================================== */

.portal-stage {
    scroll-margin-top: 110px;

    margin-top: 85px;
}


.stage-heading {
    display: flex;
    gap: 20px;
    align-items: flex-start;

    margin-bottom: 24px;
}


.stage-number {
    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

    color:
        #a89f92;
}


.stage-heading h2 {
    margin: 0;
}


.stage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 30px 32px;

    background: #ffffff;

    border:
        1px solid #e3ded5;
}


.stage-card-column {
    align-items: stretch;
    flex-direction: column;

    max-width: 760px;
}


.stage-card h3 {
    margin:
        0 0 7px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 22px;

    font-weight: 400;
}


.stage-card p {
    margin: 0;

    color: #68635d;

    line-height: 1.6;
}


.stage-action {
    display: flex;
    align-items: center;

    gap: 18px;
}


.stage-status {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding:
        0 10px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;

    border:
        1px solid #d8d1c6;
}


.stage-status.is-pending {
    background:
        #f4f0e9;

    color:
        #74695d;
}


.stage-status.is-disabled {
    background:
        #f2f1ee;

    color:
        #95918a;
}


.stage-continue {
    align-self: flex-start;
}


/* =====================================================
   DASHBOARD
====================================================== */

.portal-dashboard {
    padding-top: 20px;
}


.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}


.dashboard-header p {
    color:
        #69645e;
}


.dashboard-progress-summary {
    display: flex;
    flex-direction: column;

    text-align: right;
}


.dashboard-progress-summary strong {
    font-family:
        "Playfair Display",
        serif;

    font-size: 42px;

    font-weight: 400;
}


.dashboard-progress-summary span {
    font-size: 12px;

    color:
        #79746d;
}


.dashboard-progress-bar {
    height: 3px;

    margin-top: 26px;

    background:
        #ded9d1;
}


.dashboard-progress-bar span {
    display: block;

    height: 100%;

    background:
        #242421;
}


/* =====================================================
   BLOQUES
====================================================== */

.portal-block {
    margin-top: 42px;

    padding: 32px;

    background:
        #ffffff;

    border:
        1px solid #e3ded5;
}


.portal-block-heading {
    display: flex;

    margin-bottom: 28px;
}


.portal-block-heading > div {
    display: flex;
    align-items: baseline;

    gap: 15px;
}


.portal-block-heading span {
    font-family:
        "Playfair Display",
        serif;

    color:
        #a59d91;
}


.portal-block-heading h3 {
    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size: 25px;

    font-weight: 400;
}


/* =====================================================
   SOLICITANTES
====================================================== */

.portal-applicant {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding:
        20px 0;

    border-top:
        1px solid #ece8e1;
}


.portal-applicant:first-child {
    border-top: none;
}


.portal-applicant > div:first-child {
    display: grid;

    gap: 5px;
}


.portal-applicant-label {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;

    color:
        #8a847b;
}


.portal-applicant strong {
    font-size: 17px;
}


.portal-applicant-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}


/* =====================================================
   TIMELINE
====================================================== */

.portal-timeline {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    column-gap: 50px;
}


.timeline-item {
    display: grid;

    grid-template-columns:
        34px 1fr;

    gap: 14px;

    padding:
        20px 0;

    border-top:
        1px solid #ece8e1;
}


.timeline-marker {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ccc5bb;

    border-radius: 50%;

    font-size: 11px;
}


.timeline-item.is-complete
.timeline-marker {
    background:
        #252522;

    color:
        #ffffff;

    border-color:
        #252522;
}


.timeline-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}


.timeline-item p {
    margin: 0;

    color:
        #79736c;

    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   FUTURO
====================================================== */

.future-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.future-grid article {
    padding:
        22px;

    background:
        #f5f2ed;
}


.future-grid strong {
    font-family:
        "Playfair Display",
        serif;

    font-size: 18px;

    font-weight: 400;
}


.future-grid p {
    margin:
        10px 0 0;

    color:
        #6f6962;

    font-size: 13px;
    line-height: 1.55;
}


/* =====================================================
   RESPONSIVE
====================================================== */

@media (
    max-width: 850px
) {

    .portal-access,
    .portal-timeline,
    .future-grid {
        grid-template-columns:
            1fr;
    }


    .dashboard-header,
    .stage-card,
    .portal-applicant {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .dashboard-progress-summary {
        text-align: left;
    }


    .portal-main {
        width: 90%;

        padding-top: 55px;
    }


    .access-card,
    .portal-block {
        padding: 25px;
    }

}

/* =====================================================
   NOTA INFERIOR
====================================================== */

.portal-note {
    max-width: 720px;

    margin: 42px auto 0;

    padding-top: 24px;

    border-top: 1px solid #ded8cf;

    text-align: center;
}


.portal-note span {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}


.portal-note p {
    margin: 0;

    color: #6e6861;

    font-size: 13px;
    line-height: 1.65;
}

