.material-teorico-wrapper {
  width: 100%;
}

.material-titulo {
  color: #0065A2;
  font-weight: 700;
  margin-bottom: 20px;
}

.material-subtitulo {
  color: #0065A2;
  font-weight: 700;
  font-size: 23px !important;
  margin: 30px 0 15px 0;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.material-subtitulo-sm {
  color: #0065A2;
  font-weight: 700;
  font-size: 21px !important;
  margin: 0 0 10px 0;
}

.material-texto {
  font-size: 20px !important;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.material-link {
  color: #0065A2;
  text-decoration: underline;
}

.material-seccion {
  margin-bottom: 30px;
}

.material-recurso-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: #f4f8fb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.material-recurso-nombre {
  font-weight: 700;
  color: #0065A2;
  font-size: 20px !important;
  margin: 0 0 6px 0;
}

.material-recurso-desc {
  font-size: 18px !important;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.material-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #0065A2;
  color: #ffffff !important;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.material-btn:hover {
  background-color: #004b79;
  color: #ffffff !important;
}

.material-pasos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.material-paso {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.material-paso-numero {
  background-color: #0065A2;
  color: #ffffff;
  font-weight: 700;
  font-size: 17px !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-paso p {
  font-size: 18px !important;
  color: #333;
  margin: 4px 0 0 0;
  line-height: 1.6;
}

.material-moocs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.material-mooc-img {
  width: 200px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.material-mooc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 20px;
  background-color: #ffffff;
  min-height: 80px;
}

.material-mooc-contenidos {
  font-size: 18px !important;
  color: #333;
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.material-teorico-wrapper table.material-tabla {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 18px !important;
  margin-top: 16px;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.material-teorico-wrapper table.material-tabla thead tr,
.material-teorico-wrapper table.material-tabla thead tr th {
  background-color: #f8f9fa !important;
  border-bottom: 2px solid #d0d0d0 !important;
}

.material-teorico-wrapper table.material-tabla thead th {
  color: #333333 !important;
  padding: 12px 16px !important;
  text-align: left !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  border-right: 1px solid #e0e0e0 !important;
}

.material-teorico-wrapper table.material-tabla thead th:last-child {
  border-right: none !important;
}

.material-teorico-wrapper table.material-tabla tbody td {
  padding: 12px 16px !important;
  color: #333333 !important;
  line-height: 1.6;
  vertical-align: middle !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-right: 1px solid #e0e0e0 !important;
  background-color: #ffffff !important;
}

.material-teorico-wrapper table.material-tabla tbody td:last-child {
  border-right: none !important;
}

.material-teorico-wrapper table.material-tabla tbody tr:last-child td {
  border-bottom: none !important;
}

.material-teorico-wrapper table.material-tabla tbody tr:nth-child(even) td {
  background-color: #fafafa !important;
}

.material-teorico-wrapper table.material-tabla tbody td a {
  color: #0065A2 !important;
  text-decoration: underline !important;
}

.material-teorico-wrapper table.material-tabla tbody td a:hover {
  color: #004b79 !important;
}

@media (max-width: 768px) {
  .material-recurso-card,
  .material-mooc-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .material-teorico-wrapper table.material-tabla thead {
    display: none !important;
  }

  .material-teorico-wrapper table.material-tabla tbody td {
    display: block !important;
    padding: 10px 14px !important;
    border-right: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
  }
}
