.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .carousel-card {
    width: 100%;
    transition: opacity 0.5s ease;
    display: none; /* Oculta todas las tarjetas por defecto */
  }
  
  .carousel-card.active {
    display: block; /* Solo se muestra la tarjeta activa */
  }
  
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #A690A4; /* Color personalizado */
    background: none; /* Elimina el background */
    border: none; /* Sin bordes */
    padding: 10px;
    cursor: pointer;
    z-index: 1;
  }
  
  .nav-btn:hover {
    color: #A690A4; /* Mantén el color al pasar el mouse */
    background: none; /* Sin cambios en el background */
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  

p.nombre-curso {
    margin-left: 220px;
    border-width: 2px;
    line-height: 30px;
    border-radius: 10px;
    border-color: lightgray;
    border-style: solid;
    width: 160px;
    height: 35px;
    text-align: center;
}

.custom-row {
    max-width: 1600px !important; /* Cambia este valor según el ancho deseado */
    padding-top: 20px;
    padding-bottom: 20px;
}

.principal2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.contenedor-tarjetas {
    border-color: #9099A6 !important;
    border-width: 2px !important;
    padding-right: 35px;
    margin-bottom: 30px;
    min-height: 610px !important;
    max-height: 670px; 
    overflow-y: auto;
}

.contenedor-fechas {
    border-color: #9099A6 !important;
    border-width: 2px !important;
    padding-right: 35px;
    margin-bottom: 30px;
    min-height: 305px !important;
    max-height: 335px; 
    overflow-y: auto;
}

.titulo-curso-activo {
    font-family: 'PT', serif;
    color: #A690A4;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    padding-top: 10px;
}

.clases {
    flex: 1;
    margin-right: 20px;
}

.card-custom{
    border-width: 2px;
    border-color: #9099A6;
    background-color: #EDF0ED;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 5px 5px 7px #A690A4;
}


.clases2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detalles-cursoA {
    border-color: lightgray;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    margin-left: 50px;
    width: 480px;
    height: 150px;
    display: flex;
    margin-top: 25px;
}

.detalles1 {
    margin-top: 15px;
    margin-left: 10px;
    display: flex;
    font-size: 16px;
}

.textodet {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0px;
    margin-left: 25px;
}

.textodet2 {
    font-family: 'Roboto';
    font-size: 20px;
    font-weight: 400;
    padding-left: 20px;
    padding-right: 20px;
    color: #9099A6;
}

.imgcurso{
    margin-top: 15px;
    margin-bottom: 15px;
    min-height: 120px;
    max-height: 150px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenedorPrincipal {
    border-color: #A690A4;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    justify-content: center;
    height: 280px;
    width: 550px;
    padding: 70px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50px);
    grid-gap: 40px;
}

.contenedorPrincipal2 {
    border-width: 2px;
    border-color: #A690A4;
    background-color: #EDF0ED;
    border-style: solid;
    border-radius: 10px;
    justify-content: center;
    height: 220px;
    min-width: 300px;
    max-width: 600px;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50px);
    grid-gap: 40px;
}

.contenedorPrincipal3 {
    border-width: 2px;
    border-color: #A690A4;
    background-color: #EDF0ED;
    border-style: solid;
    border-radius: 10px;
    justify-content: center;
    height: 220px;
    overflow-y: auto;
    min-width: 300px;
    max-width: 600px;
    padding: 20px;
    display: grid;
}

.botonenlaces {
    border-color: #A690A4;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    width: 220px;
    height: 40px;
    text-align: center;
    line-height: 35px;
}

.botonenlaces3{
    border-width: 2px;
    border-color: lightgray;
    background-color: #90A692;
    color: white;
    border-radius: 10px;
    min-width: 120px;
    max-width: 300px;
    height: 40px;
    text-align: center;
    line-height: 35px;
    font-weight: 400;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
}

.botonenlaces3:hover {
    background-color: #A690A4;
    border-color: white;
    transform: scale(1.2);
}

.botonenlaces3:hover::after {
    color: black !important;
}

.botonenlaces2 {
    border-color: lightgray;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    min-height: 40px;
    text-align: center;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    display: inline-block;
    white-space: nowrap;
    line-height: 40px;
    width: auto;
}

.botonenlaces4{
    border-width: 2px;
    border-color: lightgray;
    background-color: #90A692;
    color: white;
    border-radius: 10px;
    min-width: 100px;
    max-width: 250px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-weight: 350;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
}

.botonenlaces4:hover {
    background-color: #A690A4;
    border-color: white;
    transform: scale(1.2);
}

.botonenlaces4:hover::after {
    color: black !important;
}


@media (min-width: 769px) and (max-width: 1023px) {
    
    .principal2 {
        flex-direction: column;
    }
    
    .contenedor-tarjetas{

        margin-bottom: 30px;
    }

    .contenedor-fechas{

        margin-bottom: 30px;
    }

    .clases, .clases2 {
        margin-right: 0;
        width: 100%;
    }

    .detalles-cursoA {
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
    }

    .contenedorPrincipal {
        padding: 40px;
        width: 100%;
        margin-top: 30px;
    }

    .botonenlaces, .botonenlaces2 {
        width: 60%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    p.nombre-curso{
        margin-left: 110px;
    }
    .principal2 {
        flex-direction: column;
        align-items: center;
    }

    .clases, .clases2 {
        margin: 0;
        width: 100%;
    }

    .detalles-cursoA {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        height: auto;
    }

    .contenedorPrincipal {
        width: 100%;
        padding: 20px;
        margin-top: 30px;
    }

    .botonenlaces, .botonenlaces2 {
        width: 100%;
        margin-top: 20px;
    }
    .imgcurso {
       width: 80%;
       margin-top: 25px;
       margin-left: 40px;
       width: 50vw; /* 50% del ancho de la ventana gráfica */
       height: 30vh; /* 30% de la altura de la ventana gráfica */
       object-fit: cover;
       
    }

    .contenedor-tarjetas{
        max-height: 420px;
        margin-bottom: 30px;
    }

    .contenedor-fechas{
        max-height: 210px;
        margin-bottom: 15px;
    }
}


