/**
 * Diferencial
 * Remodelando Pixel
 */


/* =========================================================
   SECCIÓN
   ========================================================= */

.rmd-differential {
    position: relative;

    padding: 105px 0 110px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(214, 108, 48, 0.12),
            transparent 35%
        ),
        var(--rmd-brown-dark);

    color: var(--rmd-white);
}


/* =========================================================
   HEADER
   ========================================================= */

.rmd-differential__header {
    max-width: 900px;

    margin-bottom: 62px;
}


.rmd-differential__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-differential__eyebrow span {
    display: block;

    width: 38px;
    height: 2px;

    background: var(--rmd-orange);
}


.rmd-differential__header 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-differential__header h2 span {
    display: block;

    margin-top: 5px;

    color: var(--rmd-orange);
}


.rmd-differential__header p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   PROCESO
   ========================================================= */

.rmd-differential__process {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}


/* =========================================================
   PASOS
   ========================================================= */

.rmd-differential-step {
    position: relative;

    min-height: 145px;

    padding: 28px 20px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.rmd-differential-step:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}


.rmd-differential-step:hover {
    background: rgba(255, 255, 255, 0.06);

    transform: translateY(-3px);
}


.rmd-differential-step__number {
    margin-bottom: 26px;

    color: var(--rmd-orange);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


.rmd-differential-step__name {
    color: var(--rmd-white);

    font-size: 17px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   FLECHA ENTRE PASOS
   ========================================================= */

.rmd-differential-step:not(:last-child)::after {
    position: absolute;

    top: 50%;
    right: -11px;

    z-index: 2;

    display: flex;

    width: 22px;
    height: 22px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--rmd-brown-dark);

    color: rgba(255, 255, 255, 0.45);

    content: "→";

    font-size: 12px;

    transform: translateY(-50%);
}


/* =========================================================
   FOOTER
   ========================================================= */

.rmd-differential__footer {
    display: flex;

    margin-top: 42px;

    justify-content: flex-start;
}


.rmd-differential__cta {
    display: inline-flex;

    min-height: 54px;

    padding: 0 24px;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 8px;

    background: var(--rmd-orange);
    color: var(--rmd-white);

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.rmd-differential__cta:hover {
    color: var(--rmd-white);

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.20);
}


.rmd-differential__cta span {
    transition: transform 0.2s ease;
}


.rmd-differential__cta:hover span {
    transform: translateX(4px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

    .rmd-differential {
        padding: 85px 0 90px;
    }


    .rmd-differential__header {
        margin-bottom: 48px;
    }


    .rmd-differential__process {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


  .rmd-differential-step {
    min-height: 155px;
    padding: 32px 20px;
}

    .rmd-differential-step:nth-child(3n)::after {
        display: none;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 640px) {

    .rmd-differential {
        padding: 70px 0 74px;
    }


    .rmd-differential__header {
        margin-bottom: 38px;
    }


    .rmd-differential__eyebrow {
        margin-bottom: 16px;

        font-size: 11px;
    }


    .rmd-differential__eyebrow span {
        width: 28px;
    }


    .rmd-differential__header h2 {
        font-size: clamp(36px, 10vw, 46px);

        line-height: 1.04;
    }


    .rmd-differential__header p {
        font-size: 16px;

        line-height: 1.65;
    }


    .rmd-differential__process {
        grid-template-columns: 1fr;

        border-bottom: 0;
    }


    .rmd-differential-step {
        display: flex;

        min-height: 0;

        padding: 20px 18px;

        align-items: center;

        gap: 18px;

        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }


    .rmd-differential-step__number {
        flex: 0 0 auto;

        margin: 0;

        font-size: 11px;
    }


    .rmd-differential-step__name {
        font-size: 18px;
    }


    .rmd-differential-step::after {
        display: none !important;
    }


    .rmd-differential__footer {
        margin-top: 32px;
    }


    .rmd-differential__cta {
        width: 100%;
    }

}