/*
 * Imagen de fondo a ancho completo; debajo, fila con card principal + tres cards a la derecha.
 */

.bt-new-hero-home {
	position: relative;
	overflow: visible;
	background: var(--bg, #f4f6f8);
}

.bt-new-hero-home__backdrop {
	position: relative;
	width: 100%;
	min-height: clamp(260px, 44vh, 560px);
	overflow: hidden;
}

.bt-new-hero-home__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bt-new-hero-home--parallax .bt-new-hero-home__bg {
	height: 250%;
	top: -75%;
	width: 100%;
	left: 0;
	will-change: transform;
}

.bt-new-hero-home__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--bt-bg-overlay, 0.55));
	pointer-events: none;
	z-index: 1;
}

/* Contenido sube y la card principal queda mitad sobre imagen, mitad sobre fondo del sitio */
.bt-new-hero-home__content {
	position: relative;
	z-index: 2;
	margin-top: clamp(-10.5rem, -9vw, -2.5rem);
	padding-bottom: 2.75rem;
}

.bt-new-hero-home__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 1.25rem 1.75rem;
}

/* Card principal: más ancha, alineada a la izquierda del contenedor */
.bt-new-hero-home__intro-card {
	flex: 1 1 20rem;
	max-width: min(36rem, 100%);
	padding: 1.65rem 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(17, 24, 39, 0.08);
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* Columna derecha: empuja el stack hacia la franja blanca (debajo del overlay del hero) */
.bt-new-hero-home__cards-col {
	flex: 0 1 20rem;
	min-width: 260px;
	max-width: 22rem;
	margin-top: clamp(7rem, 18vw, 13rem);
}

.bt-new-hero-home__cards {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
}

/* Card: icono a la izquierda, texto a la derecha (referencia minimal) */
.bt-new-hero-home__card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.5rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	width: 100%;
	max-width: 22rem;
}

.bt-new-hero-home__card-icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary, #1c1e21);
}

.bt-new-hero-home__card-icon svg {
	width: 2.25rem;
	height: 2.25rem;
	display: block;
}

.bt-new-hero-home__card-body {
	flex: 1;
	min-width: 0;
}

.bt-new-hero-home__subtitle {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-secondary, #5c6670);
}

.bt-new-hero-home__title {
	margin: 0 0 1.2rem;
	font-family: "Lexend", sans-serif;
	font-weight: 600;
	font-size: clamp(1.65rem, 3.2vw, 2.75rem);
	line-height: 1.08;
	color: var(--text-primary, #1c1e21);
}

.bt-new-hero-home__line {
	display: block;
}

.bt-new-hero-home__line--muted {
	color: var(--text-secondary, #5c6670);
}

.bt-new-hero-home__line--accent {
	text-decoration: none;
}

.bt-new-hero-home__underline-word {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 9px;
}

.bt-new-hero-home__description {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--text-primary, #1c1e21);
	opacity: 0.88;
}

.bt-new-hero-home__description p {
	margin: 0 0 0.8rem;
}

.bt-new-hero-home__description p:last-child {
	margin-bottom: 0;
}

.bt-new-hero-home__cta-wrap {
	margin: 0;
}

.bt-new-hero-home__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	font-family: "Lexend", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: var(--accent, #3088eb);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(48, 136, 235, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bt-new-hero-home__cta:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(48, 136, 235, 0.45);
	color: #fff;
}

.bt-new-hero-home__card-title {
	font-family: "Lexend", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-primary, #1c1e21);
}

.bt-new-hero-home__card-text {
	margin-top: 0.2rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--text-secondary, #5c6670);
}

[data-theme="dark"] .bt-new-hero-home {
	background: var(--bg, #0e1117);
}

[data-theme="dark"] .bt-new-hero-home__intro-card {
	background: rgba(22, 27, 34, 0.96);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .bt-new-hero-home__title,
[data-theme="dark"] .bt-new-hero-home__description {
	color: #e6edf3;
	opacity: 1;
}

[data-theme="dark"] .bt-new-hero-home__subtitle,
[data-theme="dark"] .bt-new-hero-home__line--muted {
	color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .bt-new-hero-home__card-icon {
	color: #e6edf3;
}

[data-theme="dark"] .bt-new-hero-home__card-title {
	color: #e6edf3;
}

[data-theme="dark"] .bt-new-hero-home__card-text {
	color: rgba(255, 255, 255, 0.65);
}

/* Editor */
.bt-new-hero-home--is-editor .bt-new-hero-home__backdrop {
	min-height: 320px;
}

/* Tablet y móvil: columna principal + cards apiladas y centradas en el contenedor */
@media (max-width: 1023px) {
	.bt-new-hero-home__row {
		flex-direction: column;
		align-items: stretch;
	}

	.bt-new-hero-home__intro-card {
		max-width: none;
	}

	.bt-new-hero-home__cards-col {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
		min-width: 0;
		margin-left: auto;
		margin-right: auto;
		margin-top: clamp(1rem, 4vw, 2rem);
	}

	.bt-new-hero-home__cards {
		align-items: center;
	}

	.bt-new-hero-home__card {
		max-width: min(22rem, 100%);
	}
}

/* Desktop: tres cards en fila dentro de la columna derecha */
@media (min-width: 1024px) {
	.bt-new-hero-home__cards-col {
		flex: 1 1 35%;
		min-width: 0;
		max-width: none;
	}

	.bt-new-hero-home__cards {
		flex-direction: row;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0.75rem 1rem;
	}

	.bt-new-hero-home__card {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		width: auto;
	}
}

@media (max-width: 767px) {
	.bt-new-hero-home__subtitle {
		font-size: 0.75rem;
	}

	.bt-new-hero-home__description {
		font-size: 0.95rem;
	}
}
