.mantenimientoContainer {
    margin-top: 132px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background-color: #ffffff;
    padding: 40px 20px;
}

/* Tarjetas estilo caja1.full-width */
.mantenimientoCard {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* responsive */
    align-items: center;
    gap: 2rem; /* espacio entre imagen y texto */
    text-align: left;
    padding: 20px;
    background-color: #012f15;
    border-radius: 20px; /* bordes más suaves */
    line-height: 1.5;
    color: white;
}

/* Alternar imagen izquierda/derecha */
.flex-row {
    flex-direction: row;
}
.flex-row-reverse {
    flex-direction: row-reverse;
}

/* Imagen */
.mantenimientoCard img {
    width: 50%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px; /* redondeo solo en imagen */
}

/* Texto */
.textoCard {
    width: 50%;
}

/* Títulos */
.textoCard h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Párrafos */
.textoCard p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Botones */
.btn-mas-info, .caja1Servicios .btn-mas-info{
    display: block;  
    padding: 12px 25px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius:5px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: normal;
    text-transform: none;
    width: fit-content;
}

 .btn-mas-info:hover {
    background-color: #c8f4c8; /* verde pastel */
}
.caja1Servicios .btn-mas-info {
    display: block;
    width: fit-content;
    padding: 12px 25px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    margin: 15px auto 0; /* centra el botón */
    text-align: center;
}

.caja1Servicios .btn-mas-info:hover {
    background-color: #c8f4c8;
    transform: translateY(-2px);
}


   .textoServicios {
        flex: 1;
        min-width: 300px;
    }
    
    .imagenServicios {
        flex: 1;
        min-width: 300px;
    }
    
    .imagenServicios img {
        width: 100%;
        height: auto;
        max-width: 590px;
    }  
    .section1Servicios h3,
