/* =========================================
   AFOVIC - HISTORIA
========================================= */

:root {
    --afovic-primary: #8b1020;
    --afovic-secondary: #c99a3d;
    --afovic-dark: #171717;
    --afovic-text: #555;
    --afovic-light: #f8f6f2;
    --afovic-white: #ffffff;
    --afovic-border: #e8e1d8;
}


/* =========================================
   SECCIÓN PRINCIPAL
========================================= */

.afovic-section {
    position: relative;
    padding: 100px 20px;
    background: var(--afovic-light);
    overflow: hidden;
}

.afovic-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}


/* =========================================
   ENCABEZADO
========================================= */

.afovic-header {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
}

.afovic-tag {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--afovic-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.afovic-header h2 {
    margin: 0 0 20px;
    color: var(--afovic-dark);
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.1;
    font-weight: 300;
}

.afovic-header h2 strong {
    display: block;
    color: var(--afovic-primary);
    font-weight: 800;
}

.afovic-header p {
    margin: 0;
    color: var(--afovic-text);
    font-size: 17px;
}


/* =========================================
   HISTORIA
========================================= */

.afovic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}


/* =========================================
   IMAGEN
========================================= */

.afovic-image {
    position: relative;
}

.afovic-image img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
}

.afovic-year {
    position: absolute;
    right: -25px;
    bottom: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 125px;
    height: 125px;

    background: var(--afovic-primary);
    color: var(--afovic-white);

    border-radius: 50%;
    border: 8px solid var(--afovic-light);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.afovic-year strong {
    font-size: 30px;
    line-height: 1;
}

.afovic-year span {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================
   CONTENIDO
========================================= */

.afovic-subtitle {
    color: var(--afovic-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.afovic-content h3 {
    margin: 15px 0 25px;
    color: var(--afovic-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.afovic-content h3 span {
    color: var(--afovic-primary);
}

.afovic-content p {
    color: var(--afovic-text);
    font-size: 16px;
    line-height: 1.8;
}

.afovic-content p strong {
    color: var(--afovic-dark);
}


/* =========================================
   ESTADÍSTICAS
========================================= */

.afovic-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 35px;
}

.stat {
    padding: 20px 10px;
    background: var(--afovic-white);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--afovic-border);
}

.stat strong {
    display: block;
    color: var(--afovic-primary);
    font-size: 28px;
    font-weight: 800;
}

.stat span {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 11px;
    text-transform: uppercase;
}


/* =========================================
   DANZAS
========================================= */

.afovic-dances {
    margin-top: 110px;
}

.dance-title {
    margin-bottom: 30px;
}

.dance-title span {
    color: var(--afovic-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dance-title h3 {
    margin: 8px 0 0;
    color: var(--afovic-dark);
    font-size: 36px;
}

.dance-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dance-card {
    position: relative;
    min-height: 170px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: var(--afovic-primary);
    border-radius: 15px;
    overflow: hidden;

    transition: .3s ease;
}

.dance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}

.dance-card span {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255,255,255,.35);
    font-size: 35px;
    font-weight: 800;
}

.dance-card h4 {
    margin: 0;
    color: var(--afovic-white);
    font-size: 25px;
}


/* =========================================
   RECONOCIMIENTOS
========================================= */

.afovic-awards {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    margin-top: 110px;
    padding: 60px;
    background: var(--afovic-dark);
    border-radius: 25px;
}

.awards-text h3 {
    margin: 15px 0;
    color: var(--afovic-white);
    font-size: 38px;
    line-height: 1.2;
}

.awards-text h3 strong {
    color: var(--afovic-secondary);
}

.awards-text p {
    color: #bbb;
    line-height: 1.8;
}

.award {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.award:last-child {
    border-bottom: 0;
}

.award > span {
    font-size: 30px;
}

.award strong {
    display: block;
    color: var(--afovic-white);
    font-size: 17px;
}

.award small {
    display: block;
    margin-top: 5px;
    color: #999;
}


/* =========================================
   FE
========================================= */

.afovic-faith {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 80px;
    padding: 50px;

    background: var(--afovic-white);
    border-radius: 20px;

    border-left: 5px solid var(--afovic-secondary);
}

.faith-icon {
    flex-shrink: 0;

    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--afovic-primary);
    color: var(--afovic-white);

    font-size: 30px;
}

.afovic-faith span {
    color: var(--afovic-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.afovic-faith h3 {
    margin: 8px 0 12px;
    color: var(--afovic-dark);
    font-size: 30px;
}

.afovic-faith h3 strong {
    color: var(--afovic-primary);
}

.afovic-faith p {
    margin: 0;
    color: var(--afovic-text);
    line-height: 1.7;
}


/* =========================================
   FOOTER DE LA SECCIÓN
========================================= */

.afovic-footer {
    max-width: 800px;
    margin: 80px auto 0;
    text-align: center;
}

.afovic-footer p {
    color: #666;
    line-height: 1.8;
}

.afovic-footer h3 {
    margin-top: 25px;
    color: var(--afovic-primary);
    font-size: 25px;
    letter-spacing: 1px;
}

.afovic-footer h3 span {
    color: var(--afovic-secondary);
    margin: 0 8px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .afovic-section {
        padding: 70px 20px;
    }

    .afovic-grid,
    .afovic-awards {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .afovic-image img {
        height: 450px;
    }

    .afovic-year {
        right: 20px;
    }

    .dance-list {
        grid-template-columns: 1fr;
    }

    .afovic-awards {
        padding: 40px 30px;
    }
}


@media (max-width: 600px) {

    .afovic-section {
        padding: 55px 15px;
    }

    .afovic-header {
        margin-bottom: 45px;
    }

    .afovic-image img {
        height: 380px;
        border-radius: 15px;
    }

    .afovic-year {
        width: 95px;
        height: 95px;
        border-width: 5px;
    }

    .afovic-year strong {
        font-size: 23px;
    }

    .afovic-stats {
        grid-template-columns: 1fr;
    }

    .afovic-awards {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .afovic-faith {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 25px;
    }

    .afovic-faith h3 {
        font-size: 25px;
    }

    .award {
        align-items: flex-start;
    }
}