/**********************************************/
/* Bienvenida-inicio.CSS       */
/**********************************************/
/* ============================================= */
/* VARIABLES Y RESET */
/* ============================================= */
:root {
  --green-primary: #2b693d;
  --green-hover-primary: #295828;
  --gray-light: #f1f2f1;
  --text-gray: #555;
  --text-light-gray: #666;
  --border-color: #ccc;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.364);
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.39);
}

/* ============================================= */
/* ESTILOS GENERALES */
/* ============================================= */
#vue-content {
  background-color: #ffffffff; 
  padding-top: 90px; 
  padding-right: 0 !important; 
  padding-bottom: 0 !important; 
  padding-left: 0 !important;
}

.container-fluid.p-0 {
  min-width: 100%;
}

.row.tab-content {
  min-width: 100%; 
}

.row.div_ct {
  min-width: 100%;
}

.container-fluid.position-relative {
  overflow: hidden;
}

.widget-title,
.tareas h4,
.creditos-titulo,
.certificacion-container h4,
.card-title {
  font-family: 'GFS Didot', serif !important;
  align-items: center;
  justify-content: center;
}

body, p, span, div, button, select, input {
  font-family: 'Montserrat', sans-serif !important;
}

.p-0 {
  padding: 0px;
}

h2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================= */
/* COMPONENTES DE NAVEGACIÓN */
/* ============================================= */
.navbar-nav>li {
  visibility: hidden;
}

.regresar-sitio {
  display: block !important;
  visibility: visible !important;
}

.q,
#icon-cart {
  display: none;
}

/* ============================================= */
/* BOTONES Y ELEMENTOS INTERACTIVOS */
/* ============================================= */
.btn-primary,
.btn-primary:disabled,
.btn-primary:focus {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

.btn-primary:hover:not(:disabled),
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  border-color: var(--green-hover-primary);
  background: var(--green-hover-primary);
}

#btn-resources:hover {
  background: var(--green-hover-primary);
}

#btn-resources>h4:hover {
  color: white !important;
}

.continuar-btn {
  background: #748274;
  color: #ffffff;
  border: 2px solid #748274;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 500;
  transition: all .3s ease;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: auto;
  font-size: .75rem;
  line-height: 1rem;
}

.continuar-btn:hover {
  background: #5a695a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-explorar {
  background: #748274;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 500;
  transition: all .3s ease;
  border: 2px solid #748274;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: auto;
  font-size: 20px;
  line-height: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-explorar:hover {
  background: #5a695a;
  border-color: #5a695a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.mis-cursos-card .btn-detalles {
  background: transparent;
  color: #748274;
  border: 2px solid #748274;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 500;
  font-size: .75rem;
  line-height: 1rem;
}

.mis-cursos-card .progress-info {
  font-size: .75rem;
  line-height: 1rem;
  color: rgb(75 85 99);
}

.btn-detalles:hover {
  background-color: #4b5348;
  color: white;
  border: 2px solid #758272; 
  transform: translateY(-2px);
}

/* ============================================= */
/* TARJETAS DE CURSOS */
/* ============================================= */
.mis-cursos-card .card-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #748274 !important;
  margin-bottom: .5rem !important;
}

.mis-cursos-card .card-text {
  font-size: .875rem;
  line-height: 1.25rem;
  color: #4b5563;
  margin-bottom: 1rem !important;
}

.curso-card,
.course-card {
  overflow: hidden;
  display: flex; 
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #74827414;
  transition: all .3s ease;
  border: 1px solid #7482741a;
}

.card-webinar-fecha {
  display: flex;
  align-items: center;
  color: rgb(107 114 128);
  gap: .5rem;
  font-size: .75rem;
  line-height: 1rem;
}

.card-webinar-fecha p {
  font-size: .75rem;
}

.card.sin-sombra {
  box-shadow: none;
}

.card-custom {
  padding: 0 !important;
}

.course-image-container {
  position: relative; 
  width: 100%; 
  padding-top: 56.25%; 
  overflow: hidden;
}

.course-image {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}

.card-img img {
  width: 100%;
}

