/* Secciones adicionales de la portada (se carga solo si existen). Usa las variables del tema. */
.custom-section {
	padding: 4.5rem 0;
}

.custom-head {
	max-width: 760px;
	margin: 0 0 2rem;
}

.custom-head h2,
.custom-split__text h2,
.custom-cta h2 {
	margin: 0.8rem 0 0.6rem;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
	line-height: 1.12;
	color: var(--primary-strong);
}

.custom-head p,
.custom-split__text p {
	margin: 0 0 1rem;
	color: var(--muted);
	line-height: 1.7;
}

/* Llamado a la accion */
.custom-cta {
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 100%);
	color: #fff;
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 0.4rem;
}

.custom-cta h2 {
	color: #fff;
	max-width: 720px;
}

.custom-cta p {
	max-width: 640px;
	margin: 0 0 1.2rem;
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.7;
}

.custom-cta .section-kicker {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* Imagen o video con texto */
.custom-split {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.custom-split__media img,
.custom-video-frame {
	width: 100%;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.custom-split__media img {
	display: block;
	height: auto;
}

.custom-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #1b1220;
}

.custom-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 860px) {
	.custom-split:not(.no-media) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3rem;
	}
}

/* Galeria de videos */
.custom-video-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.custom-video-card {
	margin: 0;
}

.custom-video-card figcaption {
	margin-top: 0.7rem;
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 700;
	color: var(--ink);
}

@media (min-width: 640px) {
	.custom-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.custom-video-grid.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.custom-video-grid.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Cifras */
.custom-stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.custom-stat {
	padding: 1.6rem 1.4rem;
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius-md);
	background: var(--surface-solid);
	text-align: center;
}

.custom-stat strong {
	display: block;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: clamp(2rem, 4vw, 2.9rem);
	line-height: 1.1;
	color: var(--primary);
}

.custom-stat span:not([data-count]) {
	display: block;
	margin-top: 0.4rem;
	color: var(--muted);
}

/* Preguntas frecuentes */
.custom-faq {
	display: grid;
	gap: 0.8rem;
	max-width: 920px;
}

.custom-faq.is-cards {
	max-width: none;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.custom-faq__item {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-solid);
	padding: 0;
}

.custom-faq.is-cards .custom-faq__item {
	padding: 1.3rem 1.4rem;
}

.custom-faq__item h3,
.custom-faq__item summary {
	margin: 0;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--primary-strong);
}

.custom-faq__item summary {
	padding: 1.1rem 1.3rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.custom-faq__item summary::-webkit-details-marker {
	display: none;
}

.custom-faq__item summary::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
	color: var(--primary);
}

.custom-faq__item[open] summary::after {
	content: "\2212";
}

.custom-faq__item summary:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.custom-faq__item > div {
	padding: 0 1.3rem 1.2rem;
}

.custom-faq__item p {
	margin: 0.6rem 0 0;
	color: var(--muted);
	line-height: 1.7;
}

/* Carrusel de noticias */
.custom-news-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 1fr);
	gap: 1.25rem;
	overflow-x: auto;
	padding: 0.2rem 0.2rem 1rem;
	scroll-snap-type: x mandatory;
}

.custom-news-track > .home-posts-news-card {
	scroll-snap-align: start;
}

@media (min-width: 980px) {
	.custom-news-track {
		grid-auto-columns: calc((100% - 2.5rem) / 3);
	}
}

.custom-actions {
	margin: 1.5rem 0 0;
}

.custom-shortcode {
	overflow-x: auto;
}

@media (max-width: 640px) {
	.custom-section {
		padding: 3rem 0;
	}
}
