.graficos-container {
	margin-bottom: 2rem;
}

/* Estilos mejorados para pestañas */
.graficos-tabs {
	display: flex;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 0.7rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.75rem;
}

.tab-btn {
	padding: 0.7rem 1.5rem;
	background-color: #f0f0f0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
	background-color: #e5e5e5;
	transform: translateY(-2px);
}

.tab-btn.active {
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 3px 8px rgba(63, 157, 110, 0.25);
}

.tab-content {
	display: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

/* Opciones para gráficos */
.grafico-opciones {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.grafico-opciones h3 {
	font-size: 1.2rem;
	color: var(--primary-color);
	font-weight: 500;
	margin: 0;
}

.opciones-ordenacion {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.orden-label {
	font-size: 0.9rem;
	color: #666;
}

.orden-btn {
	padding: 0.5rem 0.8rem;
	background-color: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.orden-btn i {
	color: #777;
	transition: all 0.2s ease;
}

.orden-btn:hover {
	background-color: #eee;
}

.orden-btn.orden-activo {
	background-color: rgba(63, 157, 110, 0.1);
	border-color: rgba(63, 157, 110, 0.3);
	font-weight: 500;
}

.orden-btn.orden-activo i {
	color: var(--primary-color);
}

.leyenda-info {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background-color: rgba(23, 162, 184, 0.1);
	padding: 0.5rem 0.8rem;
	border-radius: 4px;
	font-size: 0.85rem;
	color: #17a2b8;
}

.leyenda-info i {
	font-size: 1rem;
}

/* Contenedor del gráfico */
.chart-container {
	width: 100%;
	height: 350px;
	margin-bottom: 1.5rem;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
	transition: all 0.3s ease;
}

.chart-container:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Estilos para estadísticas */
.chart-info {
	display: flex;
	justify-content: space-around;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
	padding: 1rem;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 140px;
	padding: 1.2rem;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border-top: 3px solid transparent;
}

.chart-stat:nth-child(1) {
	border-top-color: var(--primary-color);
}

.chart-stat:nth-child(2) {
	border-top-color: var(--success-color);
}

.chart-stat:nth-child(3) {
	border-top-color: var(--warning-color);
}

.chart-stat:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.3rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-label {
	font-size: 0.9rem;
	color: #666;
	font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.grafico-opciones {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}

	.opciones-ordenacion {
		width: 100%;
		justify-content: center;
	}

	.chart-container {
		height: 320px;
		padding: 0.8rem;
	}

	.chart-info {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.8rem;
		padding: 0.8rem;
	}

	.chart-stat {
		min-width: 120px;
		padding: 1rem;
		flex: 1 1 calc(33.333% - 1rem);
		max-width: calc(33.333% - 1rem);
	}

	.stat-value {
		font-size: 1.7rem;
	}

	.graficos-tabs {
		flex-direction: row;
	}

	.tab-btn {
		width: auto;
	}

	.orden-btn {
		width: auto;
	}
}

@media screen and (max-width: 576px) {
	.graficos-tabs {
		justify-content: center;
		gap: 0.5rem;
	}

	.tab-btn {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
		flex: 1 1 auto;
	}

	.chart-container {
		height: 280px;
		padding: 0.6rem;
	}

	.chart-stat {
		min-width: 100px;
		padding: 0.8rem;
		flex: 1 1 100%;
	}

	.stat-value {
		font-size: 1.5rem;
	}

	.stat-label {
		font-size: 0.85rem;
	}
}

@media screen and (max-width: 480px) {
	.orden-btn {
		padding: 0.4rem 0.6rem;
		font-size: 0.8rem;
	}

	.orden-label {
		font-size: 0.8rem;
		width: 100%;
	}

	.leyenda-info {
		font-size: 0.8rem;
		width: 100%;
	}

	.grafico-opciones h3 {
		font-size: 1.1rem;
	}

	.chart-container {
		height: 250px;
	}
}
