/* ─── Hero Institucional FUNJOSE ────────────────────────────────────────────
   Usado por template-parts/hero.php
   Desktop  : dos columnas — título grande | mensaje institucional + botones
   Tablet + Móvil : una columna, apilado
   ────────────────────────────────────────────────────────────────────────── */

/* ── Layout ── */
.fj-hero {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 0 56px;
    align-items: center;
    padding: 140px 64px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 430px;
}

/* ── Columna izquierda — título ── */
.fj-hero__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    animation: fj-fadein 0.7s ease both;
}

.fj-hero__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(3.4rem, 7.2vw, 6.5rem);
    color: #1A1860;
    line-height: 1.08;
    margin: 0;
}

.fj-hero__title-accent {
    text-decoration-line: underline;
    text-decoration-color: var(--global-palette1, #fea900);
    text-decoration-thickness: 5px;
    text-underline-offset: 12px;
}

/* ── Columna derecha — mensaje + botones ── */
.fj-hero__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    animation: fj-fadein 0.9s ease both;
    animation-delay: 0.15s;
}

.fj-hero__desc {
    font-size: 1.375rem;
    color: #555c74;
    line-height: 1.78;
    max-width: 460px;
    margin: 0;
}

.fj-hero__buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fj-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

/* Aplicar a una beca — acción importante pero secundaria, sin elevación */
.fj-btn--primary {
    background: #1A1860;
    color: #fff !important;
}
.fj-btn--primary:hover {
    background: #252b7a;
    color: #fff !important;
}

/* Donar — acción principal, con elevación sutil para atraer atención */
.fj-btn--secondary {
    background: var(--global-palette1, #fea900);
    color: var(--global-palette3, #08025f) !important;
    box-shadow: 0 4px 16px rgba(254, 169, 0, 0.35);
}
.fj-btn--secondary:hover {
    box-shadow: 0 6px 22px rgba(254, 169, 0, 0.45);
}

/* Botón de 3er orden — acción de apoyo, sin peso visual */
.fj-btn--tertiary {
    background: transparent;
    color: #1A1860 !important;
    border: 2px solid #1A1860;
    padding: 10px 26px;
}
.fj-btn--tertiary:hover {
    background: rgba(26, 24, 96, 0.08);
}

@keyframes fj-fadein {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Tablet (720–1024px): una columna ── */
@media screen and (min-width: 720px) and (max-width: 1024px) {
    .fj-hero {
        grid-template-columns: 1fr;
        padding: 160px 64px;
        gap: 40px 0;
        text-align: center;
        min-height: auto;
    }
    .fj-hero__left {
        align-items: center;
        height: auto;
    }
    .fj-hero__title {
        font-size: clamp(2.8rem, 6.9vw, 4.4rem);
    }
    .fj-hero__right {
        align-items: center;
    }
    .fj-hero__desc {
        max-width: 600px;
    }
    .fj-hero__buttons {
        justify-content: center;
    }
}

/* ── Móvil (≤719px): una columna ── */
@media screen and (max-width: 719px) {
    .fj-hero {
        grid-template-columns: 1fr;
        padding: 120px 28px 112px;
        gap: 32px 0;
        text-align: center;
        min-height: auto;
    }
    .fj-hero__left {
        align-items: center;
        height: auto;
    }
    .fj-hero__title {
        font-size: clamp(2.4rem, 7.1vw, 3.2rem);
    }
    .fj-hero__right {
        align-items: center;
        gap: 22px;
    }
    .fj-hero__desc {
        font-size: 1rem;
    }
    .fj-hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    /* Grandes para que el dedo no falle, pero sin estirarse a todo el ancho
       (se veía como botón de app nativa). */
    .fj-btn {
        width: auto;
        min-width: 220px;
        padding: 16px 32px;
        font-size: 1.05rem;
        text-align: center;
    }
}
