/* =========================================
   FUNDACIÓN AGIOGLOBAL - PÁGINA PRINCIPAL
   ========================================= */

.fundacion-home {
    --fh-primary: #2579cc;
    --fh-primary-dark: #185b9e;
    --fh-primary-light: #eaf3fc;
    --fh-orange: #d0774a;
    --fh-orange-dark: #b96339;
    --fh-white: #ffffff;
    --fh-text: #303b49;
    --fh-muted: #687585;
    --fh-background: #f7f9fc;
    --fh-radius: 14px;
    --fh-shadow: 0 8px 30px rgba(27, 63, 99, 0.09);

    width: 100%;
    overflow: hidden;
    color: var(--fh-text);
    background: var(--fh-white);
    font-family: inherit;
}

.fundacion-home *,
.fundacion-home *::before,
.fundacion-home *::after {
    box-sizing: border-box;
}

.fundacion-home img {
    display: block;
    max-width: 100%;
}

.fundacion-home a {
    text-decoration: none;
}

.fundacion-home p {
    line-height: 1.75;
}


/* =========================================
   BOTONES Y ELEMENTOS COMUNES
   ========================================= */

.fundacion-home .fh-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--fh-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.fundacion-home .fh-label-light {
    color: rgba(255, 255, 255, 0.8);
}

.fundacion-home .fh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

.fundacion-home .fh-button span {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.fundacion-home .fh-button:hover span {
    transform: translateX(4px);
}

.fundacion-home .fh-button-orange {
    color: var(--fh-white);
    background: var(--fh-orange);
    box-shadow: 0 5px 15px rgba(208, 119, 74, 0.2);
}

.fundacion-home .fh-button-orange:hover {
    color: var(--fh-white);
    background: var(--fh-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 119, 74, 0.25);
}

.fundacion-home .fh-button-white {
    color: var(--fh-primary);
    background: var(--fh-white);
}

.fundacion-home .fh-button-white:hover {
    color: var(--fh-primary-dark);
    background: #edf4fc;
    transform: translateY(-2px);
}

.fundacion-home .fh-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--fh-primary);
    font-size: 1rem;
    font-weight: 700;
    transition: gap 0.25s ease;
}

.fundacion-home .fh-text-link:hover {
    gap: 16px;
}


/* =========================================
   PORTADA - HERO CON IMAGEN DE FONDO COMPLETA
   ========================================= */

.fundacion-home .fh-hero {
    position: relative;
    padding: 120px 6%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--fh-white);
    min-height: 560px;
    display: flex;
    align-items: center;
}

.fundacion-home .fh-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.fundacion-home .fh-hero-content {
    max-width: 750px;
}

.fundacion-home .fh-hero .fh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.fundacion-home .fh-hero .fh-eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0a276;
    box-shadow: 0 0 0 4px rgba(240, 162, 118, 0.2);
    content: "";
}

.fundacion-home .fh-hero h1 {
    margin: 0 0 24px;
    color: var(--fh-white);
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.fundacion-home .fh-hero p {
    margin: 0 0 36px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
}

.fundacion-home .fh-hero .fh-button {
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 9px 24px rgba(9, 40, 72, 0.3);
}


/* =========================================
   SECCIONES GENERALES
   ========================================= */

.fundacion-home .fh-section {
    padding: 85px 6%;
}

.fundacion-home .fh-section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.fundacion-home .fh-section-heading h2 {
    margin: 0 0 17px;
    color: var(--fh-primary-dark);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.2;
}

.fundacion-home .fh-section-heading p {
    margin: 0;
    color: var(--fh-muted);
    font-size: 1.05rem;
}


/* =========================================
   BLOQUES DE IMAGEN Y TEXTO
   ========================================= */

.fundacion-home .fh-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 75px;
    max-width: 1200px;
    margin: 0 auto;
}

.fundacion-home .fh-split.fh-reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.fundacion-home .fh-reverse .fh-image {
    order: 2;
}

.fundacion-home .fh-reverse .fh-content {
    order: 1;
}

.fundacion-home .fh-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--fh-radius);
    background: var(--fh-primary-light);
    box-shadow: var(--fh-shadow);
}

.fundacion-home .fh-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fundacion-home .fh-image:hover img {
    transform: scale(1.035);
}

.fundacion-home .fh-content {
    max-width: 510px;
}

.fundacion-home .fh-content h2 {
    margin: 0 0 20px;
    color: var(--fh-primary-dark);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.fundacion-home .fh-content p {
    margin: 0;
    color: var(--fh-muted);
    font-size: 1.05rem;
}


/* =========================================
   BLOQUE EMPRESAS
   ========================================= */

.fundacion-home .fh-business {
    position: relative;
    padding: 55px 7%;
    background: var(--fh-primary-dark);
}

.fundacion-home .fh-business-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.fundacion-home .fh-business h2 {
    margin: 0 0 12px;
    color: var(--fh-white);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.fundacion-home .fh-business p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}


/* =========================================
   FORMACIÓN
   ========================================= */

.fundacion-home .fh-training {
    background: var(--fh-background);
}


/* =========================================
   BANNER WHATSAPP
   ========================================= */

.fundacion-home .fh-whatsapp {
    padding: 20px 6%;
    background: var(--fh-white);
}

.fundacion-home .fh-whatsapp a {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--fh-radius);
}

