﻿.hero-section-nosotros {
    width: 100%;
    position: relative;
    background-image: url('../img/nosotros/work-group.jfif');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

    .hero-section-nosotros::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

.hero-content-nosotros {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(255, 153, 0, 0.75);
    padding: 15px 30px;
    margin: 0px;
    font-size: 30px;
    border-radius:10px;
}

    .hero-content-nosotros h1 {
        margin: 0px;
        font-family: 'Montserrat', sans-serif;
    }


@media (max-width: 768px) {
    .hero-section-nosotros {
        height: 300px; /* Reduce la altura en pantallas más pequeñas */
    }

    .hero-content-nosotros {
        font-size: 24px; /* Ajusta el tamaño del texto */
        padding: 10px 20px; /* Reduce el padding para ahorrar espacio */
    }
}

@media (max-width: 480px) {
    .hero-section-nosotros {
        height: 250px; /* Reduce aún más la altura en pantallas muy pequeñas */
    }

    .hero-content-nosotros {
        font-size: 20px;
        padding: 8px 16px;
    }
}


/* Sección de nosotros */
.seccion-nosotros {
    width: 100%;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

.cuadro-nosotros {
    max-width: 80%;
    font-family: 'Montserrat', sans-serif;
}

    .cuadro-nosotros h2 {
        font-family: 'Montserrat', sans-serif;
    }

    .cuadro-nosotros p {
        font-size: 17px;
        font-family: 'Montserrat', sans-serif;
        line-height: 1.5;
    }


@media (max-width: 768px) {
    .cuadro-nosotros {
        max-width: 80%; /* Más ancho en pantallas medianas */
        padding-right:20px;
        padding-left:20px;
    }

        .cuadro-nosotros h2 {
            font-size: 22px; /* Disminuye el tamaño del encabezado */
        }

        .cuadro-nosotros p {
            font-size: 16px; /* Disminuye el tamaño del párrafo */
        }
}

@media (max-width: 480px) {
    .cuadro-nosotros {
        max-width: 95%; /* Ocupa casi todo el ancho en pantallas pequeñas */
        padding-right: 20px;
        padding-left: 20px;
    }

        .cuadro-nosotros h2 {
            font-size: 20px; /* Disminuye aún más el encabezado */
        }

        .cuadro-nosotros p {
            font-size: 14px; /* Texto más pequeño para mejor legibilidad */
        }
}
/* Sección visión y misión */
.vision-mision-contenedor {
    width: 100%;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-mision {
    max-width: 80%;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.vision, .mision {
    flex: 1;
    border: 2px solid #407C2D;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width:400px;
    height: 350px;
}

.contenedor-imagen-mision-vision {
    width: 100px; /* Ajusta el tamaño según lo necesario */
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.contenedor-vision{
    padding-bottom:15px;
}
.imagen-mision, .imagen-vision {
    max-width: 100%; /* La imagen ocupará todo el ancho del contenedor */
    max-height: 100%; /* Limita la altura para que no exceda el contenedor */
    object-fit: contain;
}

.ojo-vision{
    padding-top:30px;
    height:340px;
}

.vision h2, .mision h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

    .vision p, .mision p {
        font-size: 17px;
        font-family: 'Montserrat', sans-serif;
        flex-grow: 1; /* Esto ayuda a que ambos párrafos ocupen el mismo espacio */
        display: flex;
        align-items: center; /* Centra el texto verticalmente */
        line-height: 1.5;
        text-align:justify;
    }
@media (max-width: 768px) {
    .vision-mision {
        flex-direction: column; /* Cambia a columna en pantallas medianas */
        align-items: center; /* Centra los elementos */
    }

    .contenedor-vision {
        padding-bottom: 0px;
    }

    .ojo-vision {
        padding-top: 20px;
    }

    .vision, .mision {
        max-width: 100%; /* Ocupa el ancho completo */
        height: auto; /* Ajusta la altura automáticamente */
    }
}

@media (max-width: 480px) {
    .vision img, .mision img {
        width: 80px; /* Reduce el tamaño de la imagen en pantallas pequeñas */
        height: 70px;
    }

    .contenedor-vision {
        padding-bottom: 0px;
    }

    .ojo-vision {
        padding-top: 20px;
    }

    .vision p, .mision p {
        font-size: 14px; /* Reduce el tamaño de la fuente en pantallas pequeñas */
    }
}
/* Estilos generales equipo */
.equipo {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    width: 100%;
    align-content: center;
    align-content: center;
    position: relative;
}

    .equipo h2 {
        font-size: 2em;
        color: #407C2D;
    }

        .equipo h2 span {
            color: #FF9900;
        }

.equipo-contenedor {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    margin: 50px auto;
    max-width: 1000px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

/* Hover para botones */
.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

    .equipo-contenedor::-webkit-scrollbar {
        display: none;
    }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 1;
}

.miembro {
    text-align: center;
    flex: 1;
    flex-shrink: 0;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

    .miembro:hover {
        transform: scale(1.05); /* Aumenta ligeramente el tamaño al pasar el ratón */
    }

.icono {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden; /* Asegura que la imagen quede dentro del borde circular */
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}

    .icono img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ajusta la imagen al contenedor sin distorsionarla */
    }


.miembro h3 {
    font-size: 1em;
    color: #333;
    margin: 5px 0;
}

.miembro p {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.miembro a {
    color: #1a73e8;
    font-size: 0.9em;
    text-decoration: none;
}

    .miembro a:hover {
        text-decoration: underline;
    }

@media (max-width: 1024px) {
    .equipo-contenedor {
        max-width: 80%;
    }

    .miembro {
        width: 200px;
    }

    .icono {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .equipo h2 {
        font-size: 1.5em;
    }

    .miembro {
        width: 180px;
    }

    .icono {
        width: 150px;
        height: 150px;
    }

    .miembro h3, .miembro p, .miembro a {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .equipo h2 {
        font-size: 1.2em;
    }

    .miembro {
        width: 150px;
    }

    .icono {
        width: 150px;
        height: 150px;
    }

    .miembro h3, .miembro p, .miembro a {
        font-size: 0.7em;
    }
}

/* seccion de valores */

.valores {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

    .valores h2 {
        color: #FF9900;
        margin-bottom: 20px;
    }

/* Contenedor de los valores */
.valores-contenedor {
    display: flex;
    align-items:center;
    align-content:center;
    gap: 50px;
    justify-items: center;
    margin-bottom: 50px;
}

/* Estilos para cada valor */
.valor {
    width: 250px;
    height: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex:1;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .valor img {
        width: 130px;
        height: 130px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .valor p {
        margin-top: 10px;
        color: #407C2D;
        font-weight: bold;
        font-family: 'Montserrat', sans-serif;
        font-size:25px;
    }

    /* Efecto hover */
    .valor:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

        .valor:hover img {
            transform: scale(1.1);
            filter: brightness(1.2);
        }
@media (max-width: 768px) {
    .valores-contenedor {
        gap: 20px;
        margin-bottom:20px;
    }

    .valor {
        width: 200px; /* Reduce el ancho del contenedor de cada valor */
        height: 200px;
    }

        .valor img {
            width: 70px; /* Reduce el tamaño de la imagen */
            height: 70px;
        }

        .valor p {
            font-size: 20px; /* Reduce el tamaño de la fuente */
        }
}

@media (max-width: 480px) {
    .valores-contenedor {
        flex-direction: column; /* Cambia a columna en pantallas pequeñas */
        align-items: center;
    }

    .valor {
        width: 100%; /* Ocupa el ancho completo */
        max-width: 300px;
        height: auto;
        padding: 20px;
    }

        .valor img {
            width: 60px; /* Ajusta el tamaño de la imagen */
            height: 60px;
        }

        .valor p {
            font-size: 18px; /* Ajusta el tamaño de la fuente */
        }
}
