.tabla-cursos {
	margin-top: 30px;
	width: 100%;
	overflow-x: auto;
}

.tabla-cursos table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabla-cursos th,
.tabla-cursos td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.tabla-cursos th {
	background: var(--primary-color);
	color: white;
	font-weight: bold;
}

.tabla-cursos tr:hover {
	background-color: #f5f5f5;
}

.btn-accion {
	padding: 6px 12px;
	margin: 0 3px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	width: 100px;
	display: inline-block;
	white-space: nowrap;
}

.tabla-cursos td:last-child {
	white-space: nowrap;
}

.btn-editar {
	background-color: #2196f3;
	color: white;
}

.btn-editar:hover {
	background-color: #0b7dda;
}

.btn-eliminar {
	background-color: #f44336;
	color: white;
}

.btn-eliminar:hover {
	background-color: #da190b;
}

/* Diseño responsive para móviles */
@media screen and (max-width: 768px) {
	.tabla-cursos {
		overflow-x: visible;
	}

	.tabla-cursos table,
	.tabla-cursos thead,
	.tabla-cursos tbody,
	.tabla-cursos th,
	.tabla-cursos td,
	.tabla-cursos tr {
		display: block;
	}

	.tabla-cursos thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.tabla-cursos tr {
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 8px;
		background: white;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}

	.tabla-cursos td {
		border: none;
		padding: 10px 12px;
		text-align: left; /* ✅ alineado a la izquierda */
		min-height: 40px;
		display: flex;
		flex-direction: column; /* ✅ etiqueta arriba, valor abajo */
		align-items: flex-start;
		justify-content: center;
		word-break: break-word; /* ✅ evita palabras cortadas */
	}

	.tabla-cursos td:before {
		content: attr(data-label);
		font-weight: bold;
		color: #666;
		font-size: 0.75rem;
		text-transform: uppercase;
		margin-bottom: 4px; /* ✅ separación entre etiqueta y valor */
		white-space: nowrap;
	}

	.tabla-cursos td:last-child {
		padding-left: 12px;
		justify-content: center;
		align-items: center; /* ✅ botones centrados */
		border-top: 2px solid #f0f0f0;
	}

	.tabla-cursos td:last-child:before {
		content: "";
	}

	.btn-accion {
		width: auto;
		margin: 5px;
	}
}
.oculto {
	display: none;
}

.total-horas-container {
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: bold;
	font-size: 16px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
	display: inline-block;
}

.total-horas-container span {
	font-size: 20px;
	margin-left: 5px;
}
