/* ============================================================
   RW Prefooter Widget
   BEM: .rw-prefooter
   ============================================================ */

.rw-prefooter {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1a2332;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay opcional (color configurable desde Elementor) */
.rw-prefooter__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rw-prefooter__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 64px 24px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .rw-prefooter__inner {
        padding-block: 100px;
        padding-inline: clamp(24px, 10vw, 315px);
        height: 800px;
        justify-content: center;
    }
}

/* ── Bloque de texto ─────────────────────────────────────── */

.rw-prefooter__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

/* ── Titular ─────────────────────────────────────────────── */

.rw-prefooter__heading {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    color: #ffffff;
}

@media (min-width: 768px) {
    .rw-prefooter__heading {
        font-size: 40px;
        line-height: 48px;
    }
}

/* ── Cuerpo de texto ─────────────────────────────────────── */

.rw-prefooter__body {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    max-width: 826px;
    margin: 0;
    color: #ffffff;
}

.rw-prefooter__body p {
    margin: 0 0 1em;
}

.rw-prefooter__body p:last-child {
    margin: 0;
}

/* ── Botón ───────────────────────────────────────────────── */

.rw-prefooter__cta {
    display: flex;
    justify-content: center;
}

.rw-prefooter__btn {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 42px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #ffffff;
    background-color: #00938a;
    transition: background-color 0.3s ease;
}

.rw-prefooter__btn-label {
    display: block;
}

.rw-prefooter__btn-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.rw-prefooter__btn-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.rw-prefooter__btn:hover .rw-prefooter__btn-icon svg,
.rw-prefooter__btn:focus-visible .rw-prefooter__btn-icon svg {
    transform: translateX(4px) translateY(-4px);
}
