/**
 * Zenth Toolkit — Event Hero (widget zenth_event_hero).
 *
 * Hero del single de evento (mockup Expo CR V4):
 *   §0  Full-bleed + neutralizar el fondo del container legacy
 *   §1  Fondo (foto + gradientes de legibilidad)
 *   §2  Franja superior (label + countdown + pill)
 *   §3  Centro (edición + título sólido/outline + datos + CTAs)
 *   §4  Mini-cards de precio
 *   §5  Responsive
 *
 * Tokens de global.css: --cr-color-primary #c00000, --cr-font-display
 * (Super Brigade italic), --cr-font-body (Montserrat).
 */


/* ═══════════════════════════════════════════════════════════════════════
   §0 · FULL-BLEED + CONTAINER LEGACY
   ── El container Elementor .cr-evt-single-hero trae fondo rojo + padding
      con !important (eventos.css §6). Cuando adentro vive el hero nuevo,
      se neutraliza: el widget maneja su propio fondo y aire.
   ═══════════════════════════════════════════════════════════════════════ */

body.single-cr_event .cr-evt-single-hero:has(.zenth-evt-hero),
body.single-cr_event .cr-evt-single-hero.e-con:has(.zenth-evt-hero) {
	background: var(--cr-color-black, #000) !important;
	padding: 0 !important;
}

body.single-cr_event .cr-evt-single-hero:has(.zenth-evt-hero)::before {
	display: none;
}

.zenth-evt-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	display: flex;
	flex-direction: column;
	min-height: min(920px, calc(100svh - var(--cr-header-total-height, 108px)));
	overflow: hidden;
	color: var(--cr-color-white, #fff);
	font-family: var(--cr-font-body, 'Montserrat', sans-serif);
}


/* ═══════════════════════════════════════════════════════════════════════
   §1 · FONDO
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-evt-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* Fallback sin foto: degradado oscuro de marca (como el hero legacy). */
	background: linear-gradient(135deg, #2a0000 0%, var(--cr-color-black, #000) 100%);
}

.zenth-evt-hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Gradientes de legibilidad: techo oscuro (franja + header), leve velo
   general y fundido a negro hacia la sección siguiente. */
.zenth-evt-hero__bg-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.86) 0%,
		rgba(0, 0, 0, 0.45) 20%,
		rgba(0, 0, 0, 0.32) 55%,
		rgba(0, 0, 0, 0.62) 82%,
		rgba(0, 0, 0, 0.92) 100%
	);
}

.zenth-evt-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 22px var(--cr-container-pad, 32px) 64px;
}


/* ═══════════════════════════════════════════════════════════════════════
   §2 · FRANJA SUPERIOR — label · countdown · pill
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-evt-hero__strip {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}

/* Columnas explícitas: si el evento no tiene fecha el countdown no se
   renderiza, y con auto-placement el pill se iría a la columna central. */
.zenth-evt-hero__strip-label {
	grid-column: 1;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
}

.zenth-evt-hero__count {
	grid-column: 2;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.zenth-evt-hero__count-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 44px;
}

.zenth-evt-hero__count-unit--hidden,
.zenth-evt-hero__count-unit[hidden] {
	display: none;
}

.zenth-evt-hero__count-num {
	font-size: 27px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--cr-color-white, #fff);
	font-variant-numeric: tabular-nums;
}

.zenth-evt-hero__count-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.zenth-evt-hero__count-sep {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.85);
}

.zenth-evt-hero__pill {
	grid-column: 3;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--cr-color-white, #fff);
	border-radius: 5px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #0a0a0a;
	white-space: nowrap;
}

