.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 25px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(32, 171, 100, .15);
}

.service-card img {
    max-width: 100%;
    margin-bottom: 15px;
}

.cta {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 70px 20px;
    font-size: xx-large;
}


/* ===================================================
   ANIMACIONES SUTILES – CLON VISUAL
   =================================================== */

.fade-up,
.fade-left,
.fade-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all .7s ease;
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.fade-show {
    opacity: 1;
    transform: translate(0, 0);
}


/* ===================================================
   SECCIÓN MEDIA + TEXTO (tipo Ferama)
   =================================================== */

.section-media-text {
    background-color: var(--bg-light);
}

/* Grid principal */
.media-text-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Grid de imágenes 2x2 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Texto */
.media-text-content h2 {
    font-size: 25.2px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.media-text-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 18px;
}


@media (max-width: 992px) {

    .media-text-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .media-grid {
        order: 2;
    }

    .media-text-content {
        order: 1;
    }
}

/* ===================================================
   MAPA + CONTACTO
   =================================================== */

.section-map-contact {
    background-color: #f7f7f7;
}

.map-address {
    text-align: center;
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

/* Grid */
.map-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

/* Mapa */
#map {
    width: 100%;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Caja contacto */
.contact-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.contact-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-box p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {

    .map-contact-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 320px;
    }
}

/* ===================================================
   MAPA + CONTACTO
   =================================================== */

.section-map-contact {
    background-color: #f7f7f7;
}

.map-address {
    text-align: center;
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

/* Grid */
.map-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

/* Mapa */
#map {
    width: 100%;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Caja contacto */
.contact-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.contact-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-box p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {

    .map-contact-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 320px;
    }
}


/* ===================================================
   BOTÓN FLOTANTE WHATSAPP
   =================================================== */

.whatsapp-float {
    position: fixed;               /* ← CLAVE */
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 9999;                 /* Siempre arriba */
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Mobile: un poco más chico */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}




