/* ===== HERO BANNER ===== */
.our-services-hero {
    position: relative;
    background: url('/images/banners/company.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;
}




/* ====== CONTENEDOR PRINCIPAL ====== */
.our-company-container {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
}




/* Efecto hover en servicios */
.service-item:hover img {
    transform: scale(1.1);
}

/* ====== SECCIÓN OUR STORY ====== */

.details-text p {
    font-size: 18px;         /* Tamaño adecuado según tu imagen */
    color: #555555;          /* Color gris oscuro como la imagen */
    line-height: 1.6;       /* Espaciado más generoso para mejorar legibilidad */
    max-width: 700px;      /* Controla la anchura del texto para mantener el formato */
    margin: 0 auto;        /* Centra el párrafo horizontalmente */
    font-weight: 400;      /* Grosor regular para mejorar lectura */
    font-family: 'Poppins', sans-serif;
}

.our-story {
    display: flex;
    justify-content: center;
    padding: 0px 0;
}

.story-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 1200px;
}

.story-image {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.story-image img {
    width: 100%;
    border-radius: 10px;

}

.caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
}

.story-text {
    flex: 1.5;
    text-align: justify;
    margin-left: 30px;
    margin-top: 0; /* antes -130px: causaba traslape con el banner al ocultar el carrusel */
}

.story-text p {
    font-size: 16px;
    color: rgb(160, 160, 160);
    line-height: 1.6;
    text-align: justify;
}

.story-text h2 {
    font-size: 35px;
    font-weight: 500;
    color: #002b5c;
    line-height: 1.1;
}

.story-text h2 span {
    font-weight: 300;
    font-style: italic;
}

/* ====== SECCIÓN DETALLES DE LA EMPRESA ====== */
.our-company-details {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    margin-top: -80px;
}

.details-container {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 10px;
    max-width: 1200px;
    align-items: center;
}

.details-text {
    flex: 1.2;
    text-align: justify;
    font-size: 14px;
    color: #444;
}

.details-text p {
    font-size: 16px;
    color: rgb(160, 160, 160);
    line-height: 1.6;
    text-align: justify;
}

.details-image {
    flex: 1.1;
}

.details-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

/* ====== SECCIÓN LEADERSHIP ====== */
.our-story:nth-of-type(3) {
    background-color: #f9f9f9;
    margin-top: 40px;
    padding: 60px 0;
}

.our-story:nth-of-type(3) .story-container {
    background: transparent;
}

.our-story:nth-of-type(3) .story-text {
    margin-top: 0; /* Elimina el margen negativo que tiene Our Story */
}

.our-story:nth-of-type(3) .story-text h2 {
    font-size: 35px;
    font-weight: 500;
    color: #002b5c;
    margin-bottom: 30px;
}

.our-story:nth-of-type(3) .details-text p {
    color: rgb(160, 160, 160);
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    /* Our Story */
    .our-story {
        padding: 40px 20px;
    }

    .story-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .story-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .story-text {
        margin-left: 0;
        margin-top: 0;
        text-align: center;
        width: 100%;
    }

    .story-text h2 {
        font-size: 30px;
        text-align: center;
        margin-bottom: 20px;
    }

    .story-text p {
        text-align: justify;
        padding: 0 10px;
    }

    /* Our Company Details */
    .our-company-details {
        padding: 40px 20px;
        margin-top: 0;
    }

    .details-container {
        flex-direction: column-reverse;
        padding: 20px;
    }

    .details-text {
        width: 100%;
        padding: 0 10px;
    }

    .details-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    /* Our Story */
    .our-story {
        padding: 30px 15px;
    }

    .story-container {
        padding: 15px;
        gap: 20px;
    }

    .story-text h2 {
        font-size: 24px;
    }

    .story-text p,
    .details-text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .caption {
        font-size: 12px;
        padding: 5px;
    }

    /* Our Company Details */
    .our-company-details {
        padding: 30px 15px;
    }

    .details-container {
        padding: 15px;
        gap: 20px;
    }

    .details-image img {
        border-radius: 8px;
    }

    /* Ajuste de márgenes y espaciados */
    .story-text,
    .details-text {
        padding: 0 5px;
    }

    /* Mejorar legibilidad en móvil */
    .story-text p,
    .details-text p {
        text-align: justify;
        margin-bottom: 15px;
    }
}

/* Animaciones más suaves para dispositivos móviles */
@media (max-width: 767px) {
    .scroll-animate-left.visible,
    .scroll-animate-right.visible,
    .scroll-animate-bottom.visible {
        transition-duration: 0.6s;
    }
}


