/* ===== ESTILOS DEL COMPONENTE ===== */
.metrics-section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 60px 0;
	overflow: hidden;
	width: var(--pma-full-width);
}

/* Reset y box-sizing para todos los elementos dentro del componente */
.metrics-section *,
.metrics-section *::before,
.metrics-section *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Contenedor de fondos con transiciones */
.background-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 2s ease-in-out;
}

.background-image.active {
	opacity: 1;
}

/* Overlay con gradiente más sutil */
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.35) 50%,
		rgba(0, 0, 0, 0.25) 100%
	);
	z-index: 2;
}

/* Contenido principal */
.metrics-content {
	position: relative;
	z-index: 3;
	text-align: center;
	width: var(--pma-max-width);
}

.metrics-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--pma-blanco);
	margin-bottom: 24px;
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-family: var(--pma-font-principal);
}

.metrics-title::before {
	content: "";
	width: 20px;
	height: 20px;
	background: var(--pma-blanco);
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metrics-subtitle {
	font-size: 18px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 80px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.4;
	font-family: var(--pma-font-secundaria);
}

/* Contenedor de cards - 4 en una línea */
.metrics-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 60px;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.metric-card {
	background: #ffffff2e;
	backdrop-filter: blur(15px);
	border-radius: 20px;
	padding: 32px 16px;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.metric-card:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #00000061;
	z-index: 1;
	transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
	background: #ffffffeb;
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.3);
}

.metric-card:hover:before {
	background: #ffffff4d;
}

.metric-number {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1;
	position: relative;
	z-index: 2;
	text-shadow: none;
	font-family: var(--pma-font-principal);
}

.metric-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
	position: relative;
	z-index: 2;
	text-shadow: none;
	font-family: var(--pma-font-secundaria);
}

/* Colores específicos para cada card */
.metric-card:nth-child(1) .metric-number,
.metric-card:nth-child(1) .metric-text {
	color: var(--metric-teal);
}

.metric-card:nth-child(1) {
	border-color: var(--metric-teal);
}

.metric-card:nth-child(2) .metric-number,
.metric-card:nth-child(2) .metric-text {
	color: var(--metric-pink);
}

.metric-card:nth-child(2) {
	border-color: var(--metric-pink);
}

.metric-card:nth-child(3) .metric-number,
.metric-card:nth-child(3) .metric-text {
	color: var(--metric-blue);
}

.metric-card:nth-child(3) {
	border-color: var(--metric-blue);
}

.metric-card:nth-child(4) .metric-number,
.metric-card:nth-child(4) .metric-text {
	color: var(--metric-orange);
}

.metric-card:nth-child(4) {
	border-color: var(--metric-orange);
}

/* Responsive */
@media (max-width: 1024px) {
	.metrics-cards {
		max-width: 900px;
		gap: 20px;
	}

	.metric-card {
		padding: 20px 12px;
	}
}

@media (max-width: 768px) {
	.metrics-section {
		padding: 32px 16px;
	}

	.metrics-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		max-width: 600px;
	}

	.metric-card {
		padding: 20px 16px;
		min-height: 180px;
	}
}

@media (max-width: 480px) {
	.metrics-cards {
		grid-template-columns: 1fr;
		gap: 16px;
		max-width: 300px;
	}

	.metric-card {
		padding: 20px 16px;
		min-height: 160px;
	}
}