.section3Servicios h3 {
        color: black;
        padding: 4rem;
        font-size: 24px;
        text-align: center;
        margin: 0;
    }
    .section1Servicios hr, .section3 hr{
            margin: 2rem ;
            border: 1px solid black;
    }
    .container1Servicios {
        border-radius: 50px;
        padding: 4rem;
        background-color: white;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem; /* más espacio entre columnas */
    }
    
    .caja1Servicios {
        background-color: #012f15;
        color: white;
        padding: 2rem;
        box-sizing: border-box;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* sombra para más elegancia */
        line-height: 1.6; /* más espacio entre líneas */
        font-size: 1.05rem;
        width: 30%; /* las 3 primeras cajas ocupan 30% cada una */
    }
    
    .caja1Servicios img {
        width: 100%;
        height: 300px;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        display: block;

    }
    
    .caja1Servicios h2 {
        font-size: 1.4rem;
        margin: 0.5rem 0 1rem 0;
    }
    
    .caja1Servicios p {
        margin: 0;
    }
    
    /* Cuarta caja ocupa toda la fila */
    .caja1Servicios.full-width {
        width: 100%;
        flex-direction: row; /* imagen a la derecha, texto a la izquierda */
        align-items: center;
        gap: 2rem;
        text-align: left;
        margin-top: 2rem;
        border-radius: 20px;
    }
    
    .caja1Servicios.full-width img {
        width: 50%;
        height: 300px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
    }
    
    .caja1Servicios.full-width .texto {
        width: 50%;
    }
    
    .caja1Servicios.full-width h2 {
        margin-top: 0;
    }
    .section2Servicios{
        background-color: #012f15;
        color: white;
    }
    .section2Servicios h3{
        padding: 4rem;
        font-size: 24px;
        text-align: center;
        margin: 0;
    }
    .section2Servicios hr{
        margin: 2rem ;
            border: 1px solid white;
    }
    .caja2Servicios{
        line-height: 1.5;
        display: flex;
        justify-content: flex-start; /* Alinea todo a la izquierda */
        align-items: center;
        gap: 1rem; /* Ajusta el espacio entre el texto y la imagen */
    }
    
    .textoServicios{
        flex: 2; /* Aumenta el espacio que ocupa el texto */
        max-width: 70%; /* Puedes ajustar esto si quieres que el texto ocupe más o menos espacio */
        margin: 20px; /* Agregar margen alrededor del texto */
        padding: 20px; /* Agregar relleno dentro del contenedor de texto */
    }
    
    .imagenServicios{
        flex: 1; /* La imagen ocupará una fracción más pequeña del espacio */
        display: flex;
        justify-content: flex-end; /* Alinea la imagen a la derecha */
        margin: 20px; /* Agregar margen alrededor de la imagen */
        padding: 20px; /* Agregar relleno dentro del contenedor de la imagen */
    }
    
    .imagenServicios img{
        border-radius: 15%;
        width: 100%; /* Ajusta el ancho de la imagen */
        height: auto; /* Mantiene las proporciones de la imagen */
        max-width: 300px;
    }    
    .container2Servicios {
        border-radius: 50px;
        padding: 4rem;
        display: flex;
        flex-wrap: wrap; /* Permite que las columnas se ajusten en filas */
        justify-content: space-between; /* Espaciado entre columnas */
        gap: 1rem; /* Espacio entre columnas */
    }
    .caja3Servicios {
        color: white;
        width: 30%; /* Cada columna ocupa el 30% del ancho */
        padding: 1rem; /* Espaciado interno de las columnas */
        box-sizing: border-box; /* Incluye padding en el ancho */
        transition: transform 0.3s ease; /* Animación para el hover */
        border-radius: 10%; /* Espaciado vertical entre filas */
    }
    .caja2Servicios {
        margin-bottom: 0; /* Quita margen abajo */
        padding-bottom: 0; /* Quita padding abajo si hay */
    }
    
    .container2Servicios {
        padding-top: 0; /* Quita espacio arriba */
        margin-top: 0;   /* Quita margen si existe */
    }
    .caja3Servicios:hover{
        transform: scale(1.05);
        }     
        .caja4Servicios {
            background-color: #012f15;
            color: white;
            display: grid;
            grid-template-columns: 40% 60%;
            grid-template-rows: auto auto;
            gap: 2rem;
            padding: 3rem;
            align-items: center;
          }
          
          /* Elementos en sus posiciones correctas */
          .caja4Servicios .imagen1Servicios {
            grid-column: 1;
            grid-row: 1;
          }
          
          .caja4Servicios .texto1Servicios {
            padding: 2rem;
            grid-column: 2;
            grid-row: 1;
          }
          
          .caja4Servicios .texto2Servicios {
            grid-column: 1;
            grid-row: 2;
          }
          
          .caja4Servicios .imagen2Servicios {
            grid-column: 2;
            grid-row: 2;
          }
          
          /* Imagenes responsivas */
          .caja4Servicios img {
            width: 100%;
            height: auto;
            max-height: 400px; /* puedes ajustar esto */
            object-fit: cover; /* recorta si es necesario */
            border-radius: 12px;
          }
          
          /* Texto con buena legibilidad */
          .caja4Servicios .texto1Servicios p,
          .caja4Servicios .texto2Servicios p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin: 0;
          }
 @media screen and (max-width:550px) {
    /***************Servicio***********************/
   .mantenimientoContainer{
    background-color: #012f15;
    margin-top: 130px;
    padding: 10px;
    gap: 40px;
   
}

.mantenimientoCard,
.flex-row,
.flex-row-reverse{
    flex-direction: column;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none; 
    color: white;
    text-align: left;
}

.mantenimientoCard img{
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.textoCard{
    width: 100%;
    padding-top: 15px;
}

.textoCard h2{
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.textoCard p{
    font-size: 1rem;
    line-height: 1.7;
}

.btn-mas-info{
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

/* ---------- Títulos ---------- */

.section1Servicios h3,
.section2Servicios h3,
.section3Servicios h3{
    padding: 1rem;
    font-size: 1.5rem;
}

/* ---------- Servicios ---------- */

.container1Servicios{
    background-color: #012f15;
    padding: 0;
    flex-direction: column;
    gap: 40px;
    margin: 20px 0;
    border-radius: 0 ;
}

.caja1Servicios{
    padding: 20px;
    width: 100%;
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.caja1Servicios img{
    padding: 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.caja1Servicios h2{
    padding: 20px;
    font-size: 1.4rem;
    text-align: center;
    margin: 15px 0;
}

.caja1Servicios p{
    padding: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.caja1Servicios .btn-mas-info{
    margin: 20px auto 0;
}

/* ---------- Limpieza y desbroce ---------- */

.caja1Servicios.full-width{
    padding: 20px;
    flex-direction: column;
    width: 100%;
    text-align: left;
    gap: 15px;
}

.caja1Servicios.full-width .texto{
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.caja1Servicios.full-width img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    order: -1;
    border-radius: 5px;
}
.section2Servicios .h3color{
    background-color: white;
    color: #000000;
}

    /* ---------- Piscinas ---------- */

    .caja2Servicios{
        flex-direction: column;
        text-align: center;
    }

    .textoServicios{
        max-width: 100%;
        width: 100%;
        padding: 15px;
        margin: 0;
    }

    .imagenServicios{
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .imagenServicios img{
        max-width: 75%;
        max-height: 250px;
    }

    .container2Servicios{
        padding: 1rem;
        flex-direction: column;
    }

    .caja3Servicios{
        width: 100%;
        text-align: center;
    }

    /* ---------- Procesionaria ---------- */

    .caja4Servicios{
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 20px;
    }

    .texto1Servicios,
    .texto2Servicios{
        padding: 0;
    }

    .caja4Servicios .texto1Servicios p,
    .caja4Servicios .texto2Servicios p{
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    .caja4Servicios img{
        max-height: 250px;
    }}