/* ===== HERO BANNER ===== */
.our-services-hero {
    position: relative;
    background: url('/images/banners/Approach-and-expertise.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 🔹 Superposición oscura */
/*.our-services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 49, 139, 0.4);
}

/* Capa negra semitransparente sobre el azul */
/*.hero-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}*/

/* 🔹 Imagen del título "Our Services" en la esquina inferior izquierda */
.our-services-hero .hero-banner img {
    position: absolute; /* Permite colocarlo en cualquier parte */
    left: 5%;  /* 🔹 Ajusta la distancia desde el borde izquierdo */
    bottom: 5%; /* 🔹 Ajusta la distancia desde el borde inferior */
    width: auto;
    max-width: 250px; /* 🔹 Ajusta el tamaño según sea necesario */
    max-height: 120px;
}

/* ====== SECCIÓN DE SERVICIOS ====== */
.services-section {
    background-color: #f2f2f2; /* Fondo gris */
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

/* 🔹 Contenedor para alinear en fila */
.services-container {
    display: flex;
    flex-wrap: nowrap; /* 🔹 Mantiene todo en una fila */
    justify-content: center;
    gap: 15px; /* 🔹 Espacio entre elementos */
    max-width: 1200px;
    width: 90%;
    overflow-x: auto; /* 🔹 Permite desplazamiento en pantallas pequeñas */
}

/* 🔹 Estilo para cada tarjeta de servicio */
.service-item {
    background-color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 150px; /* 🔹 Reducimos el tamaño */
    flex: 0 0 auto; /* 🔹 Evita que se rompa el diseño */
}

/* 🔹 Ajuste de las imágenes para que sean cuadradas */
.service-item img {
    width: 100%;
    height: 150px; /* 🔹 La misma altura que el ancho para hacerlo cuadrado */
    object-fit: cover; /* 🔹 Recorta la imagen sin distorsionarla */
    border-radius: 5px;
}

.service-item p {
    font-size: 14px;
    font-weight: bold;
    color: #002b5c;
    margin-top: 5px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .services-container {
        flex-wrap: wrap; /* 🔹 Permite que baje si no hay espacio */
        justify-content: center;
    }

    .service-item {
        width: 120px; /* 🔹 Más pequeño en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .services-container {
        overflow-x: scroll; /* 🔹 Permite hacer scroll en móviles */
    }

    .service-item {
        width: 140px;
    }
}

/* ====== OUR STORY SECTION ====== */
.our-story {
    text-align: center;
    padding: 50px 5%;
    background-color: white;
}

.our-story h2 {
    text-align: left !important;
    font-size: 32px;
    color: #002b5c;
    margin-bottom: 40px;
    padding-left: 10px;
}

.story-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .our-story {
        padding: 40px 20px;
    }

    .our-story h2 {
        font-size: 28px;
        text-align: center !important;
        margin-bottom: 30px;
    }

    .story-container {
        gap: 30px;
    }

    .story-item {
        gap: 20px;
    }

    .story-item img {
        width: 45%;
    }

    .story-text {
        width: 55%;
    }

    .story-text h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .story-text p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Ajuste específico para el segundo item que tiene texto primero */
    .story-item:nth-child(2) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 767px) {
    .our-story {
        padding: 30px 15px;
    }

    .our-story h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .story-container {
        gap: 40px;
    }

    .story-item {
        flex-direction: column;
        gap: 20px;
    }

    /* Ajuste para todas las imágenes en móvil */
    .story-item img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Ajuste para todos los bloques de texto en móvil */
    .story-text {
        width: 100%;
        text-align: center;
    }

    .story-text h3 {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
    }

    .story-text p {
        font-size: 14px;
        text-align: justify;
        padding: 0 10px;
    }

    /* El segundo item también se muestra en columna */
    .story-item:nth-child(2) {
        flex-direction: column;
    }

    /* Animaciones más suaves en móvil */
    .scroll-hidden {
        transform: translateY(20px);
    }
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🔹 Subtítulo debajo de "Our Story" */
.story-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 30px auto; /* Centrado y espacio inferior */
    text-align: center;
    line-height: 1.5;
}

/* Contenedor de las imágenes y texto */
.story-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🔹 Estilo de cada bloque de imagen + texto */
.story-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.story-item img {
    width: 48%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.story-text {
    width: 48%;
    text-align: left;
    text-align: justify;
}

.story-text h3 {
    font-size: 24px;
    font-weight: bold;
    color: #002b5c;
    margin-bottom: 10px;
}

.story-text p {
    font-size: 16px;
    color: rgb(160, 160, 160);
    line-height: 1.6;
}




/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
        gap: 20px;
    }

    .story-item {
        flex-direction: column;
        text-align: center;
    }

    .story-item img {
        width: 100%;
    }

    .story-text {
        width: 100%;
        text-align: center;
    }
}


