.nosotros {
    width: 100%;
    background-color: #fff;
    margin: 0 auto;
    padding: 80px 30px;
}

.nosotros-titulo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #002244;
    margin-bottom: 60px;
}

.limite {
    max-width: 1280px;
    margin: 0 auto;
}

.nosotros-titulo span {
    color: #007bff;
}

.bloque-nosotros {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.fila.normal {
    flex-direction: row;
}

.fila.invertida {
    flex-direction: row-reverse;
}

.imagen-nosotros {
    width: 45%;
    max-width: 500px;
    z-index: 1;
}

.imagen-nosotros img {
    display: block;
    width: 100%;
    height: auto;
}

.texto-nosotros {
    flex: 1;
    z-index: 1;
    min-width: 280px;
    padding: 10px;
}

.texto-nosotros h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #0d1a26;
}

.texto-nosotros p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.decoracion {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    top: 0;
    left: 0;
    z-index: 0;
}

.animado {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animado.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .bloque-nosotros {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .imagen-nosotros {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .texto-nosotros {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}


/*------------------------------------------ seccion 2 ---------------------------------------*/
.testimonios {
    padding: 40px 20px;
    text-align: center;
}

.testimonios h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.carrusel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slide {
    background-color: white;
    border-radius: 30px;
    padding: 40px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.slide.activo {
    display: flex;
}

.slide .texto {
    flex: 1;
    text-align: center;
}

.slide .texto p {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.slide .texto span {
    font-size: 0.9rem;
    color: #666;
}

.slide .imagen img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

.controles {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.controles .carousel-btn {
    background: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.controles .carousel-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.controles .carousel-btn:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

.controles .carousel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

.controles .carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: #1a73e8;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.controles .carousel-btn:hover svg {
    transform: scale(1.1);
}

#indicador {
    font-weight: 500;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .slide {
        flex-direction: column;
        padding: 30px 20px;
    }

    .slide .texto,
    .slide .imagen {
        width: 100%;
        max-width: 100%;
    }

    .slide .imagen img {
        max-width: 300px;
        margin: 0 auto;
    }

    .slide .texto p {
        font-size: 1.1rem;
    }

    .slide .texto span {
        font-size: 0.85rem;
    }
}


/*----------------------------------------------- sseccion 3 ---------------------------------------*/
.proyectos {
    background: white;
    padding: 60px 30px;
    margin: auto;
}

.proyectos h2 {
    text-align: center;
    color: #1a73e8;
    font-size: 2.5em;
    margin-bottom: 60px;
}

.proyectos h2 span {
    font-weight: bold;
}

.proyecto {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.proyecto .texto {
    flex: 1 1 500px;
    max-width: 600px;
}

.proyecto img {
    flex: 1 1 400px;
    max-width: 600px;
}

.proyecto img {
    width: 80%;
}

.proyecto h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #222;
}

.proyecto p {
    font-size: 1.05em;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .proyectos {
        padding: 40px 20px;
    }

    .proyecto {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .proyecto .texto,
    .proyecto .imagenNosotros {
        flex: 1 1 100%;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .proyecto h3 {
        font-size: 1.6em;
    }

    .proyecto p {
        font-size: 1em;
    }

    /*esto esta para que se invierta el primer proyecto de godcode en resoluciones pequeñas y no se vea mal.*/
    .fila.invertida2 {
        flex-direction: column-reverse;
    }
}


/*--------------------------------- seccion 4 ---------------------------------*/
.creciendoJuntos {
    background-color: #f9f9f9;
    padding: 60px 40px;
    text-align: center;
    font-family: sans-serif;
}

.creciendoJuntos h2 {
    font-size: 2.3em;
    margin-bottom: 40px;
}

.creciendoJuntos h2 span {
    color: #1a73e8;
    font-weight: bold;
}

.creciendoJuntos-contenido.fila-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
    text-align: left;
    flex-wrap: wrap;
}

.creciendoJuntos .bloque {
    flex: 1 1 600px;
}

.creciendoJuntos .bloque h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.creciendoJuntos .bloque p {
    font-size: 1em;
    line-height: 1.6;
}

.creciendoJuntos .contenedor-boton {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creciendoJuntos .btn-contacto {
    display: inline-block;
    padding: 12px 28px;
    background-color: #e8f0fe;
    color: #1a73e8;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.creciendoJuntos .btn-contacto:hover {
    background-color: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .creciendoJuntos-contenido.fila-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .creciendoJuntos .contenedor-boton {
        margin-top: 20px;
    }

    .creciendoJuntos .bloque {
        text-align: center;
    }
}

body {
    overflow-x: hidden;
}

section,
.bloque-nosotros,
.slide,
.proyecto,
.creciendoJuntos-contenido {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}