/* =========================================================
   MAXI LIMPIEZA
   CSS ESPECÍFICO - MANTENIMIENTO DE FACHADAS
========================================================= */


/* =========================================================
   HERO
========================================================= */

.fachadas-hero {

    position: relative;

    padding: 80px 0 90px;

    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #edf8ff 52%,
            #f5fffc 100%
        );

    overflow: hidden;
}


.fachadas-hero::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(32,174,234,.20),
            transparent 68%
        );

}


.fachadas-hero-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 60px;
}


.fachadas-hero-content {

    max-width: 650px;

    animation:
        fadeUp .8s ease both;
}


.fachadas-hero-content h1 {

    margin-bottom: 22px;

    color:
        var(--azul-oscuro);

    font-size:
        clamp(42px, 5vw, 66px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.fachadas-hero-image {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    animation:
        fadeUp 1s ease .15s both;
}


.fachadas-hero-image::before {

    content: "";

    position: absolute;

    width: 92%;
    height: 88%;

    border-radius:
        35% 65% 55% 45%;

    background:
        linear-gradient(
            135deg,
            rgba(32,174,234,.20),
            rgba(97,212,199,.18)
        );

    transform:
        rotate(-5deg);
}


.fachadas-hero-image img {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 650px;

    height: 500px;

    object-fit: cover;

    border-radius: 24px;

    box-shadow:
        var(--sombra-fuerte);
}


.fachadas-hero-badge {

    position: absolute;

    z-index: 4;

    left: -15px;

    bottom: 30px;

    display: flex;

    flex-direction: column;

    padding: 16px 21px;

    border-radius: 14px;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid rgba(255,255,255,.8);

    box-shadow:
        var(--sombra);
}


.fachadas-hero-badge strong {

    color:
        var(--azul-oscuro);

    font-size: 15px;
}


.fachadas-hero-badge span {

    color:
        var(--gris);

    font-size: 12px;
}


/* =========================================================
   SERVICIOS
========================================================= */

.fachadas-hero + .intro {

    padding-top: 90px;
}


/* =========================================================
   ANTES / DESPUÉS
========================================================= */

.before-after-grid {

    align-items: stretch;
}


.before-after-grid figure {

    min-width: 0;
}


.before-after-grid figure::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border-radius: 20px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.08);
}


/* =========================================================
   CTA FACHADAS
========================================================= */

.fachadas-cta-highlight {

    position: relative;

    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .fachadas-hero {

        padding:
            60px 0 70px;
    }


    .fachadas-hero-grid {

        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .fachadas-hero-content {

        text-align: center;

        margin: 0 auto;
    }


    .fachadas-hero-content h1 {

        font-size:
            clamp(38px, 9vw, 55px);
    }


    .fachadas-hero-image {

        min-height: 380px;

        max-width: 700px;

        width: 100%;

        margin: 0 auto;
    }


    .fachadas-hero-image img {

        height: 390px;
    }


    .fachadas-hero-badge {

        left: 5px;

        bottom: 15px;
    }

}


@media (max-width: 600px) {

    .fachadas-hero {

        padding:
            50px 0 60px;
    }


    .fachadas-hero-content h1 {

        font-size:
            36px;

        letter-spacing:
            -1px;
    }


    .fachadas-hero-image {

        min-height:
            290px;
    }


    .fachadas-hero-image img {

        height:
            290px;

        border-radius:
            18px;
    }


    .fachadas-hero-badge {

        padding:
            11px 14px;
    }


    .fachadas-hero-badge strong {

        font-size:
            12px;
    }


    .fachadas-hero-badge span {

        font-size:
            10px;
    }


    .before-after-grid img {

        height:
            300px;
    }

}


@media (max-width: 380px) {

    .fachadas-hero-content h1 {

        font-size:
            32px;
    }

}

/* =========================================================
   ANIMACIONES AL HACER SCROLL
========================================================= */

.scroll-animation {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.scroll-animation.visible {

    opacity: 1;

    transform:
        translateY(0);
}