/* ================================================= */
/* ===== 4. SECCIÓN: CONOCENOS (Historia, Misión, Valores) ===== */
/* =================================== */

.page-section {
    padding: 80px 0; 
    background-color: var(--color-fondo-claro);
}

.page-section h2.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.page-section h2.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-dorado-acento);
    border-radius: 2px;
}

.page-section p.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-texto-general);
    margin-bottom: 60px; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Ficha de Perfil (Profile Card) --- */
.profile-card {
    display: flex;
    flex-direction: row; 
    align-items: flex-start; 
    gap: 40px; 
    background-color: var(--color-blanco-puro);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 900px; 
    margin: 60px auto; 
    border-top: 5px solid var(--color-dorado-acento);
}

.profile-image-wrapper {
    flex-shrink: 0; 
    width: 250px; 
    height: 250px; 
    border-radius: 50%; /* Círculo para la foto de perfil */
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border: 3px solid var(--color-blanco-puro); 
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.profile-description {
    flex-grow: 1; 
    text-align: left;
}

.profile-description h3 {
    font-size: 2.2rem;
    color: var(--color-gris-oscuro);
    margin-top: 0;
    margin-bottom: 5px; 
    border-bottom: none; 
    padding-bottom: 0;
    line-height: 1.3;
}

.profile-founder {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dorado-acento);
    margin-bottom: 20px;
}

.profile-description p {
    font-size: 1.1rem;
    color: var(--color-texto-general);
    line-height: 1.7;
    margin-bottom: 15px;
}

.profile-description h4.mv-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gris-oscuro);
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 10px;
}
.profile-description h4.mv-subtitle:first-of-type {
    margin-top: 5px; 
}

.profile-image-wrapper.image-rect {
    border-radius: 10px; 
    border: none; 
}


/* Responsive para la Ficha de Perfil */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column; 
        align-items: center; 
        padding: 25px;
        gap: 25px;
    }
    .profile-image-wrapper {
        width: 200px; 
        height: 200px;
    }
    .profile-description {
        text-align: center; 
    }
    .profile-description h3 {
        font-size: 1.8rem;
        text-align: center; 
    }
    .profile-description p {
        font-size: 1rem;
    }
    .profile-description h4.mv-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
}


/* =================================== */
/* !! SECCIÓN DE VALORES (CON ANIMACIÓN DE ENTRADA) !! */
/* =================================== */

/* Estilo para la nueva frase de impacto */
.impact-quote {
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto; /* Sube un poco, da espacio abajo */
    font-style: italic;
    color: var(--color-texto-general);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.valor-item {
    background-color: var(--color-blanco-puro);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid var(--color-dorado-acento);
    
    /* =================================== */
    /* !! ESTADO INICIAL (OCULTO) !!       */
    /* =================================== */
    opacity: 0;
    transform: translateY(30px);
    
    /* Transición para el HOVER (rápida) */
    transition: background-color 0.3s ease, 
                box-shadow 0.3s ease, 
                color 0.3s ease;
}

/* =================================== */
/* !! ESTADO VISIBLE (LO AÑADE JS) !!  */
/* =================================== */
.valor-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* Transición para la ENTRADA (más lenta) */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Animación escalonada (staggering) */
.valor-item.is-visible:nth-child(1) { transition-delay: 0.1s; }
.valor-item.is-visible:nth-child(2) { transition-delay: 0.2s; }
.valor-item.is-visible:nth-child(3) { transition-delay: 0.3s; }
.valor-item.is-visible:nth-child(4) { transition-delay: 0.15s; } /* Fila 2 */
.valor-item.is-visible:nth-child(5) { transition-delay: 0.25s; }
.valor-item.is-visible:nth-child(6) { transition-delay: 0.35s; }
/* =================================== */

.valor-item i,
.valor-item h3,
.valor-item p {
    /* Transición para el cambio de color del hover */
    transition: color 0.3s ease;
}

.valor-item i {
    font-size: 3rem; 
    color: var(--color-dorado-acento);
    margin-bottom: 20px;
}

.valor-item h3 {
    font-size: 1.6rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 15px;
}

.valor-item p {
    font-size: 1rem;
    color: var(--color-texto-general);
    line-height: 1.6;
}

/* Efecto de Hover (Inversión de color) */
.valor-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); 
    background-color: var(--color-gris-menu); 
}
.valor-item:hover h3 {
    color: var(--color-blanco-puro);
}
.valor-item:hover p {
    color: #e0e0e0; 
}
.valor-item:hover i {
    color: var(--color-dorado-acento);
}
/* =================================== */
/* !! FIN DE SECCIÓN VALORES !!       */
/* =================================== */


/* Responsive para Valores */
@media (max-width: 768px) {
    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .valor-item {
        padding: 25px;
    }
    .valor-item h3 {
        font-size: 1.4rem;
    }
}