/**
 * ============================================================
 * Archivo: quienes_somos.css
 * Descripción: Estilos específicos para la página Quiénes Somos.
 * ============================================================
 */

/* ===== SECCIÓN: Hero (Top) ===== */
.qs-hero {
    display: flex;
    align-items: stretch;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    min-height: 380px; /* Reducido para subir contenido */
}

.qs-hero-image {
    position: absolute;
    top: 0;
    left: 40%;
    right: 0;
    bottom: 0;
    background-image: url('../../img/COMBI.svg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomInImage 1.5s ease-out forwards; /* Nueva animación muy visible */
}

.qs-hero-content {
    position: relative;
    z-index: 2;
    width: 55%;
    background-color: #f6faf9;
    padding: 30px 100px 30px 10%; /* Mucho menos espacio arriba y abajo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 40% 50%;
    box-shadow: 20px 0 50px rgba(33, 143, 117, 0.15); /* Sombra mucho más pronunciada y verdosa */
    animation: slideRight 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.qs-badge {
    display: inline-block;
    background-color: rgba(33, 143, 117, 0.1);
    color: var(--color-primario);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    align-self: flex-start;
}

.qs-hero-content h1 {
    font-size: 3rem;
    color: #1a3c34;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.qs-hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #3b5650;
    margin-bottom: 15px;
    text-align: justify;
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-150px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomInImage {
    0% { opacity: 0.2; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(80px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatInfinite {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* ===== SECCIÓN: Container General ===== */
.qs-main-container {
    padding: 30px 20px; /* Reducido para subir todo */
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== SECCIÓN: Historia ===== */
.qs-historia {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px; /* Reducido */
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.qs-historia-content {
    flex: 1;
}

.qs-icon-wrapper-historia {
    background-color: #eaf1f0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(33, 143, 117, 0.15);
}

.qs-section-title h2 {
    font-size: 2rem;
    color: #1a3c34;
    margin-bottom: 8px;
    font-weight: 700;
}

.qs-linea-historia {
    width: 50px;
    height: 4px;
    background-color: var(--color-primario);
    border-radius: 2px;
}

.qs-historia-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5c59;
    margin-bottom: 20px;
    text-align: justify;
}

.qs-historia-image {
    flex: 1;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 15px 35px rgba(33, 143, 117, 0.2));
    animation: floatInfinite 4s ease-in-out infinite;
}

/* ===== SECCIÓN: Misión y Visión ===== */
.qs-mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px; /* Reducido */
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.qs-card {
    background: linear-gradient(145deg, #ffffff, #f4fcf9);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(33, 143, 117, 0.1);
    border-top: 5px solid var(--color-primario); /* Borde superior super distintivo */
}

.qs-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(33, 143, 117, 0.15);
}

.qs-card .qs-icon-wrapper-mv {
    background-color: #e3f0ec;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(33, 143, 117, 0.15);
}

.qs-card h3 {
    font-size: 1.6rem;
    color: #1a3c34;
    margin-bottom: 15px;
    font-weight: 700;
}

.qs-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5c59;
    text-align: justify;
}

/* ===== SECCIÓN: Qué ofrece Rutea ===== */
.qs-ofrece {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.qs-title-center {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-texto);
    margin-bottom: 40px;
}

.qs-features {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.qs-feature-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qs-feature-item .qs-icon-raw {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--color-primario);
    transition: transform 0.3s ease, color 0.3s ease;
}

.qs-feature-item:hover .qs-icon-raw {
    transform: scale(1.15) translateY(-5px);
    color: #1a3c34;
}

.qs-feature-item p {
    font-size: 0.9rem;
    color: var(--color-texto);
    line-height: 1.4;
    font-weight: 500;
}

/* ===== SECCIÓN: Media Queries ===== */
@media (max-width: 768px) {
    .qs-hero {
        flex-direction: column;
    }

    .qs-hero-content {
        width: 100%;
        border-radius: 0;
        border-bottom-right-radius: 50% 20%;
        border-bottom-left-radius: 50% 20%;
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .qs-hero-image {
        position: relative;
        width: 100%;
        left: 0;
        min-height: 250px;
        z-index: 1;
    }

    .qs-historia {
        flex-direction: column;
    }

    .qs-mision-vision {
        grid-template-columns: 1fr;
    }

    .qs-features {
        justify-content: center;
    }
    
    .qs-feature-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 480px) {
    .qs-feature-item {
        flex: 0 0 calc(50% - 20px);
    }
}
