/*
 * Componentes añadidos después del diseño original.
 *
 * styles.css es el CSS del sitio aprobado y se carga sin modificar; todo lo
 * nuevo vive aquí y usa sus mismas variables (--color-*, --font-*).
 */

/* Hero de páginas internas: cifra destacada + grupo de botones */
.page-hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	margin: 0 auto 2rem;
}
.page-hero-stat-num {
	font-family: var(--font-display);
	font-size: clamp(3.2rem, 9vw, 5.5rem);
	line-height: .9;
	letter-spacing: .03em;
	color: var(--color-yellow);
	text-shadow: 4px 4px 0 #000;
	-webkit-text-stroke: 1.5px rgba(0, 0, 0, .8);
	paint-order: stroke fill;
}
.page-hero-stat-label {
	font-family: var(--font-cartoon);
	font-size: .95rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #ddd;
}
.page-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

/* Hero de páginas internas con foto: texto a la izquierda, foto a la derecha */
.page-hero--photo {
	padding: 7.5rem 1.5rem 3.5rem;
}
.page-hero--photo .page-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 3rem;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}
.page-hero--photo .page-hero-copy {
	text-align: left;
}
.page-hero--photo .page-hero-intro {
	margin: 1.2rem 0 2rem;
}
.page-hero--photo .page-hero-stat {
	align-items: flex-start;
	margin: 0 0 2rem;
}
.page-hero--photo .page-hero-actions {
	justify-content: flex-start;
}
/* Botones del hero de Contenido: centrados sin foto, a la izquierda con foto */
.page-hero .hero-cta-group {
	justify-content: center;
}
.page-hero--photo .hero-cta-group {
	justify-content: flex-start;
}
.page-hero-media {
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	overflow: hidden;
	border: 4px solid #000;
	box-shadow: var(--shadow-card), 0 0 60px rgba(227, 18, 18, .22);
	background: #0d0d0d;
}
.page-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Fotos del theme (<picture> con WebP): que el contenedor mande el tamaño */
.evc-picture {
	display: block;
}
.page-hero-media .evc-picture,
.hero-deco-frame .evc-picture,
.hero-mobile-photo .evc-picture,
.photo-row-item .evc-picture,
.pillar-photo .evc-picture,
.cta-photo .evc-picture {
	width: 100%;
	height: 100%;
}

/* Foto que acompaña un llamado a la acción y lo señala (cierre de Contenido, newsletter de Inicio) */
.cta-photo {
	width: 100%;
	max-width: 280px;
	aspect-ratio: 4 / 5;
	margin: 2rem auto 0;
	border-radius: 16px;
	overflow: hidden;
	border: 3px solid #000;
	box-shadow: var(--shadow-card), 0 0 40px rgba(227, 18, 18, .22);
	background: #0d0d0d;
	position: relative;
	z-index: 2;
}
.cta-photo--square {
	max-width: 240px;
	aspect-ratio: 1;
}
.cta-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Tarjeta de audiencia con descripción en lugar de (o además de) la cifra */
.audience-card-desc {
	font-family: var(--font-body);
	font-size: .8rem;
	line-height: 1.45;
	color: #aaa;
	margin: .5rem 0 0;
}
.audience-cards:has(.audience-card-desc) .audience-card {
	width: 200px;
}

/* Tarjetas de "Formas de colaborar": icono + nombre + descripción */
.format-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.category-card h3.cat-name {
	margin: 0;
	font-weight: 400;
	line-height: 1.3;
}
.category-card .cat-desc {
	font-family: var(--font-body);
	font-size: .88rem;
	line-height: 1.55;
	color: #aaa;
	margin: .55rem 0 0;
}

/* "Explorar por categoría": 3 por fila (2 en móvil), centradas sea cual sea su número */
.category-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.category-grid .category-card {
	flex: 0 0 calc((100% - 2.5rem) / 3);
}

/* Variante de 4 por fila (categorías de la Tienda) */
.category-grid--4 {
	gap: 1rem;
	max-width: 900px;
}
.category-grid--4 .category-card {
	flex-basis: calc((100% - 3rem) / 4);
}

/* Lista de criterios ("No todas las marcas encajan") */
.criteria-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .7rem;
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	position: relative;
	z-index: 2;
}
.criteria-list li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: #111;
	border: 2px solid #2a2a2a;
	border-radius: 999px;
	padding: .55rem 1.1rem;
	font-family: var(--font-cartoon);
	font-size: .92rem;
	color: #eee;
	box-shadow: 3px 3px 0 #000;
}
.criteria-list li::before {
	content: '✓';
	font-family: var(--font-body);
	font-weight: 900;
	color: var(--color-red);
}
.criteria-closing {
	font-family: var(--font-cartoon);
	font-size: 1.05rem;
	line-height: 1.5;
	color: #fff;
	max-width: 600px;
	margin: 2.2rem auto 0;
	position: relative;
	z-index: 2;
}

