/**
 * Puntos Ya - Hero de página (gradiente naranja alternativo)
 * Tienda, Carrito, Checkout, Thank you
 * Título centrado entre header y final de la sección
 */

/* Header: padding 10px + altura ~78px ≈ 98px para que el título quede debajo */
.puntos-ya-page-hero {
	background: linear-gradient(145deg, #ff8c42 0%, #f07a1f 25%, #e96b14 50%, #d95a0a 75%, #c44d03 100%);
	box-shadow: 0 4px 24px rgba(232, 93, 4, 0.2);
	position: relative;
	padding-top: var(--header-offset);
	border-radius: 0 0 24px 24px;
	min-height: 180px;
}
.puntos-ya-page-hero--with-steps {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Badge puntos en hero (cuenta) */
.puntos-ya-puntos-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
	padding: 14px 32px;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	animation: pya-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.puntos-ya-puntos-badge:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

@keyframes pya-badge-pop {
	from { opacity: 0; transform: scale(0.7); }
	to   { opacity: 1; transform: scale(1); }
}

.puntos-ya-page-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 50px;
	gap: 28px;
}

.puntos-ya-page-hero__title {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== Steps dentro del hero (contraste sobre gradiente) ========== */
.puntos-ya-page-hero .puntos-ya-steps-wrap--in-hero {
	background: transparent;
	border-bottom: none;
	padding: 0;
}

.puntos-ya-page-hero .puntos-ya-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.puntos-ya-page-hero .puntos-ya-step {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.puntos-ya-page-hero .puntos-ya-step-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border: none;
	background: none;
	cursor: default;
	font-family: inherit;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.25s;
	text-decoration: none;
}
.puntos-ya-page-hero .puntos-ya-step a.puntos-ya-step-link {
	cursor: pointer;
}
.puntos-ya-page-hero .puntos-ya-step a.puntos-ya-step-link:hover {
	color: #fff;
}
.puntos-ya-page-hero .puntos-ya-step.is-active .puntos-ya-step-link,
.puntos-ya-page-hero .puntos-ya-step.is-done .puntos-ya-step-link {
	color: #fff;
}
.puntos-ya-page-hero .puntos-ya-step.is-active .puntos-ya-step-link {
	font-weight: 600;
}

.puntos-ya-page-hero .puntos-ya-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.875rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, color 0.25s;
}
.puntos-ya-page-hero .puntos-ya-step.is-active .puntos-ya-step-num,
.puntos-ya-page-hero .puntos-ya-step.is-done .puntos-ya-step-num {
	background: #fff;
	color: #c44d03;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.puntos-ya-page-hero .puntos-ya-step-label {
	font-size: 0.9375rem;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.puntos-ya-page-hero .puntos-ya-steps { gap: 16px; }
	.puntos-ya-page-hero .puntos-ya-step-label {
		display: none;
	}
}

/* Ocultar títulos duplicados cuando el hero está visible */
.puntos-ya-has-page-hero .puntos-ya-page-title,
.puntos-ya-has-page-hero .woocommerce-products-header__title {
	display: none;
}

@media (max-width: 768px) {
	.puntos-ya-page-hero {
		min-height: 160px;
		padding-top: var(--header-offset);
		margin: 0;
		border-radius: 0 0 20px 20px;
	}
	.puntos-ya-page-hero--with-steps {
		min-height: 200px;
	}
	.puntos-ya-page-hero__inner {
		padding: 20px;
	}
	.puntos-ya-page-hero__title {
		font-size: 1.5rem;
	}
}