.zenth-evt-hero__pill .cr-icon {
	width: 14px;
	height: 14px;
	fill: var(--cr-color-primary, #c00000);
	flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   §3 · CENTRO — edición · título · datos · CTAs
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-evt-hero__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 26px;
	padding: clamp(28px, 5vh, 56px) 0;
	text-align: center;
}

.zenth-evt-hero__edition {
	display: inline-block;
	padding: 9px 20px;
	background: var(--cr-color-primary, #c00000);
	border-radius: 3px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
}

.zenth-evt-hero__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(4px, 1vw, 12px);
	margin: 0;
	font-family: var(--cr-font-display, 'Super Brigade', Impact, sans-serif);
	font-weight: 400;
	font-style: italic;
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.zenth-evt-hero__title-solid,
.zenth-evt-hero__title-outline {
	display: block;
	font-size: clamp(46px, 8vw, 112px);
}

.zenth-evt-hero__title-solid {
	color: var(--cr-color-white, #fff);
}

.zenth-evt-hero__title-outline {
	color: transparent;
	-webkit-text-stroke: 2px var(--cr-color-white, #fff);
	text-stroke: 2px var(--cr-color-white, #fff);
}

/* Navegadores sin text-stroke: línea sólida (mejor que invisible). */
@supports not ((-webkit-text-stroke: 2px #fff) or (text-stroke: 2px #fff)) {
	.zenth-evt-hero__title-outline {
		color: var(--cr-color-white, #fff);
	}
}

.zenth-evt-hero__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 38px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zenth-evt-hero__info-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
}

.zenth-evt-hero__info-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.zenth-evt-hero__info-icon .cr-icon {
	width: 16px;
	height: 16px;
	fill: var(--cr-color-primary, #c00000);
}

.zenth-evt-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.zenth-evt-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff) !important;
	text-decoration: none !important;
	-webkit-backdrop-filter: blur(4px); /* Safari 15-17 */
	backdrop-filter: blur(4px);
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.zenth-evt-hero__cta:hover {
	background: var(--cr-color-white, #fff);
	color: #0a0a0a !important;
	transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════════════
   §4 · MINI-CARDS DE PRECIO
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-evt-hero__cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 40px;
	margin-top: auto;
	padding-top: 26px;
}

.zenth-evt-hero__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: min(420px, 100%);
	padding: 36px 28px 28px;
	border-radius: 4px;
	text-align: center;
	text-decoration: none !important;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.zenth-evt-hero__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.zenth-evt-hero__card--red {
	background: var(--cr-color-primary, #c00000);
}

.zenth-evt-hero__card--dark {
	background: rgba(10, 10, 10, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-backdrop-filter: blur(6px); /* Safari 15-17 */
	backdrop-filter: blur(6px);
}

/* Chip superior, montado sobre el borde de la card. */
.zenth-evt-hero__card-chip {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	padding: 7px 22px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
	white-space: nowrap;
}

.zenth-evt-hero__card--red .zenth-evt-hero__card-chip {
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.zenth-evt-hero__card--dark .zenth-evt-hero__card-chip {
	background: rgba(10, 10, 10, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.75);
}

.zenth-evt-hero__card-sub {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
}

.zenth-evt-hero__card-price {
	font-size: 46px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--cr-color-white, #fff);
	font-variant-numeric: tabular-nums;
}

.zenth-evt-hero__card-caption {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.zenth-evt-hero__card--dark .zenth-evt-hero__card-caption {
	color: rgba(255, 255, 255, 0.7);
}


/* ═══════════════════════════════════════════════════════════════════════
   §5 · RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
	.zenth-evt-hero__strip {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 14px;
		padding-top: 8px;
	}

	/* Reset de las columnas explícitas del desktop: todo a la única columna. */
	.zenth-evt-hero__strip-label,
	.zenth-evt-hero__count,
	.zenth-evt-hero__pill {
		grid-column: 1;
	}

	.zenth-evt-hero__pill {
		justify-self: center;
	}

	.zenth-evt-hero {
		min-height: 0;
	}

	.zenth-evt-hero__center {
		padding: 40px 0 44px;
	}
}

@media (max-width: 600px) {
	.zenth-evt-hero__inner {
		padding-bottom: 48px;
	}

	.zenth-evt-hero__count-num {
		font-size: 22px;
	}

	.zenth-evt-hero__count-sep {
		font-size: 19px;
	}

	.zenth-evt-hero__info {
		gap: 12px 22px;
	}

	.zenth-evt-hero__ctas {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 380px;
		margin: 0 auto;
	}

	.zenth-evt-hero__cards {
		gap: 26px;
	}

	.zenth-evt-hero__card {
		padding: 32px 20px 24px;
	}

	.zenth-evt-hero__card-price {
		font-size: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zenth-evt-hero__cta,
	.zenth-evt-hero__card {
		transition-duration: 0ms;
	}
}
