:root {
    --bg: #101718;
    --bg-secondary: #132023;

    --card: #151a1b;
    --card-soft: #172326;

    --cyan: #a9d3df;
    --cyan-bright: #bfe6ef;

    --yellow: #e8ab00;

    --green: #29966f;
    --green-light: #58dab0;

    --text: #eef5f6;
    --text-secondary: #b8ada2;
    --text-muted: #7f8381;

    --border: rgba(169, 211, 223, 0.12);

    --radius-xl: 32px;
    --radius-lg: 19px;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;

    background:
        var(--bg);

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    position: relative;

    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;

    color:
        var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(232, 171, 0, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(65, 151, 174, 0.11),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #111817 0%,
            #121819 45%,
            #102024 100%
        );
}


/* ==========================================================
   FONDO
   ========================================================== */

.background {
    position: fixed;

    z-index: 0;

    border-radius: 50%;

    pointer-events: none;
}

.background-one {
    width: 480px;
    height: 480px;

    top: -280px;
    left: -190px;

    background:
        radial-gradient(
            circle,
            rgba(232, 171, 0, 0.08),
            transparent 70%
        );
}

.background-two {
    width: 650px;
    height: 650px;

    right: -350px;
    bottom: -390px;

    background:
        radial-gradient(
            circle,
            rgba(76, 169, 192, 0.11),
            transparent 70%
        );
}


/* ==========================================================
   PÁGINA
   ========================================================== */

.page {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        max(30px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(30px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
}

.wrapper {
    width: 100%;
    max-width: 580px;

    animation:
        fadeIn
        0.65s
        cubic-bezier(.2, .8, .2, 1)
        both;
}


/* ==========================================================
   TARJETA PRINCIPAL
   ========================================================== */

.card {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        49px
        48px
        43px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(22, 27, 28, 0.99),
            rgba(19, 24, 25, 0.99)
        );

    box-shadow:
        0 32px 90px
        rgba(0, 0, 0, 0.34),
        0 10px 35px
        rgba(0, 0, 0, 0.18);
}

.card::after {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    top: -120px;
    right: -105px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(232, 171, 0, 0.08),
            transparent 70%
        );

    pointer-events: none;
}

.top-line {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #143842 0%,
            #417487 48%,
            var(--yellow) 100%
        );
}


/* ==========================================================
   MUNICIPALIDAD
   ========================================================== */

.institution {
    position: relative;

    z-index: 2;

    display: flex;

    justify-content: center;

    margin-bottom:
        30px;
}

.institution-badge {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        8px
        14px;

    color:
        var(--cyan);

    border:
        1px solid
        rgba(169, 211, 223, 0.08);

    border-radius:
        999px;

    background:
        #14272b;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.055em;

    text-transform:
        uppercase;
}

.institution-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--yellow);

    box-shadow:
        0 0 0 5px
        rgba(232, 171, 0, 0.11);
}


/* ==========================================================
   ÍCONO TARJETA
   ========================================================== */

.card-icon-wrapper {
    position: relative;

    width: 108px;
    height: 108px;

    margin:
        0 auto
        32px;
}

.card-icon-shadow {
    position: absolute;

    inset: 0;

    border-radius:
        31px;

    transform:
        rotate(7deg);

    background:
        linear-gradient(
            145deg,
            #183f49,
            #112f37
        );

    box-shadow:
        0 18px 38px
        rgba(0, 0, 0, 0.32);
}

.card-icon {
    position: absolute;

    inset: 6px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(169, 211, 223, 0.10);

    border-radius:
        27px;

    transform:
        rotate(-7deg);

    background:
        linear-gradient(
            145deg,
            #151c1d,
            #172528
        );
}

.card-icon svg {
    width: 58px;
    height: 58px;

    display: block;
}

.check {
    position: absolute;

    right: -8px;
    bottom: -7px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        4px solid
        #1a2122;

    border-radius:
        50%;

    background:
        var(--green);

    box-shadow:
        0 7px 18px
        rgba(41, 150, 111, 0.26);
}

.check svg {
    width:
        15px;

    height:
        15px;

    display:
        block;
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.content {
    position: relative;

    z-index: 2;

    text-align: center;
}

h1 {
    color:
        var(--cyan);

    font-size:
        clamp(
            30px,
            6vw,
            39px
        );

    line-height:
        1.05;

    font-weight:
        800;

    letter-spacing:
        -0.045em;
}

h1 span {
    display:
        block;
}

.welcome {
    max-width:
        430px;

    margin:
        23px auto
        0;

    color:
        var(--text-secondary);

    font-size:
        16px;

    line-height:
        1.65;
}

.welcome strong {
    color:
        var(--cyan);

    font-weight:
        750;
}


/* ==========================================================
   SEPARADOR
   ========================================================== */

.separator {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        30px
        0
        27px;
}

.separator-line {
    width:
        58px;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(169, 211, 223, 0.17)
        );
}

.separator-line:last-child {
    transform:
        rotate(180deg);
}

.separator-dot {
    width:
        7px;

    height:
        7px;

    margin:
        0 11px;

    border-radius:
        50%;

    background:
        var(--yellow);

    box-shadow:
        0 0 12px
        rgba(232, 171, 0, 0.30);
}


/* ==========================================================
   ESTADO
   ========================================================== */

