/* --- Hero Section for Servicios --- */
.hero-servicios {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--bg-hero-servicios);
    background-size: cover;
    background-position: center;
    color: #f4f4f4;
    text-align: center;
    padding: 340px 0 350px;
}

.hero-servicios h1 {
    color: #f4f4f4;
    font-size: 3.5rem;
    line-height: 4.5rem;
    margin-bottom: 10px;
}

.hero-servicios p {
    font-size: 20px;
    font-weight: 500;
}

/* --- Intro Section --- */
.intro-servicios {
    background-color: #fff;
    text-align: center;
    padding: 40px 0;
}

.intro-servicios p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    font-style: italic;
}

/* --- Services List --- */
.servicios-list {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.service-item.reverse {
    direction: rtl; /* Reverses the order of grid items */
}

.service-item.reverse .service-text {
    direction: ltr; /* Resets text direction for the content */
}

.service-image img {
    width: 100%;
    height: 300px; /* Set a fixed height for all images */
    border-radius: 5px;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.service-text h5 {
    font-family: 'Chunkfive', serif;
    font-size: 28px;
    color: #0a3148;
    margin-bottom: 15px;
}

.service-text p {
    font-size: 16px;
    line-height: 1.7;
}

/* --- Otros Servicios Section --- */
.otros-servicios {
    padding: 80px 0;
    background-color: #fff;
}

.otros-servicios h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.otros-servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.otro-servicio-box {
    text-align: center;
}

.otro-servicio-box img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.otro-servicio-box h6 {
    /*font-family: 'Chunkfive', serif;*/
    font-size: 20px;
    color: #333;
}

@media (max-width: 768px) {
    .hero-servicios {
        padding: 350px 20px 350px;
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-item.reverse {
        direction: ltr;
    }
}