/* =========================================================
   Xtellaris Hero Widget — xt-hero.css
   ========================================================= */

/* ── Reset & Box ────────────────────────────────────────── */
.xt-hero *,
.xt-hero *::before,
.xt-hero *::after {
	box-sizing: border-box;
}

/* ── Hero Root ──────────────────────────────────────────── */
.xt-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 24px;
	padding: 0;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ── Diagonal background pattern ───────────────────────── */
.xt-hero__bg-pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(-55deg,
			rgba(255, 255, 255, 0.35) 0px,
			rgba(255, 255, 255, 0.35) 1px,
			transparent 1px,
			transparent 60px);
	z-index: 0;
}

/* ── Main two-column layout ─────────────────────────────── */
.xt-hero__main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	width: 100%;
	margin: 0 auto;  /* Permite que max-width + margin auto centren el bloque */
	flex-grow: 1;
	min-height: inherit;
	padding: 60px;
}

/* ── Left column: Content ───────────────────────────────── */
.xt-hero__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.xt-hero__title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #0a0a0a;
	margin: 0;
	max-width: 560px;
}

.xt-hero__subtitle {
	font-size: 1rem;
	line-height: 1.65;
	color: #6b7280;
	margin: 0;
	max-width: 480px;
}

/* ── Unified CTA button ────────────────────────────────────── */
.xt-hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.xt-hero__btn-unified {
    display: inline-flex;
    align-items: center;
    gap: 0; /* Gap is handled by internal spans */
    background-color: #1e8eff;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    padding: 4px 4px 4px 32px; /* Large left padding for text */
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(30, 142, 255, 0.2);
}

.xt-hero__btn-text {
    font-size: 1rem;
    padding-right: 20px;
}

.xt-hero__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.xt-hero__btn-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

.xt-hero__btn-unified:hover {
    background-color: #0077ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 142, 255, 0.3);
    color: #fff;
}

.xt-hero__btn-unified:hover .xt-hero__btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

/* ── Coming Soon form overrides (reuse xt-countdown .xt-notify styles) ─────── */
.xt-hero .xt-notify__label {
	color: rgba(10, 10, 10, 0.65);
}

.xt-hero .xt-notify__form {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(30, 142, 255, 0.18);
}

.xt-hero .xt-notify__input {
	color: #0a0a0a;
}

.xt-hero .xt-notify__input::placeholder {
	color: rgba(10, 10, 10, 0.35);
}

.xt-hero .xt-notify__success {
	color: rgba(10, 10, 10, 0.85);
}

/* ── Right column: Container ────────────────────────────── */
.xt-hero__right {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Right column: Cards ────────────────────────────────── */
.xt-hero__cards {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 480px;
}

.xt-auction-card {
	position: absolute;
	width: var(--xt-card-w, 240px);
    height: var(--xt-card-h, 310px);
    display: flex;
    flex-direction: column;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.07),
		0 20px 40px -10px rgba(0, 0, 0, 0.15);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	position: relative;
	/* Para el efecto shine */
	animation: xt-card-float 4s ease-in-out infinite;
	will-change: transform;
    display: flex;
    flex-direction: column;
}

/* Animación de flotación */
@keyframes xt-card-float {
	0%, 100% {
		transform: translate(-50%, -50%)
		           rotate(var(--xt-card-rot, 0deg))
		           translate(var(--xt-card-tx, 0px), var(--xt-card-ty, 0px));
		box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 20px 40px -10px rgba(0, 0, 0, 0.18);
	}

	50% {
		transform: translate(-50%, -50%)
		           rotate(var(--xt-card-rot, 0deg))
		           translate(var(--xt-card-tx, 0px), calc(var(--xt-card-ty, 0px) - 14px));
		box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 28px 50px -10px rgba(0, 0, 0, 0.10);
	}
}

/* Efecto de brillo (shine) reflectante */
.xt-auction-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150%;
	width: 80%;
	height: 100%;
	background: linear-gradient(to right,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0.4) 50%,
			rgba(255, 255, 255, 0) 100%);
	transform: skewX(-25deg);
	transition: left 0.7s ease-in-out;
	pointer-events: none;
	z-index: 15;
}

/* Default stacking positions for up to 5 cards */
.xt-auction-card:nth-child(1) {
	z-index: 10;
	--xt-card-rot: -8deg;
	--xt-card-tx: calc(-1.2 * var(--xt-cards-offset, 45px));
	--xt-card-ty: -15px;
}

.xt-auction-card:nth-child(2) {
	z-index: 20;
	--xt-card-rot: 0deg;
	--xt-card-tx: 0px;
	--xt-card-ty: 0px;
}

.xt-auction-card:nth-child(3) {
	z-index: 10;
	--xt-card-rot: 8deg;
	--xt-card-tx: calc(1.2 * var(--xt-cards-offset, 45px));
	--xt-card-ty: -15px;
}

.xt-auction-card:nth-child(4) {
	z-index: 5;
	--xt-card-rot: -14deg;
	--xt-card-tx: calc(-2.2 * var(--xt-cards-offset, 45px));
	--xt-card-ty: -35px;
}

.xt-auction-card:nth-child(5) {
	z-index: 5;
	--xt-card-rot: 14deg;
	--xt-card-tx: calc(2.2 * var(--xt-cards-offset, 45px));
	--xt-card-ty: -35px;
}

