/* Estilos para el bloque Plan de Estudio */
.smatx-plan-estudio {
  width: 100%;
  margin-bottom: 2rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
  padding-top: 96px;
  padding-bottom: 48px;
}

.plan-estudio-categoria {
  margin-bottom: 4rem;
  box-shadow: none;
  border-radius: 0;
  background-color: transparent;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.plan-estudio-header {
  display: flex;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 32px;
  gap: 16px;
}

.plan-estudio-icon {
  background-color: #2e8f8b;
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 266.67px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0.5333333611488342px 1.0666667222976685px
    rgba(16, 24, 40, 0.05);
}

.plan-estudio-icon svg {
  width: 40px;
  height: 40px;
}

.plan-estudio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.plan-estudio-titulo {
  color: #101828 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 44px !important;
  margin: 0 !important;
}

.plan-estudio-meta {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 4px;
  background-color: #167f80;
  color: white;
  margin-top: 0;
  width: fit-content;
  gap: 10px;
}

.plan-meta-item {
  white-space: nowrap;
}

.plan-meta-separator {
  margin: 0;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 9999px;
  display: inline-block;
}

/* Nuevo estilo para la tabla con filas flexbox */
.plan-estudio-cursos {
  width: 100%;
  margin-top: 1.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
  display: flex;
}

.plan-estudio-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.plan-estudio-tabla thead {
  width: 100%;
  background-color: white;
}

.plan-estudio-tabla thead tr {
  display: flex;
  padding: 12px 24px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  border-bottom: 1px solid #eaecf0;
  height: 44px;
}

.plan-estudio-tabla thead th {
  color: #475467;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
}

.plan-estudio-tabla tbody {
  width: 100%;
}

.plan-estudio-tabla tbody tr {
  display: flex;
  padding: 16px 24px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  border-bottom: 1px solid #eaecf0;
  background-color: #ffffff;
  border-left: none;
  border-right: none;
}

.plan-estudio-tabla th,
.plan-estudio-tabla td {
  font-size: 14px;
  line-height: 20px;
  border: none;
  padding: 0;
}

.plan-estudio-tabla td {
  color: #101828;
  font-weight: 500;
}

.plan-estudio-tabla td.columna-horas,
.plan-estudio-tabla td.columna-creditos {
  color: #475467;
  font-weight: 400;
}

.plan-estudio-tabla tbody tr:hover {
  background-color: rgba(118, 188, 33, 0.05);
}

.plan-estudio-tabla tr:last-child {
  border-bottom: none;
}

.columna-nombre {
  flex: 1;
  text-align: left;
}

.columna-horas {
  width: 100px;
  text-align: center;
}

.columna-creditos {
  width: 100px;
  text-align: center;
}

.curso-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.curso-item:hover {
  background-color: rgba(118, 188, 33, 0.05);
}

/* Modal de curso */
.curso-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.curso-modal-contenido {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  width: 80%;
  max-width: 900px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.cerrar-modal:hover {
  color: #555;
}

.curso-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.curso-icon {
  background-color: #2e8f8b;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: 0px 0.5333333611488342px 1.0666667222976685px
    rgba(16, 24, 40, 0.05);
}

.curso-icon svg {
  width: 25px;
  height: 25px;
}

.curso-info-header {
  flex: 1;
}

.curso-info-header h3 {
  color: #101828;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 0.5rem 0;
  line-height: 30px;
}

.curso-meta {
  display: flex;
  gap: 1rem;
  color: #475467;
  font-size: 14px;
  line-height: 20px;
}

/* Pestañas */
.curso-modal-tabs {
  margin-top: 1.5rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab:hover {
  color: #167f80;
}

.tab.active {
  border-bottom-color: #167f80;
  color: #167f80;
}

.tab-content {
  display: none;
  padding: 0.5rem;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.tab-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .plan-estudio-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }

  .plan-estudio-icon {
    margin-right: 0;
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .plan-estudio-icon svg {
    width: 30px;
    height: 30px;
  }

  .plan-estudio-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-estudio-titulo {
    font-size: 20px !important;
    line-height: 28px !important;
  }

  .plan-estudio-meta {
    font-size: 14px;
  }

  .columna-horas,
  .columna-creditos {
    width: 60px;
  }

  .curso-modal-contenido {
    width: 95%;
    margin: 5% auto;
    padding: 1.5rem;
  }

  .tabs-nav {
    flex-wrap: wrap;
  }

  .tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .curso-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .plan-estudio-tabla tr {
    padding: 12px 16px;
  }

  .plan-estudio-categoria {
    padding: 0 16px;
  }

  .plan-estudio-cursos {
    padding: 0 16px;
  }
}
