/* ============================================================
   cedares — Home · Banner principal (hero)
   Figma: 323:2738 (desktop) · 325:5728 (mobile).
   Fondo full-bleed (capas WebP + blend-modes); contenido contenido a 1400px.
   ============================================================ */

.hero {
	background: var(--ced-azul-oscuro);
	color: var(--ced-text);
}

/* --- Escenario (fondo full-bleed) --- */
.hero__stage {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* Base #111132 DENTRO del contexto aislado: los blend-modes (multiply/
	   luminosity) se mezclan contra este oscuro, no contra transparencia. */
	background: var(--ced-azul-oscuro);
	pointer-events: none;
}

.hero__layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

/* Manchas de color — versión móvil (radiales, ancladas arriba-derecha). */
.hero__layer--luces {
	background-image: url('../img/hero/bg-luces-mobile.webp');
	background-position: top right;
}

.hero__layer--pared {
	mix-blend-mode: luminosity;
	/* Luz de ventana — versión móvil (vertical, 576×1490) por defecto. */
	background-image: url('../img/hero/bg-luces-pared-mobile.webp');
}

.hero__layer--textura {
	mix-blend-mode: multiply;
}

.hero__layer--grain {
	mix-blend-mode: multiply;
	/* Grano — versión móvil (vertical) por defecto. */
	background-image: url('../img/hero/bg-grain-mobile.webp');
}

/* Círculo radial difuso (Figma Ellipse 5: fill #111132, blur 237 → /2 = ~118px).
   Anclado abajo-izquierda; el centro queda casi en el borde inferior del hero,
   así la mitad superior se ve y la inferior la tapa la sección siguiente. */
.hero__glow {
	position: absolute;
	left: -90px;
	top: 50%;
	transform: translateY(-50%);
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: var(--ced-azul-oscuro);
	filter: blur(110px);
}

/* --- Marco del contenido (máx. 1400px centrado) --- */
.hero__frame {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

/* Póster (personas + título) */
.hero__artes {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
}

.hero__artes img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Bloque de información --- */
.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 24px 28px 48px;
}

.hero__eyebrow {
	margin: 0;
	color: var(--ced-label);
	font-weight: var(--ced-fw-semibold);
	font-size: 20px;
	letter-spacing: 0.16em;
	text-align: center;
	text-transform: uppercase;
}

.hero__meta {
	display: flex;
	flex-direction: column;
	gap: 30px;
	border-left: 1px solid rgba(255, 255, 255, 0.6);
	padding-left: 30px;
}

.hero__meta-title {
	margin: 0 0 4px;
	font-weight: var(--ced-fw-semibold);
	font-size: 24px;
	color: #fff;
}

.hero__meta-text {
	margin: 0;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
	display: flex;
	gap: 12px;
	/* Móvil: ~60px de aire arriba y abajo de los CTAs (Figma) = gap 32 + margin 28. */
	margin-block: 28px;
}

/* Mobile: los dos CTAs comparten fila (como el Figma). */
.hero__actions .btn {
	flex: 1 1 0;
	min-width: 0;
	min-height: 56px;
	padding: 14px 12px;
	/* Fluido: ~13px en pantallas muy angostas → 15px tope. */
	font-size: clamp(0.8125rem, 3.6vw, 15px);
	text-align: center;
	/* El texto largo («Recorrer las salas») rompe dentro del botón en vez de
	   salirse; nunca desborda su caja. */
	white-space: normal;
	overflow-wrap: break-word;
	line-height: 1.2;
}

/* Pantallas muy angostas (≤300px): los CTAs se apilan para que el texto respire. */
@media (max-width: 300px) {
	.hero__actions {
		flex-direction: column;
	}
}

.hero__credits-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.9);
	font: inherit;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ============================================================
   Desktop (>=1024px) — Figma 323:2738
   ============================================================ */
@media (min-width: 1024px) {
	.hero__frame {
		max-width: 1400px;
		min-height: 674px;
		margin-inline: auto;
		display: block;
	}

	.hero__artes {
		position: absolute;
		z-index: 1;
		right: 0;
		top: 6%;
		width: 62%;
		max-width: 870px;
		margin: 0;
	}

	.hero__inner {
		position: relative;
		max-width: 480px;
		min-height: 674px;
		padding: 0 0 0 112px;
		justify-content: center;
		gap: 40px;
	}

	.hero__eyebrow {
		font-size: 18px;
		text-align: left;
		letter-spacing: 0.2em;
	}

	.hero__meta-title {
		font-size: 22px;
	}

	.hero__meta-text {
		font-size: 14px;
	}

	.hero__actions {
		gap: 16px;
		margin-block: 0;
	}

	.hero__actions .btn {
		flex: 0 0 auto;
		min-height: 60px;
		padding: 10px 28px;
		font-size: 16px;
	}

	/* Glow: en desktop baja a la esquina inferior izquierda. */
	.hero__glow {
		left: -110px;
		top: auto;
		bottom: -300px;
		transform: none;
		width: 640px;
		height: 640px;
		filter: blur(150px);
	}

	/* Luz de ventana — versión desktop (horizontal, 1400×674). */
	.hero__layer--pared {
		background-image: url('../img/hero/bg-luces-pared.webp');
	}

	/* Manchas de color — versión desktop. */
	.hero__layer--luces {
		background-image: url('../img/hero/bg-luces.webp');
		background-position: center;
	}

	/* Grano — versión desktop (horizontal, rotado). */
	.hero__layer--grain {
		background-image: url('../img/hero/bg-grain.webp');
		transform: rotate(-6.8deg) scale(1.3);
		transform-origin: center;
	}
}
