/* ========================================
   SERVICES BLOCK
======================================== */

.services-block {
    background: linear-gradient(180deg, #136EBA 13.02%, #136EBA 26.53%, #4A8FC8 65.85%, #C3D6E6 83.96%, #F2F2F2 100.71%);
    padding: 80px 0;
    padding-bottom: 220px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ondas al final de la sección */
.services-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 115%;
    height: 100%;
    background-image: url('/wp-content/uploads/2026/01/Mask-group.svg');
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

@media (min-width: 1500px) {
    .services-cta{
        padding-bottom: 100px;
    }
}

@media (min-width: 2000px) {
    .services-cta{
        padding-bottom: 200px;
    }
}



/* Title */
.services-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--primary-red);
    margin: 0 0 24px;
    line-height: 1.1;
    -webkit-text-stroke: 1px var(--primary-white);
    text-stroke: 1px var(--primary-white);
}

/* Content */
.services-text {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-white);
    line-height: 1.6;
    max-width: 1040px;
    margin: 0 auto 50px;
}

.services-text p {
    margin: 0;
}

/* Clouds Wrapper - Image aligned with first cloud */
.services-clouds-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 40px;
}

/* Image - hidden by default on desktop, appears on cloud hover */
.services-image {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
    pointer-events: none;
}

.services-image.is-visible {
    opacity: 1;
}

.services-image img {
    max-width: 260px;
    height: auto;
    display: block;
}

/* Cloud Links */
.services-cloud-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 450px;
    align-items: center;
    gap: 30px;
}

.cloud-link-item {
    position: relative;
    background-image: url('/wp-content/uploads/2026/01/Group-1000002087.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 304px;
    height: 248px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Hover image precargada con ::before */
.cloud-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2026/01/Group-5.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cloud-link-item:hover {
    background-image: none;
    width: 438px;
    height: 440px;
}

.cloud-link-item:hover::before {
    opacity: 1;
}

.cloud-link-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-blue);
    text-decoration: underline;
    text-align: center;
    padding: 25px 35px;
    box-sizing: border-box;
    transition: color 0.3s ease;
}

.cloud-link-item:hover a {
    color: var(--primary-white);
    text-decoration: underline;
}

/* CTA */
.services-cta {
    display: flex;
    justify-content: center;
}

.services-cta .btn-cta {
    box-shadow: 3px 5px 0 0 var(--primary-white);
}

/* ========================================
   RESPONSIVE
======================================== */



@media (max-width: 576px) {
    .services-block {
        padding: 40px 0;
    }

    .services-title {
        font-size: 28px;
    }

    .services-text {
        font-size: 14px;
    }

    .services-cloud-links {
        flex-direction: column;
        gap: 16px;
    }

    .cloud-link-item {
        width: 200px;
        height: 160px;
    }

    /* Disable hover effects on mobile */
    .cloud-link-item:hover {
        background-image: url('/wp-content/uploads/2026/01/Group-1000002087.svg');
        width: 200px;
        height: 160px;
    }

    .cloud-link-item:hover::before {
        opacity: 0;
    }

    .cloud-link-item:hover a {
        color: var(--primary-blue);
    }

    .cloud-link-item a {
        font-size: 16px;
        padding: 18px 25px;
    }
}
@media (max-width: 992px) {
    .services-block {
        padding: 40px 0 80px 0;
    }

    .services-block::after {
        height: 112px;
        max-width: 100%;
        bottom: -50px;
        background-size: cover;
    }

    .services-title {
        font-size: 38px;
    }

    .services-clouds-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .services-image {
        position: relative;
        left: auto;
        bottom: auto;
        margin-bottom: 20px;
        opacity: 1;
    }

    .services-cloud-links {
        padding-left: 0;
    }

    .cloud-link-item {
        width: 220px;
        height: 180px;
    }

    /* Disable hover effects on mobile */
    .cloud-link-item:hover {
        background-image: url('/wp-content/uploads/2026/01/Group-1000002087.svg');
        width: 220px;
        height: 180px;
    }

    .cloud-link-item:hover::before {
        opacity: 0;
    }

    .cloud-link-item:hover a {
        color: var(--primary-blue);
    }

    .cloud-link-item a {
        font-size: 18px;
        padding: 20px 30px;
    }
}