/* =========================================================
   COSTA RENT | PASO 39.7-A
   MEDITERRANEAN PREMIUM HOMEPAGE
   ========================================================= */

/*
 * Estilos limitados a las secciones de portada.
 * No modifican el header, blog, contacto ni precios.
 */

body.cr39-active .cr39-content:has(> section.hero) {
    --home-navy: #102d48;
    --home-blue: #1264ac;
    --home-border: #e1eaf2;
}

/* HERO PRINCIPAL */

body.cr39-active .cr39-content > section.hero {
    position: relative;

    padding: clamp(30px, 4vw, 54px) !important;

    background:
        radial-gradient(
            ellipse at 92% 12%,
            rgba(133, 192, 230, .18),
            transparent 48%
        ),
        linear-gradient(
            125deg,
            #f1f7fc 0%,
            #e7f1fa 58%,
            #edf5fb 100%
        ) !important;

    border: 1px solid #e1eaf2;
    border-radius: 17px !important;

    box-shadow:
        0 12px 32px rgba(23, 60, 91, .055);

    overflow: hidden;
}

body.cr39-active .cr39-content > .hero h1 {
    color: #102d48 !important;

    font-size: clamp(34px, 3.5vw, 53px) !important;
    line-height: 1.13 !important;
    letter-spacing: -.035em;

    text-wrap: balance;
}

body.cr39-active .cr39-content > .hero p {
    color: #4c657b;
    line-height: 1.75;
}

/* BOTONES DEL HERO */

body.cr39-active .cr39-content > .hero a[class*="btn"],
body.cr39-active .cr39-content > .hero a[class*="button"] {
    border-radius: 9px !important;

    box-shadow:
        0 7px 18px rgba(18, 100, 172, .13);
}

/* BLOQUES DE VENTAJAS */

body.cr39-active .cr39-content > section.features,
body.cr39-active .cr39-content > section.advantages-home {
    border-radius: 15px !important;
}

/* BLOQUES PRINCIPALES DE LA PORTADA */

body.cr39-active .cr39-content > section.about,
body.cr39-active .cr39-content > section.services-home,
body.cr39-active .cr39-content > section.mobility-home,
body.cr39-active .cr39-content > section.pricing-home,
body.cr39-active .cr39-content > section.blog-home,
body.cr39-active .cr39-content > section.contact-home {
    position: relative;

    border: 1px solid var(--home-border, #e1eaf2);

    border-radius: 15px !important;

    box-shadow:
        0 8px 28px rgba(16, 45, 72, .045);

    overflow: hidden;
}

/* TITULOS DE SECCION */

body.cr39-active .cr39-content > section.about h2,
body.cr39-active .cr39-content > section.services-home h2,
body.cr39-active .cr39-content > section.mobility-home h2,
body.cr39-active .cr39-content > section.pricing-home h2,
body.cr39-active .cr39-content > section.blog-home h2,
body.cr39-active .cr39-content > section.contact-home h2 {
    color: #102d48;

    letter-spacing: -.025em;
    line-height: 1.25;

    text-wrap: balance;
}

/* IMAGENES DE LA PORTADA */

body.cr39-active .cr39-content > section img {
    max-width: 100%;
}

/* RESPIRACION ENTRE SECCIONES */

body.cr39-active .cr39-content > section + section {
    margin-top: 28px;
}

/* INTERACCIONES DISCRETAS */

@media (hover: hover) and (pointer: fine) {
    body.cr39-active .cr39-content > section.services-home a,
    body.cr39-active .cr39-content > section.pricing-home a {
        transition:
            background-color .2s ease,
            box-shadow .2s ease;
    }
}

/* TABLET */

@media (max-width: 1050px) {
    body.cr39-active .cr39-content > section.hero {
        padding: 30px !important;
    }
}

/* MOVIL */

@media (max-width: 760px) {
    body.cr39-active .cr39-content > section.hero {
        padding: 24px 19px !important;
        border-radius: 12px !important;
    }

    body.cr39-active .cr39-content > .hero h1 {
        font-size: clamp(29px, 7vw, 39px) !important;
    }

    body.cr39-active .cr39-content > section + section {
        margin-top: 18px;
    }

    body.cr39-active .cr39-content > section.about,
    body.cr39-active .cr39-content > section.services-home,
    body.cr39-active .cr39-content > section.mobility-home,
    body.cr39-active .cr39-content > section.pricing-home,
    body.cr39-active .cr39-content > section.blog-home,
    body.cr39-active .cr39-content > section.contact-home {
        border-radius: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cr39-active .cr39-content > section a {
        transition: none !important;
    }
}

/* FIN COSTA RENT 39.7-A */
