* {
    margin: 0px;
    padding: 0px;
}

.headerFormacion {
    background-image: url(../images/backgrounFormacion.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 650px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: visible;
}

.headerFormacion::before {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.contenidointeriorheaderformacion {
    width: 85%;
    max-width: 65em;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
}


.contenidoheaderformacion {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-weight: 400;
    margin-top: 5vh;
}

.textoinformacionheader {
    width: 96%;
    margin: 0px auto;
    font-size: 18px;
}

.Buttonsheaderformacion {
    background: var(--color-buttondonar);
    border: none;
    border-radius: 20px;
    width: 10rem;
    color: var(--color-whiteforwhite);
    padding: 7px 20px 7px 20px;
    font-size: 18px;
    font-weight: 600;
}

#titleheaderformacion {
    font-weight: 700;
    width: 75%;
    color: var(--color-whiteforwhite);
}

#contenidoheaderformacion {
    width: 80%;
    color: var(--color-whiteforwhite);

}


.cardsheader {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 5vh;
}

.info-card {
    width: 244px;
    background: white;
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Ajusta el espaciado entre los elementosa */
}

.info-card h4 {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    text-align: left;
    color: var(--color-text-grisprimario);
}

.info-card p {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.5px;
    text-align: left;
    color: var(--color-text-grisprimario);
}

@media (min-width: 320px) and (max-width:500px){
    .contenidointeriorheaderformacion {
        width: 320px;
        height: 172px;
        max-width: 504px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 7rem;
    }
    .info-card p, .info-card h4{
        width: 186px;
        gap: 8px;
        line-height: 24px;

    }
    .contenidoheaderformacion {
        font-weight: 400;
        size: 18px;
        line-height: 24px;
    }

    .cardsheaderformacion {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .cardsheader {
        width: 226px;
        height: 139px;
        gap: 8px;
        border-radius: 20px;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    /* .info-card {
        display: none;
    } */

    #unicacardvisible {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 226px;
        height: 139px;
        margin-top: 15px;
        /* Espaciado extra debajo del botón */
    }

    .textoinformacionheader {
        width: 100%;
        text-align: center;
        justify-items: center;
    }

    #titleheaderformacion {
        width: 320px;
        height: 88px;
        font-size: 36px;
    }

    #contenidoheaderformacion {
        width: 320px;
        height: 72px;
        font-size: 18px;
    }
    /* Para que el carrusel tenga un tamaño adecuado en mobile */
    #cardsCarousel .carousel-item {
        /* display: flex; */
        justify-content: center;
        align-items: center;
        min-height: 200px;
    }

    #indicards-formation {
        margin-bottom: -2rem !important;
    }
}

@media(max-width:432px){
    .headerFormacion {
        height: 55rem;
    }

    #cardsGrid {
        display: none !important;
    }

    .contenidointeriorheaderformacion {
        width: 320px;
        height: 172px;
        max-width: 504px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 11rem;
    }
    #titleheaderformacion {
        width: 320px;
        height: 88px;
        font-size: 36px;
        text-align: center;
    }
    #contenidoheaderformacion {
        width: 320px;
        height: 72px;
        font-size: 18px;
    }
}

@media (min-width: 576px) and (max-width: 600px) {
    #cardsGrid {
        display: none !important;
    }
    /* Si quieres mostrar el carrusel en ese rango, asegúrate de que esté visible */
    #cardsCarousel {
        display: block !important;
    }
    .info-card svg{
        margin-left: 35% !important;
    }
}

@media(max-width: 600px) {
    #unicacardvisible {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 226px;
        height: 139px;
        margin-top: 15px;
    }

    .info-card h4 {
        width: 128px;
        font-weight: 700;
        font-size: 18px;
        letter-spacing: 0.5px;
        text-align: center;
        vertical-align: middle;
    }

    .info-card p {
        height: 83px;
        font-weight: 400;
        font-size: 18px;
        letter-spacing: 0.5px;
        text-align: center;
        vertical-align: middle;
    }

    #cardnotvisible {
        display: none !important;
    }

    .cardsheader {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .contenidointeriorheaderformacion {
        width: 320px;
        height: 172px;
        max-width: 504px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 7rem;
    }


    
    .contenidoheaderformacion{
        margin-top: 5vh;
    }

    .headerFormacion
    {
        height: 80vh;
    }
    #contenidoheaderformacion {
        width: 320px;
        height: 72px;
        font-size: 18px;
    }
    #titleheaderformacion {
        width: 320px;
        height: 88px;
        font-size: 36px;
    }
}

@media(max-width:601px){
    .headerFormacion {
        height: 46rem;
    }
    .contenidointeriorheaderformacion {
        width: 320px;
        height: 172px;
        max-width: 504px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 7rem;
    }
    #indicards-formation {
        margin-bottom: -4rem !important;
    }
}

@media (min-width: 760px) and (max-width:500px) {
    .headerFormacion {
        height: 35rem;
    }

    .contenidointeriorheaderformacion {
        width: 80%;
        margin: 0px auto;
        display: flex;
        flex-direction: column;
        margin-top: 2rem;
    }

    .cardsheader {
        width: 100%;
    }

    .textoinformacionheader {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    #titleheaderformacion {
        width: 60% !important;
        margin: 0px auto;
    }

    #contenidoheaderformacion {
        width: 100%;
    }

    .contenidoheaderformacion {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .contenidoheaderformacion{
        margin-top: 15vh;
    }
    .headerFormacion
    {
        height: 70vh;
    }
    .cardsheader{
        margin-top: 15vh;
    }
}

@media (max-width: 906px) {
    .cardsheader .info-card {
        display: none; /* Oculta todas las tarjetas */
    }

    .cardsheader .info-card:first-child {
        display: flex; /* Muestra solo la primera tarjeta */
    }

    .cardsheader {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column; /* Asegura que la tarjeta visible esté centrada */
    }
    .textoinformacionheader {
        width: 100%;
        margin: 0px auto;
        font-size: 18px;
        margin-top: 2rem;
    }
    .d-sm-block {
        display: block !important;
        margin-top: 2rem;
    }
}