.card-info {
  position: relative;
  padding: 20px;
  text-align: center;
}

.card-title {
  color: #748274 !important;
  font-size: 1.2em;
  font-weight: 150;
  margin-bottom: 10px;
  min-height: 3.6rem;
  line-height: 1.3;
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

.mis-cursos-card .card-text {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-align: left;
  color: var(--text-gray);
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
  flex-grow: 1; 
  line-height: 1.4;
}

.course-card .card-body {
  padding: 16px; 
  flex-grow: 1;
}

.course-card p {
  color: var(--text-light-gray); 
  margin: 0;
}

.course-card .progress {
  height: 6px; 
  background-color: #f1f1f1;
}

.course-card .progress-bar {
  background-color: #758272;
}

.cortar-texto {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 5px;
}

/* ============================================= */
/* ETIQUETAS DE CATEGORÍA */
/* ============================================= */
.texto-encima {
  position: absolute;
  padding-top: .125rem;
  padding-bottom: .125rem;
  padding-left: .625rem;
  padding-right: .625rem;
  font-weight: 600;
  font-size: .75rem;
  line-height: 1rem;
  top: .75rem;
  left: .75rem;
  border-radius: 15px;
}

.texto-encima i {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.curso-talleres {
  color: #166534;
  background-color: #dcfce7;
}

.curso-diplomados {
  background-color: #f3e8ff; 
  color: #6b21a8; 
}

.curso-congreso {
  background-color: #ffedd5; 
  color: #9a3412; 
}

.curso-otros {
  background-color: #dbeafe; 
  color: #1e40af; 
}

/* ============================================= */
/* SECCIÓN PRINCIPAL Y FILTROS */
/* ============================================= */
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5em 0;
}

.main-content {
  padding-top: 20px; 
  padding-bottom: 20px;
}

.course-container {
  position: relative; 
  margin-bottom: 40px;
}

.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.select-fixed-container {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 180px;
  background: white;
  padding: 8px;
  border-radius: 6px;
}

.select-filter-bootstrap {
  font-weight: 400;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.1rem center !important;
  background-size: 16px 12px;
  font-family: 'Montserrat', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  box-shadow: 0 2px 12px #74827414;
  transition: all .3s ease;
  border: 1px solid rgba(116, 130, 116, .1);
  padding: .9rem .75rem !important;
  font-size: 15px;
  line-height: 1rem;
  width: 14rem;
  border-radius: 12px;
  height: auto;
}


.filter-tablet .d-inline-block {
  width: 250px;
}

.filter-tablet select {
  padding: 8px 15px; 
  height: 40px; 
  text-align: center;
  margin: 0 auto;
}

/* ============================================= */
/* SECCIÓN MÓVIL */
/* ============================================= */
.mobile-section {
  background-color: #ffffff;
}

.welcome-message-mobile {
  padding: 20px 15px 0 15px;
}

.welcome-message-mobile h4 {
  font-size: 28px; 
  font-weight: 600; 
  margin-bottom: 10px;
}

.welcome-message-mobile p {
  font-size: 16px; 
  margin-bottom: 20px;
}

.welcome-desktop h4 {
  text-align: center; 
  padding-top: 40px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 400;
  color: rgb(116 130 116) !important;
  margin-bottom: 0.5rem;
}

.welcome-desktop p {
  text-align: center; 
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
}

/* ============================================= */
/* TARJETAS DE CRÉDITOS */
/* ============================================= */
.card-creditos {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  padding: 1.5rem;
  cursor: pointer;
  flex: 0 0 auto;
  border: none;
  min-height: auto;
}

.card-creditos .card-body {
  padding: 16px;
}

.card-creditos h6 {
  display: flex; 
  gap: 10px; 
  align-items: center; 
  justify-content: left;
}

.card-creditos i {
  font-size: 19px; 
  background-color: var(--gray-light); 
  border-radius: 8px; 
  padding: 10px;
}

#progress_bar_certificacion {
  height: 10px;
}

.progress-meter {
  background-color: #98A393;
}

