/**
 * CTA Final
 * Remodelando Pixel
 */


/* =========================================================
   SECCIÓN
   ========================================================= */

.rmd-final-cta {
    position: relative;

    padding: 105px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(214, 108, 48, 0.14),
            transparent 32%
        ),
        var(--rmd-brown-dark);

    color: var(--rmd-white);
}


/* Detalle decorativo */

.rmd-final-cta::after {
    position: absolute;

    top: -160px;
    right: -120px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 50%;

    content: "";

    pointer-events: none;
}


/* =========================================================
   INTERIOR
   ========================================================= */

.rmd-final-cta__inner {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.65fr);

    gap: 80px;

    align-items: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.rmd-final-cta__eyebrow {
    display: flex;

    margin-bottom: 20px;

    align-items: center;

    gap: 12px;

    color: var(--rmd-orange);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.rmd-final-cta__eyebrow span {
    display: block;

    width: 38px;
    height: 2px;

    background: var(--rmd-orange);
}


/* =========================================================
   TÍTULO
   ========================================================= */

.rmd-final-cta__content h2 {
    max-width: 850px;

    margin: 0 0 24px;

    color: var(--rmd-white);

    font-size: clamp(42px, 5vw, 66px);
    font-weight: 700;

    letter-spacing: -0.045em;

    line-height: 1.02;
}


.rmd-final-cta__content h2 span {
    display: block;

    margin-top: 7px;

    color: var(--rmd-orange);
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.rmd-final-cta__content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   ACCIONES
   ========================================================= */

.rmd-final-cta__actions {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 13px;
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.rmd-final-cta__primary {
    display: flex;

    min-height: 64px;

    padding: 0 22px 0 25px;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: 8px;

    background: var(--rmd-orange);

    color: var(--rmd-white);

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}


.rmd-final-cta__primary:hover {
    background: #c8622b;

    color: var(--rmd-white);

    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.22);
}


.rmd-final-cta__arrow {
    font-size: 21px;

    transition: transform 0.22s ease;
}


.rmd-final-cta__primary:hover .rmd-final-cta__arrow {
    transform: translateX(4px);
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.rmd-final-cta__whatsapp {
    display: flex;

    min-height: 60px;

    padding: 0 24px;

    align-items: center;
    justify-content: center;

    gap: 11px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);

    color: var(--rmd-white);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}


.rmd-final-cta__whatsapp svg {
    width: 22px;
    height: 22px;
}


.rmd-final-cta__whatsapp:hover {
    border-color: rgba(255, 255, 255, 0.42);

    background: rgba(255, 255, 255, 0.12);

    color: var(--rmd-white);

    transform: translateY(-2px);
}


/* =========================================================
   NOTA
   ========================================================= */

.rmd-final-cta__note {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.50);

    font-size: 12px;

    text-align: center;

    letter-spacing: 0.04em;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .rmd-final-cta {
        padding: 84px 0;
    }


    .rmd-final-cta__inner {
        grid-template-columns: 1fr;

        gap: 44px;
    }


    .rmd-final-cta__content {
        max-width: 760px;
    }


    .rmd-final-cta__actions {
        max-width: 460px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .rmd-final-cta {
        padding: 68px 0 72px;
    }


    .rmd-final-cta__inner {
        gap: 36px;
    }


    .rmd-final-cta__eyebrow {
        margin-bottom: 15px;

        font-size: 11px;
    }


    .rmd-final-cta__eyebrow span {
        width: 28px;
    }


    .rmd-final-cta__content h2 {
        margin-bottom: 20px;

        font-size: clamp(36px, 10vw, 48px);

        line-height: 1.04;
    }


    .rmd-final-cta__content p {
        font-size: 16px;

        line-height: 1.65;
    }


    .rmd-final-cta__actions {
        max-width: none;
    }


    .rmd-final-cta__primary,
    .rmd-final-cta__whatsapp {
        width: 100%;
    }


    .rmd-final-cta__primary {
        min-height: 60px;
    }


    .rmd-final-cta__whatsapp {
        min-height: 58px;
    }

}