/* Se importan las fuentes de google */
#comhonor {
    .text-block {
        max-width: 1140px;
        margin: 7rem 0;
        display: flex;
        flex-wrap: wrap;

        & .subtitle {
            display: flex;
            flex-wrap: wrap;
            flex: 0 0 100%;
            justify-content: center;

            & h3 {
                flex: 0 0 100%;
                color: var(--primary);
                font-weight: 600;
                font-size: 16px;
                line-height: 100%;
                letter-spacing: 0%;
                text-align: center;
                margin: 0;
            }
            & .border-decor {
                flex: 0 0 100%;
                position: relative;
                padding: 2px 0;

                &::before {
                    left: 50%;
                    top: 50%;
                    display: block;
                    content: '';
                    width: 40px;
                    height: 2px;
                    background-color: var(--primary);
                    margin: 0 auto 0.5rem;
                }
            }
            & h2 {
                font-weight: 400;
                font-size: 40px;
                line-height: 100%;
        
                text-align: center;
            }
        }

        .inner-container {
            flex: 0 0 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;

            > .card {
                flex: 0 0 calc((100% - 4rem) / 3);
                display: flex;
                flex-wrap: wrap;
                padding: 1.5rem 2rem;
                border-radius: 12px;
                transition: box-shadow 0.3s ease-in-out;
                border: 1px solid var(--tertiary-light);
                align-content: space-between;

                &:hover {
                    box-shadow: 1px 1px 15px 0px var(--tertiary-light);
                }
                
                img {
                    max-width: 80%;
                    margin-left: auto;
                    margin-right: auto;
                }

                h2 {
                    flex: 0 0 100%;
                    text-align: center;
                    font-weight: 400;
                    font-size: 20px;
                    line-height: 100%;
                    letter-spacing: 0%;
                    margin: 1rem 0 ;
                }
                
                h4{
                    flex: 0 0 100%;
                    text-align: center;
                    margin-inline-start: 0px;
                    margin-inline-end: 0px;
                    font-weight: bold;
                    unicode-bidi: isolate;
                }

                p {
                    text-align: center;
                    margin: 8px 0px;
                    font-weight: 400;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: 0%;
                }

                .btn-container {
                    margin-top: 2rem;
                    /* display: flex; */
                    flex-wrap: wrap;
                    gap: 1rem;
                    width: 100%;
                }

                .card-subtitle {
                    color: #fb3809;
                    border-radius: 8px;
                    font-weight: 900;
                    font-size: 18px;
                }
            }
        }

        h2 {
            transition: 0.3s ease;
        }
        .card:hover h2 {
            color: var(--primary);
        }
    }
}

@media (max-width: 747px) {
    #comhonor{
        max-width: 100%;
        width: 100%;
       /* margin: 7rem 1rem;*/

        .inner-container {
            > .card {
                flex: 0 0 100%;
                padding: 2rem 1rem;

                .btn-container {
                    width: 100%;
                    flex: 0 0 100%;
                }
            }
        }
    }
}

@media (max-width: 1170px) {
    #comhonor .text-block .inner-container> .card {
        flex: 0 0 calc((100% - 4rem) / 1);
    }
}