.food-coach-container-precise {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.icon-aligned {
  line-height: 1; /* Elimina espacio extra alrededor del icono */
  margin-top: 0.12rem; /* Ajuste milimétrico */
  font-size: 1.05em;
  vertical-align: middle;
}

.text-content-aligned {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.food-coach-title-aligned {
  font-family: 'GFS Didot', serif !important;
  color: #2c3e2c;
  font-weight: 600;
  margin: 0;
  line-height: 1;
  font-size: 1rem;
  /* Aseguramos que no haya padding/margin extra */
}

.credit-counter-aligned {
  font-family: inherit;
  color: inherit;
  font-weight: normal;
  margin: 0;
  font-size: 0.9em;
  line-height: 1.2;
}


/* ============================================= */
/* SECCIÓN DE TAREAS */
/* ============================================= */

.card-tarea {
  overflow: hidden; 
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #74827414;
  transition: all .3s ease;
  border: 1px solid rgba(116, 130, 116, .1);
}

.card-tarea .card-body {
  padding: 12px;
}

.tareas-header,
.tareas-header-desktop {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1.5rem;
}

.tareas-header h4,
.tareas-header-desktop h4 {
  font-size: 18px; 
  font-weight: 600; 
  margin: 0; 
  text-align: left; 
  flex: 1;
}

.tareas-header span,
.tareas-header-desktop span {
  display: inline-flex;
  gap: 2px;
}

.tareas-header i,
.tareas-header-desktop i {
  display: inline-block; 
  vertical-align: middle; 
  line-height: 1; 
  font-size: 20px;
}

.tareas-header-desktop i {
  font-size: 25px;
  color: #748274
}

.tareas-navegacion {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.btn-nav-tareas {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  color: #748274;
  background: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-nav-tareas:hover:not(:disabled) {
  background: #7482741a;
}

.btn-nav-tareas:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.btn-nav-tareas:hover:disabled {
  background: none !important;
  border: none !important;
}

.btn-nav-tareas i {
  font-size: 16px;
  line-height: 1;
}

.btn-nav-tareas i::before{
  line-height: 1.3;
}

.tareas-scroll-container {
  position: relative; 
  height: 300px; 
  overflow: hidden;
}

.tareas {
  background-color: #ffffff; 
  padding: 30px; 
  padding-top: 60px;
  position: sticky; 
}

.tareas .card-creditos {
  width: 100%; 
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #74827414;
  border: 1px solid rgba(116, 130, 116, .1);
  height: 180px;
}

.tareas .card-creditos h6 {
  display: flex; 
  gap: 10px;
  padding-top: 4px;
}

.card-tarea .slider-vertical {
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}
/* ============================================= */
/* LISTA DE TAREAS */
/* ============================================= */
.tarea-estado {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  display: flex;
  padding: .75rem;
  gap: .5rem;
}

.tarea-estado-icon-pendiente {
  width: 1rem;
  height: 1rem;
  color: rgb(234 179 8);/**/
  font-size: .9rem;
}
.tarea-estado-icon-atrasada {
  width: 1rem;
  height: 1rem;
  color: rgb(234, 8, 8);/**/
  font-size: .9rem;
}

.tarea-estado-detalle {
  font-size: 0.875rem;
}

.tarea-estado-detalle h4{
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif !important;
  margin-bottom: 0.25rem;
  line-height: 1.25rem;
}

.tarea-estado-detalle p {
  font-size: 0.75rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
  line-height: 1rem;
}

.estado {
  display: flex;
  align-items: center;
  margin-top: 5px;
  gap: 5px;
  height: 40px;
}

.estado .icono {
  font-size: 25px;
  margin-left: 10px;
  line-height: 1;
}

.estado-atrasada .icono {
  color: #eab40b;
}

.estado-normal .icono {
  color: #f04949;
}

.nombre-webinar {
  font-size: 15px;
  font-weight: 400;
  font-weight: bold; 
  font-size: 12px;
}

.detalle-tarea {
  margin-left: 35px;
  display: block;
  margin-top: 4px;
}

.titulo-tarea {
  font-weight: 500; 
  font-size: 11px; 
  line-height: 1.3;
}

.fecha-tarea {
  font-weight: 450; 
  font-size: 10px; 
  line-height: 1.3;
}

.card-sin-sombra {
  cursor: pointer;
  min-height: auto;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  min-height: 8vh;
  padding:8px;
  display: flex;
  gap: 5px;
}

/* Para tareas pendientes */
.card-sin-sombra.tarea-pendiente {
  background: #fefce8;
  border: 1px solid rgb(254 240 138);
}

/* Para tareas atrasadas */
.card-sin-sombra.tarea-atrasada {
  background: #fef2f2;
  border: 2px solid #fedddd;
}

.textodet2 {
  width: 100%; 
  font-size: 12px;
}

.no-tareas {
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.no-tareas {
  height: 40px; 
  padding: 8px;
}

.no-tareas h2 {
  text-align: center; 
  font-size: 20px; 
  margin: 0; 
  line-height: 1.2; 
  font-weight: 500;
}

.no-tareas-desktop {
  padding: 40px 20px;
  text-align: center;
  color: #748274;
  font-size: 1rem;
}

.no-tareas-desktop p {
  text-align: center; 
  font-size: 15px;
  margin: 0; 
  line-height: 1.2; 
  font-weight: 500;
}

.card-custom.tarea-atrasada, .card-custom.tarea-pendiente {
  box-shadow: none;
  border-radius: 0.5rem;
}

/* ============================================= */
/* SLIDERS Y SCROLL */
/* ============================================= */
.slider-container-vertical {
  position: relative;
  min-height: auto !important; /* Elimina altura mínima fija */
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tareas .slider-container-vertical {
  margin-bottom: -10px;
}

.slider-vertical {
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.slider-vertical::-webkit-scrollbar {
  display: none;
}

#nav-tareas {
  overflow: hidden;
}

#tareas-todas,
#tareas-todas-mobile {
  height: 100%;
}

#tareas-todas-mobile {
  padding: 35px 10px;
  overflow-y: auto;
  scroll-behavior: smooth;
  flex-direction: column;
}
#tareas-todas-mobile::-webkit-scrollbar {
  display: none;
}

.tareas-scroll-container {
  position: relative;
  height: 300px;
}

/* ============================================= */
/* FLECHAS DE NAVEGACIÓN */
/* ============================================= */
.arrow {
   width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  color: #555;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.arrow.up,
.arrow.down {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  z-index: 2;
}

.arrow.up {
  top: 10px;
}

.arrow.down {
  bottom: 10px;
}

.arrow.up:hover,
.arrow.down:hover {
  background: #f0f0f0;
  transform: translateX(-50%) scale(1.05);
}

.tareas .arrow.up {
  top: -15px;
}

.tareas .arrow.down {
  bottom: -5px;
}

/* ============================================= */
/* SECCIÓN DE CERTIFICACIÓN */
/* ============================================= */
.certificacion-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.certificacion-icon {
  margin-bottom: 8px;
}

.certificacion-icon i {
  font-size: 24px;
  color: rgb(116, 130, 116);
  background-color: var(--gray-light);
  border-radius: 50%;
  padding: 12px;
  display: inline-block;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificacion-titulo {
  font-family: 'GFS Didot', serif !important;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.4;
  color: rgb(116, 130, 116);
  font-weight: 500;
}

.certificacion-subtitulo {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem;
  margin: 0;
  color: #000000;
  font-weight: 400;
}

/* ============================================= */
/* UTILIDADES */
/* ============================================= */
.fi.fi-rs-play {
  vertical-align: middle;
}

/* ============================================= */
/* BUSCADOR DE CURSOS INSCRITOS */
/* ============================================= */
.mis-cursos-search {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  max-width: 520px;
}

.mis-cursos-search .courses-search {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #6a7867;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.courses-search {
  height: 60px;
  position: relative;
  overflow: hidden;
  height: auto;
}

.mis-cursos-search .courses-search input[type="text"] {
  background: transparent;
  padding: 7px 12px;
  flex: 1;
  width: 100%;
  height: 60px;
  padding-left: 20px;
  padding-right: 65px;
  border: 0;
  background-color: transparent;
  font-size: 15px;
  color: #52565b;
  margin-top: 0;
  margin-bottom: 0;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  height: auto;
}

.mis-cursos-search .courses-search input[type="text"]:focus {
  outline: none;
}

.mis-cursos-search .courses-search button {
  position: static;
  height: 48px;
  background-color: #6a7867;
  color: #fff;
  border-radius: 8px;
  padding: 0;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 2.2rem;
  width: 2.2rem;
}

.mis-cursos-search .courses-search button:hover {
  background-color: #587056;
}

.filter-desktop{
  margin: 2rem 0 2.5rem;
}

/* Responsive para el buscador */
@media (max-width: 768px) {  
  .mis-cursos-search {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .select-filter-bootstrap {
    width: 100%;
  }
}

/* ============================================= */
/* MEDIA QUERIES - RESPONSIVO */
/* ============================================= */

/* Móviles pequeños (menos de 576px) */
@media (max-width: 575px) {
  .certificacion-container {
    gap: 6px;
  }

  .certificacion-icon i {
    font-size: 20px;
    padding: 10px;
    width: 40px;
    height: 40px;
  }

  .certificacion-titulo {
    font-size: 1.1rem;
  }

  .certificacion-subtitulo {
    font-size: 0.9rem;
  }
  
  .tareas.d-none.d-md-flex {
    display: none !important;
  }
  
  .curso-card {
    width: 98%;
    max-width: 500px;
    margin: 0 auto 20px;
    min-height: 480px;
  }
  
  .position-md-absolute {
    position: static !important;
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto 20px;
  }
  
}

/* Móviles grandes (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .certificacion-container h4 {
    font-size: 1.1rem;
  }
}

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .d-md-block{
    margin-top: -80px
  }
  .certificacion-container h4 {
    font-size: 1.15rem;
  }

  .certificacion-container img {
    max-width: 30px;
    max-height: 30px;
  }
  
  /* Layout principal - flex para sidebar y contenido */
  .container-fluid.position-relative {
    display: flex !important;
    min-height: 100vh !important;
    flex-wrap: nowrap !important;
  }

  /* Sidebar (certificación + tareas) */
  .tareas.d-none.d-md-flex {
    display: flex !important;
    width: 30% !important;
    padding: 25px 15px !important;
    padding-top: 160px !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    align-self: flex-start !important;
    background-color: #ffffff !important;
  }

  /* Contenido del sidebar */
  .tareas .card {
    min-height: 8vh !important;
    margin-bottom: 15px !important;
  }

  .tareas .single-course-details.card {
    min-height: 16vh !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  /* Slider de tareas */
  .tareas .slider-container-vertical {
    margin-bottom: -8px !important;
  }

  /* Tarjetas internas */
  .tareas .card.sin-sombra.card-custom {
    min-height: 7vh !important;
    padding: 6px !important;
  }

  .tareas .textodet2 {
    font-size: 13px !important;
  }

  /* Iconos y elementos visuales */
  .tareas .fi.fi-rs-badge {
    font-size: 17px !important;
    padding: 8px !important;
  }

  .tareas .progress {
    height: 8px !important;
  }

  /* Contenido principal */
  .col-md-9 {
    width: 70% !important;
    padding: 25px !important;
    padding-top: 80px !important;
    flex-grow: 1 !important;
  }

  /* Filtro */
  .position-absolute {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    width: 180px !important;
  }
.select-filter-bootstrap {
    width: 100% !important;
    max-width: 250px;
    padding: 10px 15px !important;
    font-size: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin: 0 auto;
    display: block;
    position: relative;
}

.filter-desktop {
    margin-top: 20px;
    position: relative;
}

  

  /* Asegurar que las tarjetas ocupen todo el espacio disponible - PERO NO SIRVE :C */
  .col-12.col-md-6.col-lg-4.d-flex {
    height: auto !important;
  }

  /* Eliminar cualquier espacio sobrante - TAMPOCO SIRVE :c */
  .main-content .row:last-child {
    min-height: auto !important;
    margin-bottom: 0 !important;
  }

  /* Tablets pequeñas (768px-834px) */
  @media (max-width: 834px) {
    .tareas.d-none.d-md-flex {
      width: 35% !important;
      padding: 20px 12px !important;
      padding-top: 210px !important;
    }
    
    .col-md-9 {
      width: 65% !important;
      padding: 20px !important;
    }
    
    .carddesktop {
      min-height: 360px !important;
    }
    
    .position-absolute {
      right: 15px !important;
      width: 170px !important;
      top: 15px !important;
    }

    .tareas .slider-container-vertical {
      height: 180px !important;
    }

    .tareas #nav-tareas {
      height: 280px !important;
    }
    
    
  }

  /* Orientación landscape */
  /*@media (orientation: landscape) {
    .tareas.d-none.d-md-flex {
      width: 28% !important;
      padding-top: 220px !important;
    }

    .card-tarea {
    min-height: 430px;
    height: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

    .col-md-9 {
      width: 72% !important;
      padding-top: 70px !important;
    }
    
    .carddesktop {
      min-height: 400px !important;
    }
    
    .position-absolute {
      top: 15px !important;
    }

    .tareas .slider-container-vertical {
      height: 220px !important;
    }

    .tareas #nav-tareas {
      height: 320px !important;
    }
    
    .row.g-4 {
    grid-template-columns: repeat(1, 1fr) !important;
    display: grid !important;
    gap: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    padding-top: 10px;
    }
  }*/

  /* Mensaje de no tareas */
  .tareas .single-course-details .card-body div[style*="height: 100%"] {
    height: 80px !important;
    padding: 10px !important;
  }

  .tareas .single-course-details .card-body h2 {
    font-size: 16px !important;
  }

  /* Flechas del slider */
  .tareas .arrow.up,
  .tareas .arrow.down {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    z-index: 5 !important;
  }
  
  .tareas .arrow.up {
    top: -12px !important;
  }
  
  .tareas .arrow.down {
    bottom: -12px !important;
  }
}


/**********************************************/
/* Entregas-cursos-linea.CSS */
/**********************************************/
 .card-custom-cursos {
    padding: 15px; 
    background-color:  #ffffff; 
    border-radius: 15px; 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
  }

  .card-entrega {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    border: 1px solid transparent;
  }

  .card-entrega.entregado {
    background-color: #f0fdf4;
    border-color: #d5fae2;
  }

  .card-entrega.pendiente {
    background-color: #fffbe6;
    border-color: #f2e6aa;
  }

  .card-entrega.atrasado {
    background-color: #ffe6e6;
    border-color: #f2aaaa;
  }

  .card-entrega .estado-label {
    float: right;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 5px;
    line-height: 13px;
  }

  .card-entrega .estado-label.entregado {
    background-color: #dcfce7;
    color: #2f6e43;
    border: 1px solid #c7f8d9;
  }

  .card-entrega .estado-label.pendiente {
    background-color: #fef9c3;
    color: #b66d00;
    border: 1px solid #fef195;
    
  }

  .card-entrega .estado-label.atrasado {
    background-color: #fec3c3;
    color: #b60000;
    border: 1px solid #fe9595;
    
  }

  .card-entrega .icono {
    font-size: 1.2rem;
    margin-right: 8px;
  }

  .verde {
    color: #248751 !important;
    text-shadow: 0.5px 0 0 currentColor;
  }

  .amarillo {
    color: #b66d00 !important;
    text-shadow: 0.5px 0 0 currentColor;
  }

  .rojo {
    color: #b60000 !important;
    text-shadow: 0.5px 0 0 currentColor;
  }
  .accordion-titlee{
    color: #90A692; 
    padding: 0px; 
    font-size:1rem;
    cursor: pointer; 
    width:100%;
  }
  .accordion-content {
  overflow: hidden;
  }

  .accordion-enter-active,
  .accordion-leave-active {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  .accordion-enter {
    max-height: 0;
    opacity: 0;
  }

  .accordion-leave-to {
    max-height: 0;
    opacity: 0;
  }

  .accordion-enter-to,
  .accordion-leave {
    max-height: 500px; /* <= ponle un número mayor al contenido real */
    opacity: 1;
  }

  .container-titulo{
    display: flex; align-items: center; flex-direction: column; padding-bottom: 15px 
  }

   .titulo{
    font-family: "Playfair Display", serif !important;
    color: #748274 !important;
    font-weight: 500 !important;
    font-size: xx-large !important;
    text-shadow: 0.6px 0 0 currentColor;
  }
  .subtitulo{
    font-family: "Playfair Display", serif !important;
    color: #748274 !important;
    font-weight: 600 !important;
    font-size: larger !important;
  }

  .parrafo{
    margin-top: 2px;
    display: flex;
    color: #5c6872;
    font-size: 0.9rem;
    line-height: normal;
  }

  .despliege{
    display: flex;
    margin-top: -55px;
    align-items: center;
    gap: 10px;
  }

  .card_content{
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .contador-cursos{
    display: flex; 
    background-color: #f1f2f1;
    border: 1px solid lightgray; 
    border-radius:15px;
    padding:0px 10px; 
    color:#748274;
    font-weight: 500;
    text-shadow: 0.1px 0 0 currentColor;
    line-height: 25px;
  }

  .despliege-cursos{
    border-color: white; 
    background-color: #ffffff;
    padding-top: 15px;  
    margin-top: 10px;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
  }
  .image{
    width: 94.5px; 
    height: 94.5px; 
    min-width: 94.5px;
    min-height: 94.5px;
    max-width: 94.5px;
    max-height: 94.5px;
    object-fit: cover; 
    border-radius: 15px;
    flex-shrink: 0;
    background-color: #f1f2f1; /* Color de fondo si no hay imagen */
  }
  .espaciado{
    margin-right: 15px;
  }

  .tareas-espaciado{
    display: flex; 
    justify-content: space-between; 
    flex:1
  }

  .icono-curso {
  margin-right: 0.2rem;
  vertical-align: middle; 
  }

  .libro{
    width: 150px;
    height: auto;
  }




 /* Vista móvil */
@media (max-width: 500px) {

  /* Contenedor principal más ajustado */
  #app {
    padding-top: 15px !important;
  }
   .card-custom-cursos {
    margin-bottom: 10px;
  }

  .container {
    max-width: 95% !important;
    padding-top: 20px !important;
  }

  /* Título más pequeño y centrado */
  .titulo {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .titulo-tareas{
    font-size: 0.85rem !important;
    line-height: normal;
    padding-bottom: 5px;
  }

  .subtitulo {
    font-size: 1.1rem !important;
    padding-bottom: 4px;
  }
  .parrafo {
  font-size: 0.8rem;
  display: block;
  flex-direction: column;
  gap: 5px;
}

.card-custom-cursos {
  flex-direction: column;
  padding: 15px !important;
}

  .card-custom-cursos img {
    width: 80px !important;
    height: 80px !important;
  }

  /* Texto y progreso debajo de la imagen */
  .card-custom-cursos > a > div {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Indicadores de progreso adaptados */
  .card-custom-cursos div[style*="background-color: #f1f2f1"] {
    font-size: 0.85rem;
    padding: 3px 8px !important;
    margin-top: 8px;
  }

  /* Modificar el contenido expandido */
  .card-entrega {
    padding: 12px !important;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .card-entrega p {
    font-size: 0.8rem;
    width: 100%;
  }

  .card-entrega .estado-label {
    font-size: 0.8rem;
  }

  .card_content{
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
  }

  .despliege{
    height: -webkit-fill-available;
    display: flex;
    /*position: absolute;*/
    align-items: flex-end;
    /*padding-left: 70%;*/
    gap:0px;
  }

  .image{
    width: 10vh; 
    height: 10vh; 
    object-fit: cover; 
    border-radius: 15px;
    margin-right:10px;
  }
  .espaciado{
    margin-right: 0px;
  }

  .libro{
    width: 130px;
    height: auto;
  }
}

 /* Vista móvil */
@media (max-width: 991px) {

  /* Contenedor principal más ajustado */
  #app {
    padding-top: 70px !important;
  }

  .container {
    max-width: 100% !important;
    padding-top: 20px !important;
  }

  .encabezado-filtro{
    justify-content: center !important;
    flex-direction: column;
    align-items: center !important;
  }

  .mis-cursos-search{
    margin: 10px 0;
  }

  .filtro-progreso{
    max-width: 520px;
    margin: 0 0 1.5rem 0;
  }

  .select-filter-bootstrap {
    width: 100%;
    padding-right: 2rem !important;
    background-position: right -1.3rem center !important;
  }

  .filter-desktop {
    margin: 0;
  }
}

/* ============================================= */
/* BOTÓN DE PROGRESO MÓVIL */
/* ============================================= */
.btn.btn-progreso-movil {
  display: flex;
  text-transform: initial;
  color: #748274;
  font-weight: 500;
  border-radius: .75rem;
  border-color: #74827466;
  background-color: #7482740d;
  box-shadow: 0 2px 12px #74827414;
  align-items: center;
  gap: 8px;
}

.btn-progreso-movil:hover {
  background: #74827466;
  color: white;
  transform: translateY(-1px);
}

.btn-progreso-movil i {
  font-size: 18px;
}

/* ============================================= */
/* MODAL DE PROGRESO MÓVIL */
/* ============================================= */
#modalProgreso .modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

#modalProgreso .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
}

#modalProgreso .modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 16px 16px 0 0;
  position: relative;
}

#modalProgreso .modal-title {
  font-family: 'GFS Didot', serif !important;
  color: #748274;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

#modalProgreso .modal-body {
  padding: 1.5rem;
}

/* Selector más específico para el botón de cerrar del modal */
#modalProgreso .modal-close-btn {
  background: none !important;
  border: none !important;
  color: #6c757d !important;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
  margin: 0;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  width: auto;
  height: auto;
  text-decoration: none;
  font-weight: normal;
  border-radius: 0;
  box-shadow: none;
}

#modalProgreso .modal-close-btn:hover {
  opacity: 1 !important;
  color: #495057 !important;
  background: none !important;
}

#modalProgreso .modal-close-btn span {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Estilos específicos para el modal */
#modalProgreso .card-creditos {
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px #74827414;
  border: 1px solid rgba(116, 130, 116, .1);
}

#modalProgreso .card-tarea {
  box-shadow: 0 2px 12px #74827414;
  border: 1px solid rgba(116, 130, 116, .1);
}

#modalProgreso .tareas-header-desktop {
  padding: 1.25rem;
}

