/* ========== ESTILOS ESPECÍFICOS PARA SOBRE NOSOTROS ========== */

* { box-sizing: border-box; }

.page-about { background: #fff; }

/* =========================================
   1. Banner de Imagen Principal
   (Reemplaza al antiguo fondo con texto/logo)
   ========================================= */
.page-header {
    position: relative;
    margin-top: 70px; /* Ajuste para que el menǧ superior no tape la imagen */
    margin-bottom: 0;
    overflow: hidden;
    min-height: 380px; /* Altura de la imagen en computadoras */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2e9; /* Color de fondo mientras carga la imagen */
}

.page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen cubra todo el espacio sin deformarse */
    object-position: center; /* Centra la parte ms importante de la foto */
}

/* =========================================
   2. Contenido de "Nuestra Historia"
   ========================================= */
.about-content { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 1.5rem 1.5rem 3rem 1.5rem; 
    text-align: center; /* Centra los ttulos */
}

.about-content h2 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 2rem; 
    color: #1A4331; 
    margin-bottom: 1rem; margin-top: 1.5rem; 
    border-bottom: 3px solid #FF9800; 
    display: inline-block; 
    padding-bottom: 0.3rem; 
}

.about-content p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #2c3e50; 
    margin-bottom: 2rem; 
    text-align: justify; /* Justifica el texto para que se vea ms ordenado */
}

.about-content strong { color: #1A4331; }

/* =========================================
   3. Sección de Valores
   ========================================= */
.valores-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
    margin: 2rem 0 0.5rem 0; 
}

.valores-list .valor-item { 
    background: #ffffff; 
    border-radius: 1rem; 
    padding: 1.5rem; 
    text-align: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); 
}

.valor-item i { 
    font-size: 2rem; 
    color: #FF9800; 
    margin-bottom: 0.5rem; 
}

.valor-item h4 { 
    color: #1A4331; 
    margin-bottom: 0.5rem; 
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   4. Foto del Equipo
   ========================================= */
.team-photo { 
    margin-top: 4rem; 
    text-align: center; 
}

.team-photo img { 
    width: 100%; 
    max-width: 1000px; 
    border-radius: 1.5rem; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* =========================================
   5. Llamado a la acción (Voluntariado)
   ========================================= */
.join-cta { 
    background: linear-gradient(135deg, #1A4331, #2D5A3F); 
    color: white; 
    text-align: center; 
    padding: 4rem 1.5rem; 
    margin-top: 4rem; 
}

.join-cta h2 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 2rem; 
    margin-bottom: 1rem; margin-top: 1.5rem; 
    color: white;
    border: none; /* Quitamos la lnea naranja en este ttulo */
}

.join-cta p { 
    font-size: 1.1rem; 
    opacity: 0.9; 
    margin-bottom: 2rem; 
    text-align: center;
    color: white;
}

/* =========================================
   6. Adaptabilidad para Celulares (Responsive)
   ========================================= */
@media (max-width: 768px) { 
    .page-header {
        min-height: 250px; /* Reduce la altura de la imagen en celulares */
        margin-top: 60px;
    }
    
    .about-content { 
        padding: 2rem 1rem; 
    } 
    
    .about-content h2 {
        font-size: 1.7rem;
    }
}

/* ========== MANIFIESTO SELVA VIVA ========== */
.manifiesto-box {
    background-color: #ffffff;
    padding: 3.5rem 3rem;
    border-radius: 1.5rem;
    margin: 3rem 0 1rem 0;
    border-left: 6px solid #FF9800;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.manifiesto-box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-deep-green);
    margin-bottom: 1.5rem;
}

.manifiesto-box blockquote {
    margin: 0;
    padding: 0;
}

.manifiesto-box p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.manifiesto-box p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .manifiesto-box {
        padding: 2rem 1.5rem;
        margin: 2rem 0 1rem 0;
        border-left-width: 4px;
        border-radius: 1rem;
    }
    
    .manifiesto-box h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .manifiesto-box p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}

/* Override grid for 2 columns on mobile */
@media (max-width: 768px) {
    .valores-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .valores-list .valor-item {
        padding: 1.2rem 0.6rem;
        border-radius: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .valor-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .valor-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
        min-height: 2.4em; /* Align heights */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .valor-item p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
        text-align: center;
    }
}


/* ========== ANIMACIÓN LATIDO (HEARTBEAT) ========== */
.heartbeat-btn {
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform-origin: center;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.08); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}
