/* css/quehacemos.css */
/* ============================
   PÁGINA: QUÉ HACEMOS
   ============================ */

/* HERO QUÉ HACEMOS */
.hero-quehacemos {
    background: linear-gradient(
        135deg,
        rgba(15, 138, 59, 0.16),
        rgba(227, 49, 45, 0.14)
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    text-align: center;
}

.hero-quehacemos .section-title {
    margin-bottom: 0.75rem;
}

.hero-quehacemos .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   INTRO: EDUCACIÓN PARA EL FUTURO
   ============================ */

.section-quehacemos-intro {
    background-color: #ffffff;
}

.section-quehacemos-intro .intro-text {
    font-size: 0.96rem;
    color: #374151;
}

.section-quehacemos-intro .intro-text p + p {
    margin-top: 0.8rem;
}

.intro-figure {
    margin-top: 1.8rem;
    text-align: center;
}

/* AQUÍ CONTROLAS EL TAMAÑO DE F8.jpeg */
.intro-img {
    max-width: 960px;       /* ancho máximo de la foto */
    width: 100%;
    max-height: 380px;      /* altura máxima de la foto */
    object-fit: cover;      /* puedes usar contain si no quieres recorte */
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

/* ============================
   SEPARADOR ROMBO TRICOLOR
   ============================ */

.separator-tricolor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3.5rem 0;
}

/* Líneas laterales con degradado tricolor */
.separator-tricolor::before,
.separator-tricolor::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* Contenedor del rombo */
.separator-tricolor span {
    position: relative;
    width: 40px;
    height: 40px;
}

/* Rombo externo */
.separator-tricolor span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 3px solid var(--fundesi-green-dark);
    border-radius: 10px;
    transform: rotate(45deg);
}

/* Rombo interno TRICOLOR */
.separator-tricolor span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* ============================
   ÁREAS DE TRABAJO Y ACTIVIDADES
   ============================ */

.section-areas {
    position: relative;
}

.section-areas p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Tarjetas de áreas (Educación, Salud, etc.) */
.area-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Línea decorativa superior con tricolor */
.area-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* Fondo suave radial para darle profundidad */
.area-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(227, 49, 45, 0.12),
        transparent 60%
    );
    opacity: 0.85;
    pointer-events: none;
}

.area-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fundesi-green-dark);
    margin-bottom: 0.6rem;
}

.area-card p,
.area-card ul {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Listas dentro de las tarjetas */
.area-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.area-card li + li {
    margin-top: 0.35rem;
}

/* Hover */
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

/* ============================
   PROYECTOS (EN CURSO / FINALIZADOS)
   ============================ */

.section-proyectos {
    position: relative;
}

.section-proyectos p {
    font-size: 0.94rem;
    color: #4b5563;
}

/* Tarjetas base de proyectos (texto) */
.project-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.30);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Borde lateral tricolor sutil (solo para las tarjetas de texto) */
.section-proyectos:not(#proyectos-finalizados) .project-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* Brillo suave de fondo (solo para las tarjetas de texto) */
.section-proyectos:not(#proyectos-finalizados) .project-card::after {
    content: "";
    position: absolute;
    right: -25%;
    top: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(
        circle at center,
        rgba(15, 138, 59, 0.10),
        transparent 65%
    );
    pointer-events: none;
}

.project-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--fundesi-green-dark);
    margin-bottom: 0.45rem;
}

.project-card p {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #4b5563;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

/* ---------- PROYECTOS FINALIZADOS CON IMAGEN (EL HOY DE FUNDESI) ---------- */

.link-seguir {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #e3312d;
    text-decoration: none;
}

.link-seguir:hover {
    text-decoration: underline;
}

.project-card-image {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Quitar el borde lateral y el brillo de las tarjetas con imagen */
#proyectos-finalizados .project-card-image::before,
#proyectos-finalizados .project-card-image::after {
    content: none;
}

.project-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
}

/* AQUÍ CONTROLAS EL TAMAÑO DE F5 / F6 / F7 */
.project-img {
    width: 100%;
    height: 170px;          /* altura fija de las fotos en las tarjetas */
    object-fit: cover;      /* recorta sin deformar; usa contain si no quieres recorte */
    display: block;
}

.project-body {
    padding: 1.1rem 1.3rem 1.2rem;
}

.project-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.project-date {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 991.98px) {
    .intro-img {
        max-height: 320px;
    }

    .project-img {
        height: 210px;
    }
}

@media (max-width: 767.98px) {
    .separator-tricolor {
        margin: 2.5rem 0;
    }

    .section-quehacemos-intro {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .area-card,
    .project-card {
        padding: 1.25rem 1.3rem;
    }

    .project-img {
        height: 200px;
    }
}