/* Apply transforms using the variables defined above */
.xt-auction-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(var(--xt-card-rot, 0deg)) translate(var(--xt-card-tx, 0px), var(--xt-card-ty, 0px));
}

.xt-auction-card:hover {
	z-index: 99 !important;
	animation-play-state: paused;
	transform: translate(-50%, -50%)
	           rotate(var(--xt-card-hover-rot, 0deg))
	           translate(var(--xt-card-tx, 0px), var(--xt-card-ty, 0px))
	           scale(1.05) translateY(-15px) !important;
	box-shadow:
		0 25px 50px -12px rgba(0, 0, 0, 0.25),
		0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.xt-auction-card:hover::after {
	left: 150%;
}

/* Card image */
.xt-card__image-wrap {
	position: relative;
	height: 45%; /* DINÁMICO: 45% de la altura de la tarjeta */
	background: #f1f5f9;
	overflow: hidden;
}

.xt-card__image-wrap--placeholder {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.xt-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Card body */
.xt-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1; /* Ocupa el resto de la tarjeta */
	gap: 0.5rem;
	position: relative;
}

/* Timer badge — positioned inside image wrap at top right */
.xt-card__timer {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #1a1a1a;
	background-color: #ffe600;
	border-radius: 100px;
	white-space: nowrap;
	line-height: 1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	z-index: 5;
}

.xt-card__timer svg {
	flex-shrink: 0;
}

.xt-card__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0a0a0a;
	margin: 0;
	line-height: 1.2;
}

.xt-card__desc {
	font-size: 0.72rem;
	line-height: 1.5;
	color: #6b7280;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

/* Card footer: Apply button + price */
.xt-card__footer {
	margin-top: auto; /* Empuja siempre al final */
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.xt-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 20px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #fff;
	background-color: #1e8eff;
	border-radius: 100px;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.xt-card__btn:hover {
	background-color: #0a7ae8;
	color: #fff;
}

.xt-card__price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

.xt-card__price svg {
	color: #9ca3af;
	flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
	.xt-hero__main {
		padding: 60px 40px 40px;
		gap: 24px;
	}

	.xt-auction-card {
		width: 200px;
	}

	.xt-card__image-wrap {
		height: 120px;
	}
}

@media (max-width: 768px) {
	.xt-hero {
		border-radius: 16px;
		padding: 0 0 40px;
		overflow: hidden;
	}

	.xt-hero__main {
		grid-template-columns: 1fr;
		min-height: unset;
		padding: 48px 20px 32px;
		gap: 40px;
	}

	.xt-hero__content {
		align-items: center;
		text-align: center;
	}

	.xt-hero__title {
		font-size: clamp(1.75rem, 6vw, 2.5rem);
		max-width: 100%;
		word-break: break-word;
		overflow-wrap: break-word;
	}

	.xt-hero__subtitle {
		font-size: 0.95rem;
		max-width: 100%;
	}

	.xt-hero__cta {
		justify-content: center;
		gap: 10px;
	}

	.xt-hero__btn-primary {
		padding: 14px 24px;
		font-size: 0.9rem;
	}

	.xt-hero__btn-arrow {
		width: 48px;
		height: 48px;
	}

	/* ── Cards: Stacked patterns for mobile ── */
	.xt-hero__cards {
		min-height: 380px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.xt-auction-card {
		width: var(--xt-card-w, 150px);
		height: var(--xt-card-h, 220px);
	}

	.xt-card__image-wrap {
		height: 90px;
	}

	/* Patttern for mobile: slightly more vertical overlap */
	.xt-auction-card:nth-child(1) {
		--xt-card-rot: -6deg;
		--xt-card-tx: calc(-0.7 * var(--xt-cards-offset));
		--xt-card-ty: -40px;
	}

	.xt-auction-card:nth-child(2) {
		--xt-card-rot: 4deg;
		--xt-card-tx: calc(0.7 * var(--xt-cards-offset));
		--xt-card-ty: 20px;
	}

	.xt-auction-card:nth-child(3) {
		--xt-card-rot: -2deg;
		--xt-card-tx: 0px;
		--xt-card-ty: 70px;
	}

	.xt-auction-card:nth-child(4) {
		--xt-card-rot: 8deg;
		--xt-card-tx: calc(0.5 * var(--xt-cards-offset));
		--xt-card-ty: -80px;
	}
}

@media (max-width: 480px) {
	.xt-hero__main {
		padding: 40px 16px 24px;
		gap: 32px;
		display: flex;
		flex-direction: column;
	}

	.xt-hero__title {
		font-size: clamp(1.5rem, 7vw, 2rem);
	}

	.xt-hero__subtitle {
		font-size: 0.875rem;
	}

	.xt-hero__cards {
		min-height: 320px;
		padding: 0;
	}

	.xt-auction-card {
		width: var(--xt-card-w, 135px);
	}

	.xt-card__image-wrap {
		height: 80px;
	}

	.xt-card__body {
		padding: 10px 12px 12px;
	}

	.xt-card__title {
		font-size: 0.8rem;
	}

	.xt-card__btn {
		padding: 5px 14px;
		font-size: 0.7rem;
	}

	.xt-card__price {
		font-size: 0.65rem;
	}
}