/* ==========================================================================
   Home — estilos específicos de página (namespace .home-* / .mg-hero)
   Base compartida en main.css. Specs en docs/design-reference.md
   ========================================================================== */

/* ---------------------------------------------------------------- HERO ---- */
.mg-hero {
	position: relative;
	height: 100vh;
	height: 100svh; /* no exceder el viewport */
	background: url("../../images/hero_bg.png") center top / cover no-repeat;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	overflow: hidden;
}
.mg-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(13,11,13,0) 45%, rgba(13,11,13,0.55) 100%);
	pointer-events: none;
}
.mg-hero__inner {
	position: relative; z-index: 2;
	text-align: center;
	padding-bottom: 160px;
}
.mg-hero__eyebrow {
	display: flex; align-items: center; justify-content: center;
	gap: 16px;
	font-family: var(--mg-font-stat); /* Akira Expanded */
	font-weight: 800; font-size: 13px; letter-spacing: 0;
	text-transform: uppercase; color: var(--mg-yellow);
	margin: 0 0 18px;
}
.mg-hero__eyebrow::before, .mg-hero__eyebrow::after {
	content: ""; width: 38px; height: 2px; background: var(--mg-yellow);
}
.mg-hero__title {
	margin: 0;
	line-height: 0;
}
.mg-hero__title img {
	width: clamp(380px, 44vw, 660px);
	height: auto;
}
.mg-hero__dates {
	position: absolute; z-index: 2;
	bottom: 40px; left: 0; right: 0;
	display: flex; align-items: center; justify-content: center; gap: 20px;
}
.mg-hero__dates-icon {
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.mg-hero__dates-icon img { width: 18px; height: auto; }
.mg-hero__dates-pill {
	display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 38px; border-radius: 14px;
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--mg-font-grotesk);
	font-weight: 500; font-size: 19px; letter-spacing: 0;
	text-transform: uppercase; color: var(--mg-white); white-space: nowrap;
}
.mg-hero__dates-pill strong { font-weight: 700; }

/* ------------------------------------------------ PRÓXIMAS FECHAS ---- */
.home-dates {
	padding: 110px 0 120px;
}
.home-dates__list {
	display: flex;
	flex-direction: column;
	gap: 60px;
}
.home-dates__row {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 135px;
	position: relative;
	padding-bottom: 60px;
	border-bottom: 1px solid var(--mg-line);
}
.home-dates__list .home-dates__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.home-dates__num {
	flex: 0 0 auto;
	align-self: flex-start;
	width: 48px;
	font-family: var(--mg-font-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1px;
	color: var(--mg-text);
}
.home-dates__thumb {
	flex: 0 0 auto;
	align-self: stretch;
	width: 320px;
	background: linear-gradient(135deg, #2a2622, #14110f);
}
.home-dates__info {
	flex: 1 1 auto;
	min-width: 0;
	padding-left: 24px;
}
.home-dates__meta {
	font-family: var(--mg-font-display); /* Oswald */
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -2px;
	text-transform: uppercase;
	color: var(--mg-text);
	margin: 0 0 6px;
}
.home-dates__meta span {
	color: var(--mg-gold-muted);
	margin: 0 8px;
}
.home-dates__city {
	font-family: var(--mg-font-place); /* ResotYc */
	font-weight: 400;
	font-size: 53px;
	line-height: 1;
	letter-spacing: -2px;
	text-transform: uppercase;
	color: var(--mg-white);
	margin: 0 0 30px;
}
.home-dates__venue {
	font-family: var(--mg-font-narrow); /* Archivo Narrow */
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--mg-yellow);
	margin: 6px 0 0;
}
.home-dates__btn {
	flex: 0 0 auto;
	align-self: center;
}
/* estado agotado: pastilla apagada, sin enlace */
.home-dates__btn--soldout {
	cursor: default;
	pointer-events: none;
}
.home-dates__btn--soldout .mg-btn__label {
	background: rgba(255, 255, 255, 0.07);
	color: var(--mg-muted);
	letter-spacing: -1px;
}
.home-dates__empty {
	font-family: var(--mg-font-body);
	font-size: 18px;
	color: var(--mg-muted);
	text-align: center;
	padding: 40px 0;
}

/* ------------------------------------------------ APARICIONES -------- */
.home-apariciones {
	display: flex;
	flex-direction: column;
	padding: 0 0 110px; /* el aire arriba del marquee lo da su propio margin (simétrico) */
}
.home-apariciones__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 230px;
}
.home-apariciones__side {
	flex: 0 0 auto;
	font-family: var(--mg-font-narrow);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--mg-gold-muted);
}
.home-apariciones__quote {
	flex: 0 1 808px;
	max-width: 808px;
	margin: 0 auto;
	text-align: left;
	font-family: var(--mg-font-display);
	font-weight: 600;
	font-size: 52px;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mg-muted);
}
.home-apariciones__quote .is-hl {
	color: var(--mg-white);
	font-weight: 700;
}
.home-apariciones__quote .mg-word { will-change: color; }
.home-apariciones__logos {
	margin: 110px 0; /* espaciado igual arriba y abajo del marquee */
}
.home-apariciones__logos span {
	font-family: var(--mg-font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--mg-text);
	opacity: 0.7;
}

/* ------------------------------------------------ MICHEL GALLERO ----- */
.home-mg {
	position: relative;
	isolation: isolate; /* contiene el mix-blend al fondo de la sección */
	height: 100vh;
	height: 100svh; /* no excede el viewport */
	background-color: var(--mg-bg); /* foto removida — fondo negro por ahora */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}
