/* Estilos para la sección de Servicios Destacados */
.servicios-principales {
    padding: 50px 20px;
    background-color: #fdfdfd;
    text-align: center;
}

.servicios-principales h2 {
    font-size: 2.0rem;
    color: #0db2dc;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in-out;
}

/* Diseño de los servicios en dos columnas */
.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

/* Caja de cada servicio */
.servicio {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    /* overflow: hidden; */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 800px;
    cursor: pointer;
}

.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Imagen del servicio */
.servicio-imagen {
    width: 35%;
    height: 280px;
    object-fit: cover;
}

/* Contenido del servicio */
.servicio-contenido {
    width: 60%;
    padding: 20px;
    text-align: left;
}

.servicio-contenido h3 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 10px;
    /* Agregado line-height 03.06.2025 */
    line-height: 1.2;
    text-align: left; /* <- Añadir esto si falta */
}

.servicio-contenido p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Botón "Ver más" */
.servicio-contenido .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0db3de;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: bold;
}

.servicio-contenido .btn:hover {
    background-color: #0a7995;
}

/* RESPONSIVE DESIGN */
/* Para tablets */
@media (max-width: 768px) {
    .servicio {
        flex-direction: column;
        text-align: center;
    }

    .servicio-imagen {
        width: 100%;
        height: 200px;
    }

    .servicio-contenido {
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    .servicio-contenido h3 {
        font-size: 1.5rem;
    }
}

/* Para móviles */
@media (max-width: 480px) {
    .servicio-imagen {
        height: 260px;
    }

    .servicio-contenido h3 {
        font-size: 1.3rem;
    }

    .servicio-contenido p {
        font-size: 0.9rem;
    }

    .servicio-contenido .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Para dispositivos con ancho máximo de 375px (por ejemplo, iPhone SE) */
@media (max-width: 375px) {
    .servicio {
        padding: 10px;
    }

    .servicio-contenido h3 {
        font-size: 1.4rem;
    }

    .servicio-contenido p {
        font-size: 0.85rem;
    }

    .servicio-contenido .btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}

