/* CONTENEDOR GENERAL */

.nosotros-container {
    padding-top: 140px;
    max-width: 1200px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* TÍTULO */

.titulo-nosotros {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 55px;
}

.titulo-nosotros img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.titulo-nosotros h1 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 3.2rem;
    letter-spacing: 1px;
    text-align: center;
}

.linea {
    width: 100%;
    height: 8px;
    background: var(--amarillo);
    margin-top: 15px;
}

/* TARJETAS PRINCIPALES */

.historia-card,
.actualidad-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 45px;
    margin-bottom: 55px;
    box-shadow: var(--sombra-card);
    border-left: 8px solid var(--amarillo);
}

.historia-card h2,
.actualidad-card h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 2.4rem;
    margin-bottom: 22px;
}

.historia-card p,
.actualidad-card p {
    font-family: 'DM Sans', sans-serif;
    color: #333333;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.actualidad-card strong {
    color: var(--azul-oscuro);
}

/* HISTORIA CON IMAGEN ANIMADA */

.historia-con-imagen {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: center;
}

.historia-texto {
    width: 100%;
}

.historia-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: aparecerDerecha 1s ease forwards;
}

.historia-imagen img {
    width: 100%;
    max-width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
    border: 6px solid #ffffff;
    animation: flotarImagen 4s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.historia-imagen img:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.30);
}

/* FUNDADORES DESPLEGABLES */

.fundadores-section {
    margin-bottom: 55px;
    text-align: center;
}

.btn-mostrar-fundadores {
    background: var(--azul-oscuro);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    border-radius: 35px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--sombra-card);
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-mostrar-fundadores:hover {
    background: var(--amarillo);
    color: var(--azul-oscuro);
    transform: translateY(-4px);
}

.btn-mostrar-fundadores span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--azul-oscuro);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.fundadores-contenedor {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.8s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.fundadores-contenedor.activo {
    max-height: 5000px;
    opacity: 1;
    margin-top: 35px;
}

.fundadores-lista {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--sombra-card);
    border-left: 8px solid var(--amarillo);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
}

.fundador-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'DM Sans', sans-serif;
    color: var(--azul-oscuro);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid var(--amarillo);
    transition: 0.3s ease;
}

.fundador-item:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.fundador-item span {
    min-width: 34px;
    height: 34px;
    background: var(--azul-oscuro);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* FOOTER */

.redes img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* ANIMACIONES */

@keyframes aparecerDerecha {
    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flotarImagen {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width: 992px) {

    .titulo-nosotros h1 {
        font-size: 2.6rem;
    }

    .fundadores-lista {
        grid-template-columns: 1fr;
    }

}

@media(max-width: 900px) {

    .historia-con-imagen {
        grid-template-columns: 1fr;
    }

    .historia-imagen {
        margin-top: 15px;
    }

    .historia-imagen img {
        max-width: 320px;
        height: 320px;
    }

}

@media(max-width: 768px) {

    .titulo-nosotros {
        flex-direction: column;
        text-align: center;
    }

    .titulo-nosotros img {
        width: 140px;
    }

    .titulo-nosotros h1 {
        font-size: 2.1rem;
    }

    .historia-card,
    .actualidad-card {
        padding: 30px 22px;
    }

    .historia-card h2,
    .actualidad-card h2 {
        font-size: 2rem;
    }

    .fundadores-lista {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .fundador-item {
        font-size: 0.9rem;
        padding: 13px 14px;
    }

    .fundador-item span {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

}

@media(max-width: 480px) {

    .nosotros-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .titulo-nosotros img {
        width: 120px;
    }

    .historia-imagen img {
        max-width: 260px;
        height: 260px;
    }

    .btn-mostrar-fundadores {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }

    .fundadores-lista {
        padding: 18px;
    }

    .fundador-item {
        align-items: flex-start;
    }

}