/* ==========================================================
   SILVER BAUM CR - NOSOTROS
   Estilos exclusivos de nosotros.html.
========================================================== */
/* ==========================================================
   13. QUIÉNES SOMOS
========================================================== */
.nosotros-presentacion {
    grid-template-columns: minmax(0, 1fr)
        minmax(0, 1.25fr);
}

/* ==========================================================
   15. MISIÓN Y VISIÓN
========================================================== */
.esencia {
    width: 100%;
    padding: 45px
        max(5%, calc((100% - var(--ancho)) / 2));
    display: grid;
    grid-template-columns: 1fr
        1fr;
    background: var(--fondo-suave);
}

.esencia article {
    display: grid;
    grid-template-columns: 65px
        1fr;
    gap: 22px;
    padding: 20px
        45px;
}

.esencia article:first-child {
    border-right: 1px solid var(--borde);
}

.esencia h2 {
    margin-bottom: 9px;
    color: var(--texto);
    font-size: 1.35rem;
}

.esencia p {
    max-width: 480px;
    margin: 0;
    color: var(--texto-secundario);
    font-size: 0.87rem;
}

.icono-grande {
    color: var(--verde-principal);
    font-size: 2.6rem;
}

/* ==========================================================
   17. VALORES
========================================================== */
.rejilla-valores {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 32px;
}

.rejilla-valores article {
    min-width: 0;
    padding: 15px
        16px;
    text-align: center;
    border-right: 1px solid var(--borde);
}

.rejilla-valores article:last-child {
    border-right: 0;
}

.rejilla-valores article > span {
    color: var(--verde-principal);
    font-size: 1.8rem;
}

.rejilla-valores h3 {
    margin: 9px
        0
        5px;
    font-size: 0.87rem;
}

.rejilla-valores p {
    margin: 0;
    font-size: 0.75rem;
}

/* ==========================================================
   18. HISTORIA
========================================================== */
.historia {
    background: var(--blanco);
}

.linea-tiempo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 42px;
    border-top: 2px solid #bad6c1;
    list-style: none;
}

.linea-tiempo li {
    position: relative;
    padding: 28px
        28px
        0
        0;
}

.linea-tiempo li::before {
    content: "";
    width: 11px;
    height: 11px;
    position: absolute;
    top: -6px;
    left: 0;
    border-radius: 50%;
    background: var(--verde-medio);
}

.linea-tiempo time {
    display: block;
    margin-bottom: 5px;
    color: var(--verde-principal);
    font-size: 1.15rem;
    font-weight: 700;
}

.linea-tiempo strong {
    display: block;
    color: var(--texto);
}

.linea-tiempo p {
    margin-top: 5px;
    font-size: 0.82rem;
}

/* ==========================================================
   21. NUESTRO EQUIPO
   IMPORTANTE: ESTA PARTE CORRIGE TU PROBLEMA ACTUAL
========================================================== */
.equipo {
    width: 100%;
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 65px
        30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        minmax(0, 1.05fr);
    gap: 65px;
    align-items: center;
    background: var(--blanco);
}

/* Caja de la imagen */
.equipo-nosotros {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radio-grande);
    background: var(--fondo-suave);
    box-shadow: var(--sombra);
}

/* Imagen */
.equipo-nosotros img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.equipo-nosotros:hover img {
    transform: scale(1.01);
}

/* Texto */
.equipo > article {
    min-width: 0;
    max-width: 570px;
    padding: 0;
}

.equipo > article h2 {
    margin-bottom: 20px;
    color: var(--texto);
}

.equipo > article h3 {
    margin-bottom: 20px;
    color: var(--texto);
}

.equipo > article > p {
    max-width: 560px;
    margin-bottom: 35px;
    color: var(--texto-secundario);
    line-height: 1.7;
}

/* Datos del equipo */
.equipo .datos-inline {
    margin-top: 25px;
}

/* ==========================================================
   RESPONSIVE NOSOTROS
========================================================== */
@media (max-width: 1200px) {
    .rejilla-valores {
        grid-template-columns: repeat(4, 1fr);
    }

    .equipo {
        width: calc(100% - 60px);
        padding: 55px 0;
        gap: 50px;
    }

}

@media (max-width: 900px) {
    .esencia {
        grid-template-columns: 1fr;
        padding: 40px 7%;
    }

    .esencia article {
        padding: 25px 0;
    }

    .esencia article:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--borde);
    }

    .linea-tiempo {
        grid-template-columns: 1fr;
        margin-left: 10px;
        border-top: 0;
        border-left: 2px solid #bad6c1;
    }

    .linea-tiempo li {
        padding: 0 0 35px 35px;
    }

    .linea-tiempo li::before {
        top: 5px;
        left: -7px;
    }

    .equipo {
        width: 100%;
        padding: 55px 7%;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .equipo-nosotros {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .equipo > article {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

}

@media (max-width: 600px) {
    .esencia article {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }

    .icono-grande {
        font-size: 2.1rem;
    }

    .rejilla-valores {
        grid-template-columns: 1fr 1fr;
    }

    .equipo {
        padding: 45px 6%;
        gap: 30px;
    }

    .equipo-nosotros {
        width: 100%;
        border-radius: 14px;
    }

}

@media (max-width: 420px) {
    .rejilla-valores {
        grid-template-columns: 1fr;
    }

    .rejilla-valores article {
        border-right: 0;
        border-bottom: 1px solid var(--borde);
    }

    .rejilla-valores article:last-child {
        border-bottom: 0;
    }

    .equipo {
        padding: 40px 6%;
    }

}
