/* =========================================================
   Xtellaris Event Description Widget — xt-event-desc.css
   Columna imagen + overlay | Columna contenido + stats
   ========================================================= */

.xt-evdesc,
.xt-evdesc * {
	box-sizing: border-box;
}

/* ── Variables ───────────────────────────────────────────── */
.xt-evdesc {
	--xt-ev-primary:    #1e8eff;
	--xt-ev-accent:     #006a3a;
	--xt-ev-text:       #0a0a0a;
	--xt-ev-muted:      #6b7280;
	--xt-ev-overlay-bg: rgba(12, 15, 16, 0.9);
}

/* ── Wrapper ─────────────────────────────────────────────── */
.xt-evdesc {
	padding: 80px 0;
	overflow: hidden;
}

.xt-evdesc__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ── Grid ────────────────────────────────────────────────── */
.xt-evdesc__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}

/* ── Columna imagen ──────────────────────────────────────── */
.xt-evdesc__image-col {
	position: relative;
}

/* Borde decorativo desplazado */
.xt-evdesc__image-deco {
	position: absolute;
	top: -16px;
	left: -16px;
	right: 16px;
	bottom: 16px;
	border: 2px solid rgba(30, 142, 255, 0.18);
	border-radius: 24px;
	pointer-events: none;
	z-index: 0;
}

.xt-evdesc__image-wrap {
	position: relative;
	z-index: 1;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.xt-evdesc__image-placeholder {
	aspect-ratio: 4 / 3;
	background: #e0e3e4;
}

.xt-evdesc__image {
	width: 100%;
	height: auto;
	display: block;
	transition: filter 0.6s ease;
}

.xt-evdesc__image.is-grayscale {
	filter: grayscale(100%);
}

.xt-evdesc__image-wrap:hover .xt-evdesc__image.is-grayscale {
	filter: grayscale(0%);
}

/* ── CTA Botón ───────────────────────────────────────────── */
.xt-evdesc__cta-wrap {
	margin-top: 24px;
	z-index: 2;
	position: relative;
}

.xt-evdesc__cta {
	display: inline-block;
	padding: 16px 32px;
	background-color: var(--xt-ev-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 20px rgba(30, 142, 255, 0.2);
}

.xt-evdesc__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(30, 142, 255, 0.35);
	filter: brightness(1.1);
}

/* ── Overlay ─────────────────────────────────────────────── */
.xt-evdesc__overlay {
	position: absolute;
	bottom: 24px;
	right: 24px;
	z-index: 2;
	max-width: 240px;
	padding: 16px 18px;
	border-radius: 18px;
	background-color: var(--xt-ev-overlay-bg);
	border: 1px solid rgba(30, 142, 255, 0.25);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.xt-evdesc__overlay-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.xt-evdesc__overlay-dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--xt-ev-primary);
	box-shadow: 0 0 0 3px rgba(30, 142, 255, 0.2);
}

.xt-evdesc__overlay-status {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--xt-ev-primary);
}

.xt-evdesc__overlay-title {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.xt-evdesc__overlay-desc {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
}

/* ── Columna contenido ───────────────────────────────────── */
.xt-evdesc__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Eyebrow label */
.xt-evdesc__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--xt-ev-primary);
}

/* Título */
.xt-evdesc__title {
	margin: 0;
	font-size: clamp(1.8rem, 3.5vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--xt-ev-text);
}

/* Párrafos */
.xt-evdesc__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.xt-evdesc__body p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--xt-ev-muted);
}

/* ── Stats grid ──────────────────────────────────────────── */
.xt-evdesc__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.xt-evdesc-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xt-evdesc-stat__icon {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: var(--xt-ev-accent);
	margin-bottom: 4px;
}

.xt-evdesc-stat__icon svg {
	width: 28px;
	height: 28px;
}

.xt-evdesc-stat__value {
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--xt-ev-text);
}

.xt-evdesc-stat__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--xt-ev-text);
}

.xt-evdesc-stat__sublabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--xt-ev-muted);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 900px) {
	.xt-evdesc__grid {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
}

@media (max-width: 480px) {
	.xt-evdesc {
		padding: 56px 0;
	}

	.xt-evdesc__container {
		padding: 0 20px;
	}

	.xt-evdesc__overlay {
		position: static;
		max-width: 100%;
		margin-top: 16px;
		border-radius: 14px;
	}

	.xt-evdesc__image-deco {
		display: none;
	}

	.xt-evdesc__stats {
		grid-template-columns: 1fr 1fr;
	}
}
