/* -------------------------
   SECCION FINAL / CIERRE
------------------------- */
.seccion-final {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

/* FONDO — cubre el alto real de la sección (lo define el contenido de
   .cierre-overlay), en vez de ser quien define el alto. Así el padding
   del overlay siempre se respeta y el footer nunca puede pisarlo. */
.final-bg-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.final-bg-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY — en flujo normal: es quien define el alto de la sección */
.cierre-overlay {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 347px 0;
    box-sizing: border-box;
    z-index: 1;
}

/* CONTENEDOR PRINCIPAL CON TEXTO E IMAGEN */
.cierre-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -98px;
}

/* WRAPPER QUE CONTIENE TEXTO E IMAGEN */
.cierre-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* IMAGEN DECORATIVA */
.cierre-imagen {
    display: flex;
    margin-top: -120px;
    pointer-events: none;
}

/* TEXTO CENTRAL */
.cierre-titulo p {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    text-align: center;
    font-family: "Encode Sans";
    font-size: 100px;
    font-style: normal;
    font-weight: 400;
    line-height: 96%;
    margin: 0;
}

.cierre-titulo p strong {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    font-weight: 800;
}

/* BLOQUES DE ABAJO */
.cierre-links {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 152px;
    width: 100%;
    background: transparent;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 362px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.link-item:hover {
    text-decoration: none;
}

.link-item p {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    text-align: center;
    font-family: "Encode Sans";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 70%;
    margin: 0;
}

.link-item p strong {
    display: block;
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    font-family: "Encode Sans";
    font-size: 96px;
    font-style: normal;
    font-weight: 800;
    line-height: 70%;
    padding-top: 0.3rem;
}

.link-item:hover p strong {
    color: #1b365d;
}

/* SEPARADORES VERTICALES */
.separador {
    width: 4px;
    height: 87.688px;
    background: #E0E0E0;
}

@media (max-width: 768px) {
    .seccion-final {
        margin-bottom: 0px !important;
    }

    .cierre-overlay {
        padding: 82px 20px 40px;
    }

    .cierre-content {
        margin-top: 0;
    }

    .cierre-titulo p {
        font-size: 40px;
    }

    .cierre-imagen {
        margin-top: 0 !important;
    }

    .cierre-imagen img {
        width: 380px;
    }

    .cierre-links {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .link-item {
        width: 100%;
        padding: 15px 0;
    }

    .link-item p {
        font-size: 15px;
    }

    .link-item p strong {
        font-size: 40px;
    }

    /* SEPARADORES HORIZONTALES */
    .separador {
        width: 300px;
        height: 2px;
        background: #E0E0E0;
        margin: 10px 0;
    }
}
