.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;
    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;
    height: auto !important;   
    max-height: none !important; 
    overflow: visible !important; 
}

.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;
       height: 30vh;
       object-fit: cover;
       
    }

    .contenedor-tarjetas{
       
          height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 30px;
    }

    .contenedor-fechas{
        max-height: 210px;
        margin-bottom: 15px;
    }
}
/* Botones de acción para tarea entregada */
.tarea-acciones-entregada {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-tarea-accion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-tarea-accion i {
    font-size: 16px;
}
.btn-remplazar {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}
.btn-remplazar:hover {
    background-color: rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
}
.btn-ver {
    background-color: rgba(0, 145, 44, 0.15);
    color: #00912c;
}
.btn-ver:hover {
    background-color: rgba(0, 145, 44, 0.25);
    transform: scale(1.05);
}
.btn-eliminar {
    background-color: rgba(226, 54, 83, 0.15);
    color: #e23653;
}
.btn-eliminar:hover {
    background-color: rgba(226, 54, 83, 0.25);
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .tarea-acciones-entregada {
        justify-content: center;
    }
    .btn-tarea-accion {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 100px;
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .tarea-acciones-entregada {
        justify-content: center;
    }
    .btn-tarea-accion {
        padding: 9px 18px;
        font-size: 14px;
    }
}
/* Estilos para grabaciones */
.doc-slider-wrapperr-container {
    width: 100%;
    max-height: none !important;
    overflow: visible !important; 
}

.grabacion-lista-container {
    width: 100%;
    margin-bottom: 12px; 
    overflow: visible !important; 
    flex-shrink: 0; 
}

.grabacion-sliderr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    overflow: visible !important; 
}

.grabacion-slider-item {
    width: 100%;
    flex-shrink: 0; 
}

.grabacion-eleccion {
    display: block;
    cursor: pointer;
    width: 100%;
}

.grabacion-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.grabacion-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.grabacion-card:hover {
    background-color: #e9ecef;
    border-color: #A690A4;
}

.grabacion-card:active {
    transform: scale(0.98);
}

.grabacion-eleccion input:checked + .grabacion-card {
    background-color: #A690A4;
    border-color: #A690A4;
}

.grabacion-eleccion input:checked + .grabacion-card .grabacion-icono {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.grabacion-eleccion input:checked + .grabacion-card .grabacion-titulo {
    color: white !important;
    font-weight: 600;
}

.grabacion-eleccion input:checked + .grabacion-card .grabacion-info {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Contenido de la tarjeta */
.grabacion-contenido {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grabacion-titulo {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 3em;
    line-height: 1.5em;
}

.grabacion-info {
    font-size: 13px;
    color: #6c757d !important;
    margin: 0;
    padding: 0;
}

.grabacion-icono {
    font-size: 24px;
    color: #A690A4;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(166, 144, 164, 0.15);
    border-radius: 8px;
}

/* Contenedor del video */
.grabacion-video-container {
    width: 100%;
    margin-top: 15px; 
    flex-shrink: 0; 
}
.sesion-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #dee2e6;
}

.sesion-card__fila-superior {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sesion-card__icon-wrapper {
    background-color: #A690A4;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.sesion-card__icon {
    font-size: 22px;
}

.sesion-card__body {
    flex: 1;
    min-width: 0;
}

.sesion-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.sesion-card__meta {
    font-size: 14px;
    color: #6c757d;
}

.contenedor-video-grabaciones {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.contenedor-video-grabaciones iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Placeholder */
.grabacion-placeholder {
    width: 100%;
    margin-top: 20px;
}

.claseactiva-warning {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 15px;
}

.claseactiva-warning i {
    font-size: 20px;
}

/* Responsive movil */
@media (max-width: 768px) {
    .doc-slider-wrapperr-container {
        overflow: visible !important; 
        height: auto !important;
        min-height: 0 !important;
    }
    .grabacion-lista-container {
        margin-bottom: 15px; 
        overflow: visible !important;
        height: auto !important;
    }
    
    .grabacion-sliderr {
        overflow: visible !important;
        height: auto !important;
    }
    
    .grabacion-card {
        padding: 12px;
    }
    
    .grabacion-titulo {
        font-size: 15px;
        max-height: 2.8em;
    }
    
    .grabacion-info {
        font-size: 12px;
    }
    
    .grabacion-icono {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .sesion-card {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .sesion-card__icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .sesion-card__icon {
        font-size: 20px;
    }
    
    .sesion-card__title {
        font-size: 16px;
    }
    
    .sesion-card__meta {
        font-size: 13px;
    }
    
    .contenedor-video-grabaciones iframe {
        height: 250px;
    }
    .grabacion-video-container {
        margin-top: 15px;
        position: relative; 
    }
}
/* Responsive tablet*/
@media (min-width: 769px) and (max-width: 1023px) {
    .contenedor-video-grabaciones iframe {
        height: 350px;
    }
}

/* Responsive desktop */
@media (min-width: 1024px) {
    .grabacion-sliderr {
        gap: 15px;
    }
    
    .grabacion-card {
        padding: 18px;
    }
}
@media (max-width:768px){
  .video-header-movil{
      margin-top: 10px;
  }

  .video-header-movil .video-contenido-clase{
      font-size: 15px;
      color: #6c757d;
  }

  .video-header-movil i{
      margin-right: 6px;
      color: #A690A4;
  }
}
.contenedor-video-grabaciones {
    min-height: 260px; 
    background: #000;
}
.contenedor-video-grabaciones {
    min-height: 260px !important;
}

/* Responsive tablet*/
@media (min-width: 769px) and (max-width: 1023px) {
    .contenedor-video-grabaciones iframe {
        height: 350px;
    }
}

/* Responsive desktop */
@media (min-width: 1024px) {
    .grabacion-sliderr {
        gap: 15px;
    }
    
    .grabacion-card {
        padding: 18px;
    }
}
@media (max-width:768px){
  .video-header-movil{
      margin-top: 10px;
  }

  .video-header-movil .video-contenido-clase{
      font-size: 15px;
      color: #6c757d;
  }

  .video-header-movil i{
      margin-right: 6px;
      color: #A690A4;
  }
}
.contenedor-video-grabaciones {
    min-height: 260px; 
    background: #000;
}
.contenedor-video-grabaciones {
    min-height: 260px !important;
}

@media screen and (min-width: 1024px) {
    
    /* Contenedor de la columna izquierda - altura fija */
    .contenedor-general {
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
    
    /* Contenedor principal derecho - scroll interno */
    .contenedor-general-contenido {
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 20px !important;
    }
    
    /* Wrapper del video desktop */
    .video-desktop-wrapper {
        max-height: 100% !important;
        overflow: visible !important;
    }
    
    /* Contenedor del video - altura fija controlada */
    .contenedor-video-grabaciones {
        width: 100% !important;
        height: 400px !important;
        max-height: 400px !important;
        min-height: 400px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .contenedor-video-grabaciones iframe {
        width: 100% !important;
        height: 400px !important;
        max-height: 400px !important;
        border: none !important;
        display: block !important;
    }
    
    /* Prevenir cualquier scroll en el body */
    body {
        overflow-x: hidden !important;
    }
}

/* Para pantallas MUY grandes (1600px+) */
@media screen and (min-width: 1600px) {
    .contenedor-video-grabaciones,
    .contenedor-video-grabaciones iframe {
        height: 480px !important;
        max-height: 480px !important;
    }
}