.status {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        15px;

    padding:
        18px 19px;

    text-align:
        left;

    border:
        1px solid
        rgba(41, 150, 111, 0.15);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            #13282c,
            #152d31
        );
}

.status-icon {
    width:
        42px;

    height:
        42px;

    flex:
        0 0 42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        13px;

    color:
        var(--green-light);

    background:
        rgba(15, 74, 58, 0.63);
}

.status-icon svg {
    width:
        21px;

    height:
        21px;

    display:
        block;
}

.status-content {
    padding-top:
        1px;
}

.status-content h2 {
    margin:
        0 0 5px;

    color:
        var(--cyan);

    font-size:
        14px;

    line-height:
        1.4;

    font-weight:
        750;
}

.status-content p {
    color:
        var(--text-secondary);

    font-size:
        13px;

    line-height:
        1.55;
}


/* ==========================================================
   MENSAJE CERRAR
   ========================================================== */

.close-message {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    max-width:
        470px;

    margin:
        27px auto
        0;

    color:
        var(--text-secondary);

    font-size:
        15px;

    line-height:
        1.6;
}

.close-icon {
    width:
        28px;

    height:
        28px;

    flex:
        0 0 28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        var(--cyan);

    background:
        rgba(169, 211, 223, 0.08);
}

.close-icon svg {
    width:
        14px;

    height:
        14px;

    display:
        block;
}

.close-message strong {
    color:
        var(--cyan);

    font-weight:
        750;
}


/* ==========================================================
   SITIO OFICIAL
   ========================================================== */

.official {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    margin-top:
        27px;

    padding:
        7px 11px;

    border:
        1px solid
        rgba(169, 211, 223, 0.06);

    border-radius:
        999px;

    color:
        #7d9298;

    background:
        rgba(169, 211, 223, 0.025);

    font-size:
        11px;

    line-height:
        1.3;
}

.official-dot {
    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        var(--green);
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        24px;

    color:
        var(--text-muted);

    font-size:
        12px;

    line-height:
        1.5;

    text-align:
        center;
}

.footer-primary {
    color:
        #96918a;

    font-weight:
        650;
}

.footer-divider {
    opacity:
        0.45;
}


/* ==========================================================
   ANIMACIÓN
   ========================================================== */

@keyframes fadeIn {

    from {
        opacity:
            0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 600px) {

    .page {
        padding:
            max(
                18px,
                env(safe-area-inset-top)
            )
            14px
            max(
                18px,
                env(safe-area-inset-bottom)
            );
    }

    .card {
        padding:
            37px
            22px
            31px;

        border-radius:
            27px;
    }

    .institution {
        margin-bottom:
            24px;
    }

    .institution-badge {
        padding:
            7px
            11px;

        font-size:
            9.5px;
    }

    .card-icon-wrapper {
        width:
            95px;

        height:
            95px;

        margin-bottom:
            27px;
    }

    .card-icon-shadow {
        border-radius:
            27px;
    }

    .card-icon {
        border-radius:
            24px;
    }

    .card-icon svg {
        width:
            49px;

        height:
            49px;
    }

    .check {
        width:
            33px;

        height:
            33px;
    }

    h1 {
        font-size:
            30px;
    }

    .welcome {
        margin-top:
            19px;

        font-size:
            15px;
    }

    .separator {
        margin:
            25px
            0
            22px;
    }

    .status {
        padding:
            15px;

        gap:
            12px;
    }

    .close-message {
        margin-top:
            22px;

        font-size:
            14px;
    }

    .official {
        margin-top:
            22px;
    }

    footer {
        margin-top:
            19px;
    }

}


/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 380px) {

    .page {
        padding-left:
            11px;

        padding-right:
            11px;
    }

    .card {
        padding:
            30px
            17px
            27px;
    }

    .institution-badge {
        font-size:
            8.8px;

        letter-spacing:
            0.035em;
    }

    .card-icon-wrapper {
        width:
            84px;

        height:
            84px;
    }

    .card-icon svg {
        width:
            43px;

        height:
            43px;
    }

    h1 {
        font-size:
            26px;
    }

    .welcome {
        font-size:
            14px;
    }

    .status-content h2 {
        font-size:
            13px;
    }

    .status-content p {
        font-size:
            12px;
    }

    .close-message {
        font-size:
            13px;
    }

    .official {
        font-size:
            10px;
    }

}


/* ==========================================================
   ESCRITORIO
   ========================================================== */

@media (min-width: 1200px) {

    .wrapper {
        max-width:
            600px;
    }

    .card {
        padding:
            54px
            52px
            47px;
    }

}


/* ==========================================================
   PANTALLAS BAJAS
   ========================================================== */

@media (max-height: 720px) and (min-width: 601px) {

    .page {
        padding-top:
            18px;

        padding-bottom:
            18px;
    }

    .card {
        padding-top:
            34px;

        padding-bottom:
            31px;
    }

    .institution {
        margin-bottom:
            19px;
    }

    .card-icon-wrapper {
        width:
            85px;

        height:
            85px;

        margin-bottom:
            20px;
    }

    .card-icon svg {
        width:
            43px;

        height:
            43px;
    }

    .welcome {
        margin-top:
            14px;
    }

    .separator {
        margin:
            18px
            0;
    }

    .close-message {
        margin-top:
            17px;
    }

    .official {
        margin-top:
            18px;
    }

}


/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}