.fundacion-home .fh-whatsapp img {
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.fundacion-home .fh-whatsapp a:hover img {
    transform: scale(1.015);
}


/* =========================================
   PROYECTOS
   ========================================= */

.fundacion-home .fh-projects {
    background: var(--fh-background);
}

.fundacion-home .fh-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.fundacion-home .fh-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--fh-radius);
    background: var(--fh-white);
    box-shadow: var(--fh-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fundacion-home .fh-project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(27, 63, 99, 0.13);
}

.fundacion-home .fh-project-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 20px;
    background: var(--fh-primary-dark);
}

.fundacion-home .fh-project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fundacion-home .fh-project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 25px;
}

.fundacion-home .fh-project-content h3 {
    margin: 0 0 15px;
    color: var(--fh-primary-dark);
    font-size: 1.25rem;
    line-height: 1.35;
}

.fundacion-home .fh-project-content p {
    flex: 1;
    margin: 0 0 25px;
    color: var(--fh-muted);
    font-size: 0.95rem;
}

.fundacion-home .fh-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fh-orange);
    font-size: 0.9rem;
    font-weight: 700;
    transition: gap 0.25s ease, color 0.25s ease;
}

.fundacion-home .fh-card-link:hover {
    gap: 16px;
    color: var(--fh-orange-dark);
}


/* =========================================
   CONÓCENOS
   ========================================= */

.fundacion-home .fh-about {
    background: var(--fh-white);
}

.fundacion-home .fh-about-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.fundacion-home .fh-about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 235px;
    padding: 25px 15px;
    border: 1px solid #e8edf3;
    border-radius: var(--fh-radius);
    color: var(--fh-text);
    background: var(--fh-white);
    text-align: center;
    transition: transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.fundacion-home .fh-about-card:hover {
    transform: translateY(-6px);
    border-color: var(--fh-primary);
    box-shadow: var(--fh-shadow);
}

.fundacion-home .fh-about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--fh-primary-light);
    transition: background 0.3s ease;
}

.fundacion-home .fh-about-card:hover .fh-about-icon {
    background: #d8eafa;
}

.fundacion-home .fh-about-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.fundacion-home .fh-about-card h3 {
    margin: 0 0 10px;
    color: var(--fh-primary-dark);
    font-size: 1.1rem;
}

.fundacion-home .fh-about-card > span {
    color: var(--fh-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.fundacion-home .fh-about-card > span span {
    color: var(--fh-orange);
    font-weight: 700;
}


/* =========================================
   ACCESIBILIDAD Y FOCUS
   ========================================= */

.fundacion-home a:focus-visible {
    outline: 3px solid var(--fh-orange);
    outline-offset: 4px;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1000px) {

    .fundacion-home .fh-section {
        padding: 70px 5%;
    }

    .fundacion-home .fh-split,
    .fundacion-home .fh-split.fh-reverse {
        gap: 40px;
    }

    .fundacion-home .fh-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fundacion-home .fh-about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .fundacion-home .fh-hero {
        padding: 80px 6%;
        min-height: 480px;
    }

    .fundacion-home .fh-hero h1 {
        font-size: clamp(2.2rem, 7vw, 3rem);
        letter-spacing: -1px;
    }

    .fundacion-home .fh-section {
        padding: 60px 6%;
    }

    .fundacion-home .fh-section-heading {
        margin-bottom: 35px;
    }

    .fundacion-home .fh-split,
    .fundacion-home .fh-split.fh-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fundacion-home .fh-reverse .fh-image,
    .fundacion-home .fh-reverse .fh-content {
        order: initial;
    }

    .fundacion-home .fh-image,
    .fundacion-home .fh-image img {
        min-height: 250px;
    }

    .fundacion-home .fh-content {
        max-width: none;
    }

    .fundacion-home .fh-business {
        padding: 45px 7%;
    }

    .fundacion-home .fh-business-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .fundacion-home .fh-project-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .fundacion-home .fh-project-image {
        height: 220px;
    }

    .fundacion-home .fh-about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .fundacion-home .fh-about-card {
        min-height: 205px;
        padding: 20px 10px;
    }

    .fundacion-home .fh-about-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .fundacion-home .fh-about-icon img {
        width: 40px;
        height: 40px;
    }

    .fundacion-home .fh-about-card h3 {
        font-size: 1rem;
    }

    .fundacion-home .fh-about-card > span {
        font-size: 0.78rem;
    }

    .fundacion-home .fh-whatsapp {
        padding: 15px 5%;
    }
}

@media (max-width: 380px) {

    .fundacion-home .fh-about-grid {
        grid-template-columns: 1fr;
    }

    .fundacion-home .fh-about-card {
        min-height: 190px;
    }

    .fundacion-home .fh-hero {
        padding: 60px 5%;
    }

    .fundacion-home .fh-hero h1 {
        font-size: 2rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    .fundacion-home *,
    .fundacion-home *::before,
    .fundacion-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}