body{
    background-image: url('../recursos/background/bk_purple.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.titulo-page{
    background-image: url('../recursos/fondomateriales.jpg');
    background-size: cover; 
    z-index: 2;
}

.descripcion-page p{
    color: #FFFFFF;
}

.acordeon-materiales{
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.accordion-collapse{
    height: 720px;
    overflow-y: auto; 
    border: none;
    padding: 20px; 
}

.acordeon-materiales .accordion{
    width: 75%;
}

.accordion-button{
    color: #332065 !important;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex !important;
    justify-content: center !important;
}

.accordion-button[aria-expanded="true"] {
    background-color: #8A69D4; 
    color: #E7BD4F !important;
    display: flex;
    text-align: center;
    justify-content: center;
}

.accordion-item{
    background-color: #8A69D4;
    border: #332065 2px solid;
}

@media screen and (max-width:768px) {
    .acordeon-materiales{
        width: 100%;
        padding: 0;
    }

    .acordeon-materiales .accordion{
        width: 95%;
    }

    .accordion-collapse{
        height: 720px;
        overflow-y: auto; 
        border: none;
        padding: 0px; 
    }

    .accordion-body{
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}


/* Estilo para las secciones de materiales */
.titulo-seccion {
    background-color: #332065; 
    color: white;
    text-align: left;
    padding: 5px;
    padding-left: 50px;
    margin-bottom: 20px !important;
}


@media screen and (max-width:768px) {
    .titulo-seccion {
        background-color: #332065; 
        color: white;
        text-align: left;
        padding: 3px;
        padding-left: 20px;
    }
}
/* Estilo para las tarjetas de cada seccion  */

.container{
    position: relative;
    display: flex;
}
.container .row{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.container .row .tarjeta {
    margin: 10px;
    width: 400px; 
    height: 200px;
    padding: 0;
    overflow: hidden;
    background-color: #ade5ff; /* ******************************************************* */
}

.container .row .tarjeta .img-fluid{ 
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.container .card-body { 
    position: relative;
    padding: 10px;
    text-align: center;

}

.container .card-body h5{ 
    color: #332065;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    max-width: 150px;
}
.container .card-body a{ 
    color: #ffffff;
    font-size: 0.8rem;
    background-color: #FB4D44;
    border: 0px;
    width: 100%;
    margin: 0px;
    padding: 2px;
    word-wrap: break-word;
    margin-bottom: 0;
}

.container .card-body a:hover{ 
    color: #ffffff;
    background-color: #eb2c22; /*  *****************************************************/
    border: 0px;
}   

@media screen and (max-width:768px) {
    .container .row .tarjeta {
        margin: 10px 0 0 0;
        width: 300px; 
        height: 100%;
        padding: 0;
    }
    .container .row .tarjeta .col-md-7{
        height: 140px;
        margin: 0;
        padding: 0;
        width: 50% !important;
    }

    .container .row .tarjeta .col-md-5{
        height: 140px;
        width: 50% !important;
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: 0px;
        padding-top: 0px;
        align-items: center;
    }
    .container .card-body { 
        position: relative;
        width: 100%;
        height: 150px;
        margin: 0;
        padding:0 0.7rem ; 
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        max-width: 160px;
        overflow: hidden;
        margin-top: 0px;
    }

    .container .card-body h5{ 
        color: #332065;
        font-size: 1rem;
        margin-bottom: 0.3rem;
        overflow-wrap: break-word;
    }

    .container .card-body a{ 
        color: #ffffff;
        font-size: 0.7rem;
        background-color: #FB4D44;
        border: 0px;
        width: 100%;
        margin: 0px;
        padding: 1px;
        word-wrap: break-word;
        margin-bottom: 0;
    }
}


/* Estilo para las tarjetas de video */
.videos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;

}
.card-video {
    display: flex;
    width: 700px;
    height: 300px;
    border:  0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
    background-color: #ade5ff;
    overflow: hidden;
}

.card-content {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 40%;
}

.card-content h3 {
    margin-top: 0;
    color: #332065;
    font-size: 34px;
    font-weight: 700;
}

.card-content p {
    color: #332065;
    font-size: 20px;
}

.video-container {
    position: relative;
    width: 60%;
    display: block;
    height: 100%;
    margin: 0 auto;
    max-width: 100%;
}

.video-container iframe {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-content a{
    border: 1px solid #3498db;
    border-radius: 5px;
    padding:  0 5px;
}

.video-link {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #3498db;
}

.video-link:hover {
    text-decoration: underline;
}

@media screen and (max-width:768px) {
    .videos{
        width: 100%;
    
    }
    .card-video {
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 200px;
        border:  0;
        border-radius: 8px;
        margin: 20px;
        background-color: #FFFFFF;
    }
    
    .card-content {
        display: none;
    }
    
    
    .video-container {
        position: relative;
        width: 100%;
        height: 0;
    }
    
    .video-container iframe {
        position: absolute;
        width: 100%;
        height: 200px;
        border: none;
    }
    
    .video-link {
        display: block;
        margin-top: 10px;
        text-decoration: none;
        color: #3498db;
    }
    
    .video-link:hover {
        text-decoration: underline;
    }
}
