/* ============================================================
   INICIO FUNDESI
   Solo estilos de la página de inicio (no toca header/footer)
   ============================================================ */

/* ============================================================
   0) UTILIDADES DE SECCIÓN (títulos, subtítulos, padding)
   ============================================================ */

.section-padding {
    padding: 4rem 0;
}

/* Ajuste local para los títulos del home */
.section-title {
    font-weight: 800;
    color: var(--fundesi-green-dark);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ============================================================
   1) HERO - PORTADA PRINCIPAL
   Fondo con foto + degradado NEUTRO (sin tricolor)
   ============================================================ */

.hero-fundesi {
    position: relative;
    min-height: 70vh;

    /* Fondo: foto + degradado oscuro neutro para legibilidad */
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0.12) 70%,
            rgba(0, 0, 0, 0.00) 100%
        ),
        url("/fundesi/img/portada.jpg") center left / cover no-repeat;

    border-bottom: 1px solid rgba(148, 163, 184, 0.40);

    color: #ffffff;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Ajuste en móviles: centramos más la imagen y reducimos padding */
@media (max-width: 767.98px) {
    .hero-fundesi {
        padding-top: 3rem;
        padding-bottom: 3rem;
        background-position: center center;
    }
}

/* Título del hero (más presencia) */
.hero-title {
    font-size: clamp(2.3rem, 3vw + 1rem, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;

    /* Contorno suave */
    -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.20);

    /* Sombra premium */
    text-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Texto del hero */
.hero-text {
    font-size: 1.05rem;
    max-width: 32rem;
    margin-bottom: 1.5rem;
    opacity: 0.92;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   2) BOTONES DEL HERO Y CTA (sin bordes tricolores)
   ============================================================ */

/* BOTÓN PRINCIPAL (AMARILLO) */
.btn-primary-fundesi {
    background-color: var(--fundesi-yellow);
    color: #000;
    border: none !important;
    outline: none;
    border-radius: 999px;
    padding: 0.65rem 1.9rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition: all 0.25s ease;
}

.btn-primary-fundesi:hover {
    background-color: #e2c23c;
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

/* BOTÓN SECUNDARIO (BLANCO BORDE BLANCO) */
.btn-outline-fundesi {
    background: transparent;
    border: 2px solid #ffffff !important;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1.9rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-outline-fundesi:hover {
    background-color: #ffffff;
    color: var(--fundesi-green-dark);
}

/* BOTÓN DONAR ROJO (usa también la tarjeta del hero) */
.btn-donar {
    background-color: var(--fundesi-red);
    border: none !important;
    border-radius: 999px;
    padding: 0.65rem 1.7rem;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(227, 49, 45, 0.35);
    transition: all 0.25s ease;
}

.btn-donar:hover {
    background-color: #c72a26;
    box-shadow: 0 8px 24px rgba(227, 49, 45, 0.45);
}

/* BOTÓN CTA "COLABORA" */
.btn-cta-donar {
    border: 2px solid var(--fundesi-red) !important;
    background-color: #ffffff !important;
    color: var(--fundesi-red) !important;
    border-radius: 999px;
    padding: 0.7rem 2.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
    transition: all 0.25s ease;
}

.btn-cta-donar:hover {
    background-color: var(--fundesi-red) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

/* ============================================================
   3) TARJETA LATERAL DEL HERO (DONACIONES)
   Con franja tricolor vertical + cajitas con franja vertical
   ============================================================ */

.hero-card {
    background: transparent;
    border-radius: 1.6rem;
    padding: 1.8rem 2.2rem 1.8rem 2.6rem;
    border: none;

    box-shadow: none;

    position: relative;
    overflow: hidden;
}



/* Franja tricolor VERTICAL en la tarjeta grande */
.hero-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 7px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(
        180deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* Título de la tarjeta */
.hero-card-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.45);
}

.hero-card-text {
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}


/* CAJAS PEQUEÑAS DE MONTOS CON FRANJA VERTICAL */
.donacion-box {
    background: #ffffff;
    border-radius: 1.3rem;
    padding: 0.9rem 0.9rem 0.9rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: all .25s ease;
}

/* Franja tricolor VERTICAL en cada cajita */
.donacion-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(
        180deg,
        var(--fundesi-green),
        var(--fundesi-yellow),
        var(--fundesi-red)
    );
}

/* Aseguramos que el contenido esté por encima de la franja */
.donacion-box .monto,
.donacion-box .descripcion {
    position: relative;
    z-index: 1;
}

/* Monto visible y fuerte */
.donacion-box .monto {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--fundesi-red);
}

/* Descripción con color explícito */
.donacion-box .descripcion {
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
    color: #4b5563;
}

/* Hover */
.donacion-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.20);
}

/* En móviles, separarla un poco del texto */
@media (max-width: 767.98px) {
    .hero-card {
        margin-top: 1rem;
    }
}

/* ============================================================
   4) SEPARADOR ROMBO TRICOLOR (igual que en quehacemos)
   ============================================================ */

.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)
    );
}

@media (max-width: 767.98px) {
    .separator-tricolor {
        margin: 2.5rem 0;
    }
}

/* ============================================================
   5) SECCIÓN ÁREAS DE TRABAJO
   Cards con el mismo estilo que .area-card de quehacemos.css
   ============================================================ */

.bg-light-fundesi {
    background-color: #f9fafb;
}

.card-area {
    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 superior tricolor */
.card-area::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)
    );
}

/* Radial suave al fondo */
.card-area::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;
}

.card-area h3 {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fundesi-green-dark);
    margin-bottom: 0.5rem;
}

.card-area p {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Hover */
.card-area:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

/* ============================================================
   6) SECCIÓN IMPACTO
   ============================================================ */

.section-impact {
    background-color: #ffffff;
}

.impact-box {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.3rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.impact-number {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--fundesi-green);
}

.impact-label {
    font-size: 0.9rem;
    color: #4b5563;
}

/* ============================================================
   7) CTA DONAR – SE PARTE DEL CAMBIO
   ============================================================ */

.cta-donar {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;

    /* Fondo suave tipo “qué hacemos” para que no quede pelado */
    background: linear-gradient(
        135deg,
        rgba(15, 138, 59, 0.06),
        rgba(227, 49, 45, 0.04)
    );
}

.cta-donar-inner {
    position: relative;
}

/* Imagen sin tarjeta blanca, centrada y más pequeña */
.cta-donar-img {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.cta-donar-img img {
    width: 70%;
    max-width: 340px;
    display: block;
    margin: 0 auto;
    border-radius: 1.25rem;
}

/* Texto CTA */
.cta-donar-text {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-donar-fecha {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b91c1c;
    opacity: 0.9;
}

.cta-donar-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.2vw + 0.5rem, 2.3rem);
    color: var(--fundesi-gray);
}

.cta-donar-title span {
    color: var(--fundesi-red);
}

.cta-donar-desc {
    font-size: 1rem;
    color: #4b5563;
    max-width: 400px;
}

/* Icono corazón */
.cta-donar-icon i {
    font-size: 1.8rem;
    color: var(--fundesi-red);
}

/* Responsive CTA */
@media (max-width: 767.98px) {
    .cta-donar {
        padding: 3rem 0 5rem;
    }

    .cta-donar-text {
        text-align: center;
    }
}


/* Quitar franja tricolor vertical del hero (evita tapar la imagen) */
.hero-card::before {
    display: none;
}