.home-mg::after {
	content: "";
	position: absolute; inset: 0;
	z-index: -1; /* detrás del contenido, encima de la foto */
	background: linear-gradient(to bottom, rgba(13,11,13,0) 40%, rgba(13,11,13,0.85) 100%);
	pointer-events: none;
}
.home-mg__inner {
	/* sin z-index: que el título mezcle (difference) contra la foto, no contra un contexto aislado */
	position: relative;
	width: 100%;
	padding-bottom: 70px;
}
/* Título como SVG: escala vectorial al 100% del ancho del contenedor
   (= márgenes de los textos), sin distorsión ni JS. viewBox = bbox real del
   texto en ResotYc (medido). */
.home-mg__title {
	margin: 0 0 36px;
	line-height: 0;
}
.home-mg__title-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible; /* nunca recortar el borde del texto */
	mix-blend-mode: difference;
}
.home-mg__title-svg text {
	font-family: var(--mg-font-place); /* ResotYc */
	fill: #fff;
}
.home-mg__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* fluido: no desborda en pantallas chicas */
	gap: 38px;
}
.home-mg__col {
	font-family: var(--mg-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--mg-text);
	margin: 0;
}

/* ------------------------------------------------ VIDEO -------------- */
.home-video {
	position: relative;
	height: 100vh;
	height: 100svh; /* no excede el viewport */
	overflow: hidden;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* el video ES la sección (el poster = thumbnail) */
.home-video__media {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover;
}
/* velo sutil para legibilidad del botón; se desvanece al reproducir */
.home-video::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: rgba(13, 11, 13, 0.28);
	transition: opacity 0.5s ease;
}
.home-video.is-playing::after { opacity: 0; }
.home-video__btn { position: relative; z-index: 2; transition: opacity 0.35s ease; }
.home-video.is-playing .home-video__btn { opacity: 0; pointer-events: none; }
/* El ícono play apunta a la derecha por sí solo: anular la rotación del .mg-btn */
.home-video__btn .mg-btn__arrow img { transform: none; }

/* La sección de Contacto vive en assets/css/contact.css (compartida Home + página Contacto). */


/* ==========================================================================
   RESPONSIVE — Fase 3: Home (tablet/móvil)
   ========================================================================== */
@media (max-width: 1024px) {
	/* Fila de fechas: apila (num+info arriba, thumb full-width, botón) */
	.home-dates { padding: 70px 0 80px; }
	.home-dates__list { gap: 44px; }
	.home-dates__row { flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; padding-bottom: 36px; }
	.home-dates__num { align-self: flex-start; width: auto; }
	.home-dates__info { order: 2; flex: 1 1 auto; padding-left: 0; }
	.home-dates__thumb { order: 3; width: 100%; aspect-ratio: 16 / 9; align-self: auto; margin-top: 10px; }
	.home-dates__btn { order: 4; align-self: flex-start; margin-top: 12px; }
	.home-dates__city { font-size: clamp(32px, 10vw, 46px); margin-bottom: 14px; }
	.home-dates__meta { font-size: 17px; }

	/* Michel Gallero: 3 columnas → 1 */
	.home-mg { height: auto; min-height: 100svh; padding: 120px 0 70px; align-items: flex-end; }
	.home-mg__cols { grid-template-columns: 1fr; gap: 22px; }
	.home-mg__col { font-size: 15px; }

	/* Apariciones: apila labels + quote más chico */
	.home-apariciones__inner { flex-direction: column; gap: 22px; }
	.home-apariciones__quote { flex: 1 1 auto; font-size: clamp(26px, 7vw, 40px); line-height: 1.28; text-align: center; }
	.home-apariciones__logos { margin: 56px 0; }
}

@media (max-width: 600px) {
	/* Hero: imagen y pill de fechas */
	.mg-hero__inner { padding-bottom: 120px; }
	.mg-hero__title img { width: min(86vw, 380px); }
	.mg-hero__eyebrow { font-size: 11px; letter-spacing: 0; gap: 10px; }
	.mg-hero__eyebrow::before, .mg-hero__eyebrow::after { width: 24px; }
	.mg-hero__dates { gap: 10px; }
	.mg-hero__dates-icon { width: 48px; height: 48px; }
	.mg-hero__dates-pill { height: 48px; padding: 0 20px; font-size: 14px; }
}

/* ==========================================================================
   TICKETS — empty state creativo ("próximamente") cuando no hay fechas
   ========================================================================== */
.mg-soon {
	position: relative;
	min-height: 84vh;
	display: flex;
	align-items: center;
	background: var(--mg-bg);
	overflow: hidden;
}
.mg-soon__glow {
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(58% 50% at 50% 38%, rgba(255,205,99,0.10), rgba(13,11,13,0) 70%);
}
.mg-soon__inner {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.mg-soon .mg-eyebrow { justify-content: center; }
.mg-soon__title {
	font-family: var(--mg-font-place); /* ResotYc */
	font-size: clamp(40px, 7vw, 104px);
	line-height: 1.02;
	letter-spacing: -2px;
	text-transform: uppercase;
	color: var(--mg-text);
	margin: 18px 0 24px;
}
.mg-soon__text {
	font-family: var(--mg-font-body);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.7;
	color: var(--mg-muted);
	max-width: 620px;
	margin: 0 auto 34px;
}
.mg-soon__cta { margin: 0 auto; }
