/*
 * HCP · Web — portada.
 *
 * Estilo de las secciones de la home (patrones en theme/hcp-theme/patterns/),
 * réplica de tienda.hechoconpixels.com: héroe de las 3 revistas, comparativa de
 * suscripciones, «Los Imprescindibles de MicroHobby», «Ediciones Especiales»,
 * «Láminas de Pixels» y «Puntos de Venta». Todo vive en el tema: el contenido
 * (portadas, precios, textos) se edita en los propios patrones desde el editor,
 * no en el plugin.
 */

.hcp-home-section {
	margin: clamp(2rem, 5vw, 3rem) auto;
}

/* ------------------------------------------------------------------ *
 * Héroe: Pixels / MicroHobby / Micromanía
 * ------------------------------------------------------------------ */

.hcp-hero-card {
	background: var(--wp--custom--rev--accent, #7a4d9e);
	color: var(--wp--custom--rev--accent-contrast, #fff);
	border-radius: var(--hcp-radius, 14px);
	padding: 1.5rem;
}

.hcp-hero-card.hcp-rev-mm {
	color: var(--wp--preset--color--mm-wine, #b63e36);
}

.hcp-hero-cover {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.hcp-hero-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.hcp-hero-title {
	margin: 0 0 0.25rem;
	color: inherit;
}

.hcp-hero-subtitle {
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: inherit;
}

.hcp-hero-desc {
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0 0 1rem;
	color: inherit;
}

.hcp-hero-card .wp-block-buttons {
	margin-top: auto;
}

.hcp-hero-card .wp-block-button__link {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.hcp-hero-card .wp-block-button.is-style-outline .wp-block-button__link {
	color: inherit;
	border-color: currentColor;
}

/* ------------------------------------------------------------------ *
 * Comparativa de suscripciones
 * ------------------------------------------------------------------ */

.hcp-plan-card {
	background: var(--wp--preset--color--paper, #fff);
	border-radius: var(--hcp-radius, 14px);
	padding: 1.5rem;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
	border-top: 6px solid var(--wp--custom--rev--accent, #7a4d9e);
}

.hcp-plan-title {
	margin: 0 0 0.5rem;
	color: var(--wp--custom--rev--accent-ink, var(--wp--preset--color--px));
}

.hcp-plan-modalidades {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #6b6b6b);
	margin: 0 0 1rem;
}

.hcp-plan-price {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--wp--preset--color--ink);
}

.hcp-plan-price-note {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #6b6b6b);
	margin: 0 0 1.25rem;
}

/* ------------------------------------------------------------------ *
 * Los Imprescindibles de MicroHobby
 * ------------------------------------------------------------------ */

.hcp-home-imprescindibles {
	background: var(--wp--preset--color--zx-black, #1a181c);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
	border-radius: var(--hcp-radius, 14px);
	text-align: center;
}

.hcp-home-imprescindibles-ribbon {
	position: absolute;
	bottom: 5px;
	right: -70px;
	width: 210px;
	height: auto;
	transform: rotate(-45deg);
}

.hcp-home-imprescindibles-titulo {
	position: relative;
	z-index: 1;
	font-size: clamp(20px, 7vw, 32px);
	margin: 0;
	color: var(--wp--preset--color--zx-gold, #d3b768);
}

.hcp-home-imprescindibles-titulo .is-a {
	color: #ffffff;
}

.hcp-home-imprescindibles-titulo .is-b {
	color: var(--wp--preset--color--red, #cf2e2e);
}

.hcp-home-imprescindibles-subtitulo {
	position: relative;
	z-index: 1;
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: var(--wp--preset--color--zx-gold, #d3b768);
}

.hcp-home-imprescindibles-intro {
	position: relative;
	z-index: 1;
	max-width: none;
	margin: 0.5rem auto 2rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
}

.hcp-home-imprescindibles-grid {
	position: relative;
	z-index: 1;
	text-align: left;
}

.hcp-home-imprescindible-destacado {
	display: grid;
	grid-template-columns: 240px 1fr;
	align-items: start;
	gap: 28px;
}

.hcp-home-imprescindible-img {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.hcp-home-imprescindible-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 667 / 1024;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--zx-gold, #d3b768);
}

.hcp-home-imprescindible-ribbon {
	position: absolute;
	top: 18px;
	left: -42px;
	width: 150px;
	padding: 5px 0;
	background-color: var(--wp--preset--color--zx-gold, #d3b768);
	color: var(--wp--preset--color--zx-black, #1a181c);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-45deg);
	box-shadow: 6px 2px 3px rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.hcp-home-imprescindible-ribbon.is-agotado {
	background-color: var(--wp--preset--color--red, #cf2e2e);
	color: #fff;
}

.hcp-home-imprescindible-info {
	color: #fff;
	display: flex;
	flex-direction: column;
}

.hcp-home-imprescindible-desc {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.hcp-home-imprescindible-boton {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 24px;
	font-weight: 600;
	text-decoration: none !important;
	color: #fff;
	border: 1.5px solid #fff;
	border-radius: 8px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hcp-home-imprescindible-boton:hover {
	background-color: var(--wp--preset--color--zx-gold, #d3b768);
	border-color: var(--wp--preset--color--zx-gold, #d3b768);
	color: var(--wp--preset--color--zx-black, #1a181c);
}

.hcp-home-otros-titulos-titulo {
	font-size: 1.1875rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--zx-gold, #d3b768);
}

.hcp-home-otro-titulo {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 1rem 0;
}

.hcp-home-otro-titulo-img {
	flex: 0 0 auto;
	display: block;
}

.hcp-home-otro-titulo-img img {
	width: 90px;
	height: auto;
	aspect-ratio: 667 / 1024;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--wp--preset--color--zx-gold, #d3b768);
	display: block;
}

.hcp-home-otro-titulo-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #ffffff;
}

.hcp-home-otro-titulo-cabecera {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.hcp-home-otro-titulo-agotado {
	display: inline-block;
	padding: 3px 9px;
	background-color: var(--wp--preset--color--red, #cf2e2e);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	border-radius: 3px;
}

.hcp-home-otro-titulo-nombre {
	font-weight: 700;
	color: #ffffff;
}

.hcp-home-otro-titulo-desc {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * Ediciones Especiales
 * ------------------------------------------------------------------ */

.hcp-home-destacado {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 1.5rem;
	border-radius: var(--hcp-radius, 14px);
	box-sizing: border-box;
	height: 100%;
	background-color: var(--wp--custom--rev--accent, #7a4d9e);
	color: var(--wp--custom--rev--accent-contrast, #fff);
}

.hcp-home-destacado-ribbon {
	position: absolute;
	top: 27px;
	left: -60px;
	width: 210px;
	padding: 7px 0;
	background-color: #000000;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.8px;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-45deg);
	box-shadow: 9px 3px 3px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

.hcp-home-destacado-img {
	display: block;
	position: relative;
	z-index: 1;
}

.hcp-home-destacado-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	aspect-ratio: 600 / 850;
	object-fit: cover;
}

.hcp-home-destacado-info {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

.hcp-home-destacado-info h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: inherit;
}

.hcp-home-destacado-desc {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: inherit;
}

.hcp-home-destacado-boton {
	display: block;
	margin-top: auto;
	padding: 8px 18px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	color: inherit;
	border: 1.5px solid currentColor;
	border-radius: 8px;
}

.hcp-home-destacado-boton:hover {
	background: rgba(255, 255, 255, 0.15);
}

.hcp-home-destacado.hcp-rev-mm .hcp-home-destacado-info {
	color: var(--wp--preset--color--mm-wine, #b63e36);
}

/* ------------------------------------------------------------------ *
 * Láminas de Pixels
 * ------------------------------------------------------------------ */

.hcp-home-extras {
	background-color: var(--wp--preset--color--px, #7a4d9e);
	padding: 1.5rem;
	border-radius: var(--hcp-radius, 14px);
}

.hcp-home-extras-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.hcp-home-extra-producto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--zx-gold, #d3b768);
}

.hcp-home-extras-texto {
	color: #ffffff;
}

.hcp-home-extras-titulo {
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #ffffff;
}

.hcp-home-extras-subtitulo {
	margin: 0 0 1.25rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.hcp-home-extras-boton {
	display: inline-block;
	padding: 10px 24px;
	font-weight: 600;
	text-decoration: none !important;
	color: #fff !important;
	border: 1.5px solid #fff;
	border-radius: 8px;
}

.hcp-home-extras-boton:hover {
	background-color: var(--wp--preset--color--zx-black, #1a181c);
	border-color: var(--wp--preset--color--zx-black, #1a181c);
}

/* ------------------------------------------------------------------ *
 * Puntos de venta
 * ------------------------------------------------------------------ */

.hcp-home-revistero {
	background: var(--wp--preset--color--paper, #fff);
	border-radius: var(--hcp-radius, 14px);
	padding: 1.5rem;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
}

.hcp-home-revistero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.hcp-home-tiendas-caja {
	background: var(--wp--preset--color--teal-ink, #2fb3ad);
	padding: 1.5rem;
	border-radius: var(--hcp-radius, 14px);
	height: 100%;
	box-sizing: border-box;
}

.hcp-home-tiendas-titulo {
	text-align: center;
	margin: 0 0 1rem;
	padding: 1rem 1.5rem;
	background-color: #ffffff;
	color: var(--wp--preset--color--teal-ink, #2fb3ad);
	border-radius: 10px;
}

.hcp-home-tiendas-intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 1.5rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.hcp-home-tienda-card {
	background: #ffffff;
	color: var(--wp--preset--color--teal-ink, #2fb3ad);
	border-radius: var(--hcp-radius, 14px);
	padding: 1.25rem;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
}

.hcp-home-tienda-card h2 {
	margin: 0;
	font-size: 1.25rem;
	color: inherit;
}

.hcp-home-tienda-logo {
	display: block;
	height: 70px;
	max-width: 150px;
	width: auto;
	object-fit: contain;
	margin: 10px auto 14px;
}

.hcp-home-tienda-card .wp-block-buttons {
	margin-top: 1rem;
}

.hcp-home-tienda-card .wp-block-button__link {
	color: var(--wp--preset--color--teal-ink, #2fb3ad);
	border-color: var(--wp--preset--color--teal-ink, #2fb3ad);
}

.hcp-home-tienda-card .wp-block-button__link:hover {
	background: var(--wp--preset--color--teal-ink, #2fb3ad);
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.hcp-home-imprescindibles-grid .wp-block-columns {
		flex-wrap: wrap;
	}

	.hcp-home-imprescindible-destacado {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hcp-home-imprescindible-img {
		margin: 0 auto;
		max-width: 240px;
	}

	.hcp-home-imprescindible-info {
		align-items: center;
	}

	.hcp-home-otro-titulo {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hcp-home-extras-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