/* Noticias & Historias: destacados más grandes, listados más compactos */
.blog-grid--featured {
	grid-template-columns: repeat(3, 1fr);
}
.blog-card--featured .blog-title {
	font-size: 1.3rem;
	line-height: 1.3;
}
.blog-card--featured .blog-excerpt {
	font-size: .95rem;
	color: #999;
}
.blog-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Botón al final de un artículo */
.post-final-cta {
	max-width: 760px;
	margin: 2.5rem auto 0;
	padding: 0 1.5rem;
	text-align: center;
}

/* Texto que presenta una lista de chips (.criteria-list) */
.chips-label {
	font-family: var(--font-cartoon);
	font-size: .9rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 1rem;
	position: relative;
	z-index: 2;
}

/* Párrafos de texto centrados dentro de un bloque (10 millones, Para marcas) */
.block-text {
	max-width: 640px;
	margin: 1.2rem auto 2rem;
	position: relative;
	z-index: 2;
}
.block-text p {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: #bbb;
	margin: 0 0 1rem;
}
.block-text p:last-child {
	margin-bottom: 0;
}

/* Pilares en 3 columnas ("¿Qué hace diferente...?") */
.impact-pillars--3 {
	grid-template-columns: repeat(3, 1fr);
	max-width: 1000px;
}

/* Fila de fotos (Sobre mí): solo las que se hayan subido, centradas */
.photo-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.photo-row-item {
	flex: 0 1 calc((100% - 3rem) / 3);
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	overflow: hidden;
	border: 3px solid #000;
	box-shadow: var(--shadow-card);
}
.photo-row-item img,
.pillar-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Foto en lugar del icono de un pilar */
.pillar-photo {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1;
	margin: 0 auto 1.2rem;
	border-radius: 16px;
	overflow: hidden;
	border: 3px solid #000;
	box-shadow: var(--shadow-card);
}

/* Mensajes de la comunidad ("Equipo Campeón") */
.community-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
	text-align: left;
}
.community-card {
	margin: 0;
	padding: 1.5rem;
	background: #111;
	border: 2px solid #232323;
	border-radius: 16px;
}
.community-card-text {
	font-family: var(--font-body);
	font-size: .95rem;
	line-height: 1.6;
	color: #ddd;
	margin: 0 0 1rem;
}
.community-card-author {
	display: flex;
	align-items: center;
	gap: .7rem;
}
.community-card-author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-red);
}
.community-card-name {
	display: block;
	font-family: var(--font-cartoon);
	font-size: .95rem;
	color: #fff;
}
.community-card-role {
	display: block;
	font-family: var(--font-body);
	font-size: .78rem;
	color: #888;
}

/* Bloque Media Kit */
.mediakit-card {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
	padding: 3rem 2rem;
	text-align: center;
	background: linear-gradient(135deg, #1a0000 0, #0d0d0d 60%);
	border: 3px solid var(--color-red);
	border-radius: 20px;
	box-shadow: 0 0 40px rgba(227, 18, 18, .28);
}
.mediakit-desc {
	font-family: var(--font-cartoon);
	font-size: 1rem;
	line-height: 1.6;
	color: #bbb;
	max-width: 560px;
	margin: 1rem auto 2rem;
}

@media (max-width: 1024px) {
	.blog-grid--featured {
		grid-template-columns: 1fr;
	}
}

/* Hero con foto en tablet y móvil: texto centrado y foto debajo, más compacta */
@media (max-width: 900px) {
	.page-hero--photo {
		padding-bottom: 2.5rem;
	}
	.page-hero--photo .page-hero-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.page-hero--photo .page-hero-copy {
		text-align: center;
	}
	.page-hero--photo .page-hero-intro {
		margin-left: auto;
		margin-right: auto;
	}
	.page-hero--photo .page-hero-stat {
		align-items: center;
		margin-left: auto;
		margin-right: auto;
	}
	.page-hero--photo .page-hero-actions,
	.page-hero--photo .hero-cta-group {
		justify-content: center;
	}
	.page-hero-media {
		width: 100%;
		max-width: 420px;
		margin: 0 auto;
		aspect-ratio: 1;
	}
}

/* Footer: marca + 4 columnas en escritorio (en tablet y móvil manda styles.css) */
@media (min-width: 1025px) {
	.footer-grid {
		grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.format-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.impact-pillars--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.category-grid .category-card {
		flex-basis: calc((100% - 1.25rem) / 2);
	}
	.category-grid--4 .category-card {
		flex-basis: calc((100% - 1rem) / 2);
	}
	.photo-row-item {
		flex-basis: 100%;
	}
}

@media (max-width: 480px) {
	.page-hero-actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 340px;
		margin: 0 auto;
	}
	.format-cards {
		grid-template-columns: 1fr;
	}
	.mediakit-card {
		padding: 2.2rem 1.2rem;
	}
}