#modalProgreso .tareas-header-desktop h4 {
  font-size: 16px;
  margin: 0;
}

#modalProgreso .tareas-header-desktop i {
  font-size: 20px;
}

#modalProgreso .btn-nav-tareas {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 14px;
}

#modalProgreso .slider-container-vertical {
  margin-bottom: 0;
}

#modalProgreso .slider-vertical {
  padding: 1.25rem;
  gap: 12px;
}

#modalProgreso .card-sin-sombra {
  min-height: auto;
  padding: 10px;
}

#modalProgreso .tarea-estado {
  padding: 0.5rem;
  gap: 0.5rem;
}

#modalProgreso .tarea-estado-icon {
  width: 0.875rem;
  height: 0.875rem;
}

#modalProgreso .tarea-estado-detalle h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

#modalProgreso .tarea-estado-detalle p {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Centrado vertical del modal */
@media (min-width: 576px) {
  #modalProgreso .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }
}

/* Ajustes específicos para el modal en móvil */
@media (max-width: 767px) {
  #modalProgreso .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
    min-height: calc(100% - 2rem);
  }
  
  #modalProgreso .modal-body {
    padding: 1rem;
  }
  
  #modalProgreso .modal-header {
    padding: 1rem;
  }
  
  #modalProgreso .modal-close-btn {
    right: 1rem;
    top: 1rem;
  }
  
  .btn-progreso-movil {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* Ocultar sidebar en móvil */
@media (max-width: 767px) {
  .tareas.col-md-3 {
    display: none !important;
  }
  
  .main-content-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .main-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

