/* Merkarte · portada.
 *
 * Secciones propias de la portada: presentación, cómo llegar y PechaKucha. El
 * hero y las bandas de artistas son patrones y su CSS vive en componentes.css.
 * Sin tamaños de letra: la tipografía vive en theme.json y styles/.
 *
 * @package zaguan
 */

/* --- Contenedores de la portada -----------------------------------------
   #inicio agrupa el hero y la presentación, como en el diseño: la mancha azul
   cubre los dos y la presentación la deja ver. #artistas agrupa las tres
   bandas y es el destino del botón «Participantes». */
.mk-inicio {
	background: url(../img/hero-mancha.jpg) center top / cover no-repeat var(--wp--preset--color--mk-niebla);
}

body .mk-inicio > *,
body .mk-artistas-grupo > * {
	margin-block: 0;
}

body .mk-inicio .mk-hero {
	background: none;
}

/* --- Cómo llegar: sello decorativo del panel ----------------------------- */
.mk-como-llegar__panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -58%;
	right: -52%;
	width: min(115%, 820px);
	aspect-ratio: 1;
	pointer-events: none;
	background: url(../img/sello.png) center / contain no-repeat;
}

/* --- Presentación ---------------------------------------------------------- */
.mk-presentacion {
	box-sizing: border-box;
	min-height: min(100svh, 1100px);
	padding-block: var(--wp--custom--section--padding);
	padding-inline: var(--wp--style--root--padding-left);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mk-presentacion .mk-presentacion__texto {
	max-width: 30em;
	margin-inline: auto;
	text-align: left;
	filter: drop-shadow(0 0 2px color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--wp--preset--color--base) 75%, transparent));
}

.mk-presentacion .is-style-entradilla {
	margin: 0;
	text-wrap: pretty;
}

.mk-presentacion .is-style-cita {
	margin: 1.5em 0 0;
	text-align: left;
	text-wrap: balance;
}

@media (max-width: 760px) {
	.mk-presentacion {
		padding-block: 72px 120px;
	}
}

/* --- Cómo llegar ----------------------------------------------------------- */
.mk-como-llegar {
	display: flex;
	flex-wrap: wrap;
	margin-block: 0;
	padding: 0;
}

.mk-como-llegar__foto {
	position: relative;
	overflow: hidden;
	flex: 1 1 480px;
	min-height: clamp(360px, 36vw, 680px);
	margin: 0;
}

.mk-como-llegar__img {
	position: absolute;
	inset: 0;
	margin: 0;
}

.mk-como-llegar__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
}

.mk-como-llegar__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 480px;
	min-height: clamp(360px, 36vw, 680px);
	margin: 0;
	padding-block: var(--wp--custom--section--padding);
	padding-inline: var(--wp--preset--spacing--70);
}

.mk-como-llegar__caja {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: fit-content;
	max-width: 100%;
	margin: 0;
}

.mk-como-llegar__fechas {
	margin: 0 0 clamp(16px, 1.4vw, 28px);
}

.mk-como-llegar__fechas strong {
	font-weight: 600;
}

.mk-como-llegar__titulo {
	margin: 0;
	line-height: var(--wp--custom--leading--tight);
}

.mk-como-llegar__dato {
	margin: clamp(28px, 2.4vw, 44px) 0 0;
	padding-top: clamp(22px, 1.8vw, 32px);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base-2) 40%, transparent);
}

.mk-como-llegar__dt {
	margin: 0;
}

.mk-como-llegar__dd {
	margin: 6px 0 0;
	line-height: var(--wp--custom--leading--snug);
}

.mk-como-llegar__cta {
	margin: clamp(32px, 2.8vw, 52px) 0 0;
}

.mk-como-llegar .mk-btn--claro .wp-block-button__link {
	--mk-hov: var(--wp--preset--color--accent-2);
	--mk-hov-txt: var(--wp--preset--color--contrast);
	min-height: 48px;
	background: transparent;
	border-color: currentColor;
	color: var(--wp--preset--color--base-2);
}

.mk-como-llegar .mk-btn--claro .wp-block-button__link:hover,
.mk-como-llegar .mk-btn--claro .wp-block-button__link:focus-visible {
	border-color: var(--mk-hov);
	color: var(--mk-hov-txt);
}

@media (max-width: 760px) {
	.mk-como-llegar__foto {
		min-height: 440px;
		height: 440px;
	}

	.mk-como-llegar__panel {
		min-height: 440px;
		padding-block: var(--wp--preset--spacing--60);
		padding-inline: var(--wp--preset--spacing--50);
	}
}

/* --- PechaKucha ------------------------------------------------------------ */
.mk-pechakucha {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(380px, 34vw, 660px);
	padding: var(--wp--custom--section--padding) 24px;
}

.mk-pechakucha::before {
	content: "";
	position: absolute;
	inset: -10% 0;
	z-index: -1;
	pointer-events: none;
	background: url(../img/pechakucha-fondo.jpg) center / cover no-repeat;
}

.mk-pechakucha__cuerpo {
	max-width: 100%;
	width: fit-content;
}

body .mk-pechakucha__cuerpo > * {
	margin-block: 0;
}

.mk-pechakucha__titulo {
	position: relative;
}

.mk-pechakucha__icono {
	position: absolute;
	top: 0.02em;
	left: -0.08em;
	width: 0.3em;
	height: 0.3em;
	margin: 0;
}

.mk-pechakucha__icono img {
	display: block;
	width: 100%;
	height: 100%;
}

body .mk-pechakucha__titulo > .mk-pechakucha__h {
	margin: 0;
	line-height: 0.84;
}

.mk-pechakucha__l1,
.mk-pechakucha__l2 {
	display: block;
}

.mk-pechakucha__l1 {
	padding-inline-start: 0.46em;
}

body .mk-pechakucha__cuerpo > .mk-pechakucha__datos {
	display: grid;
	grid-template-columns: 36.8% 1fr auto;
	margin-block-start: clamp(16px, 1.6vw, 30px);
}

.mk-pechakucha__dato {
	margin: 0;
	line-height: 1.05;
}

body .mk-pechakucha__cuerpo > .mk-pechakucha__pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-block-start: clamp(40px, 3.4vw, 64px);
}

.mk-pechakucha__texto {
	margin: 0;
}

.mk-pechakucha__texto strong {
	font-weight: 700;
}

.mk-pechakucha__cta {
	margin: 0;
}

body .mk-pechakucha .mk-btn--pk.is-style-outline > .wp-block-button__link {
	--mk-hov: var(--wp--preset--color--accent-2);
	--mk-hov-txt: var(--wp--preset--color--contrast);
	min-height: 48px;
	padding-inline: 26px;
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--heading);
	letter-spacing: var(--wp--custom--tracking--wide);
}

body .mk-pechakucha .mk-btn--pk.is-style-outline > .wp-block-button__link:hover,
body .mk-pechakucha .mk-btn--pk.is-style-outline > .wp-block-button__link:focus-visible {
	color: var(--mk-hov-txt);
	border-color: var(--mk-hov);
}
