/* ---------- Ebook gratuito: landing /ebook/ y bloque del inicio ---------- */
.hams-eb,
.hams-eb-promo {
	--eb-azul: #0739ef;
	--eb-azul-osc: #0028c0;
	--eb-tinta: #101114;
	--eb-gris: #454a58;
	--eb-papel: #f4f5f9;
}

.hams-eb :is(h1, h2, h3, p),
.hams-eb-promo :is(h2, p) {
	margin: 0;
}

.hams-eb .hams-wrap {
	max-width: 76rem;
}

.hams-eb-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.2rem;
	padding: 0.8rem 1.35rem;
	background: #fff;
	color: var(--eb-azul);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hams-eb-boton:hover {
	background: #e5eaff;
	color: var(--eb-azul);
	transform: translateY(-2px);
}

.hams-eb-boton:focus-visible,
.hams-eb-volver a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

/* Portada */
.hams-eb-hero {
	overflow: hidden;
	background: var(--eb-azul);
	color: #fff;
}

.hams-eb-hero > .hams-wrap {
	display: grid;
	gap: 2.75rem;
	align-items: center;
	padding-block: clamp(3rem, 7vw, 6.5rem);
}

@media (min-width: 46.25em) {
	.hams-eb-hero > .hams-wrap {
		grid-template-columns: 1.25fr 1fr;
		gap: clamp(2rem, 5vw, 6rem);
		min-height: 37rem;
	}
}

.hams-eb-volver {
	margin-bottom: 1.75rem !important;
	font-size: 0.9375rem;
}

.hams-eb-volver a {
	color: inherit;
	text-underline-offset: 0.2em;
}

.hams-eb .hams-eb-kicker {
	margin-bottom: 1.3rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hams-eb-hero h1 {
	max-width: 13ch;
	margin-bottom: 1.35rem;
	color: #fff;
	font-family: var(--hams-font-display);
	font-size: clamp(2.45rem, 5.15vw, 5.6rem);
	line-height: 0.99;
	letter-spacing: -0.065em;
	text-wrap: balance;
}

.hams-eb-hero .hams-eb-sub {
	margin-bottom: 1rem;
	font-family: var(--hams-font-display);
	font-size: clamp(1.28rem, 2.2vw, 1.85rem);
	font-weight: 700;
}

.hams-eb-hero .hams-eb-lead {
	max-width: 42ch;
	margin-bottom: 2rem;
	color: #fff;
	font-size: 1.13rem;
	line-height: 1.55;
}

.hams-eb-hero .hams-eb-meta {
	margin-top: 0.85rem;
	font-size: 0.9rem;
}

.hams-eb-portada {
	position: relative;
	display: grid;
	place-items: center;
	margin: 0;
	isolation: isolate;
}

.hams-eb-portada::before,
.hams-eb-portada::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 147%;
	height: 62%;
	border: 1px solid #a7b8ff;
	border-radius: 50%;
	transform: rotate(-24deg);
}

.hams-eb-portada::after {
	width: 130%;
	height: 74%;
	transform: rotate(23deg);
}

.hams-eb-portada img {
	display: block;
	width: min(78%, 22rem);
	height: auto;
	box-shadow: 12px 24px 40px #00197c85;
	transform: rotate(-5deg);
	transition: transform 0.5s var(--ease);
}

.hams-eb-portada:hover img {
	transform: rotate(-3deg) translateY(-4px);
}

@media (max-width: 46.24em) {
	.hams-eb-portada img {
		width: min(68%, 16rem);
	}
}

/* Contenido */
.hams-eb-contenido {
	background: #fff;
	color: var(--eb-tinta);
}

.hams-eb-contenido > .hams-wrap {
	padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hams-eb-contenido .hams-eb-kicker {
	color: var(--eb-azul);
}

.hams-eb h2 {
	margin-bottom: 1.65rem;
	color: var(--eb-tinta);
	font-family: var(--hams-font-display);
	font-size: clamp(2.05rem, 4.1vw, 4.15rem);
	line-height: 1.02;
	letter-spacing: -0.055em;
	text-wrap: balance;
}

.hams-eb-herramientas {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 46.25em) {
	.hams-eb-herramientas {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(1rem, 3vw, 2.7rem);
	}
}

.hams-eb-herramienta {
	padding-top: 1rem;
	border-top: 2px solid var(--eb-azul);
}

.hams-eb .hams-eb-herramienta h3 {
	margin: 0.1rem 0 0.55rem;
	color: var(--eb-tinta);
	font-size: 1.25rem;
	letter-spacing: -0.03em;
}

.hams-eb .hams-eb-herramienta p,
.hams-eb .hams-eb-cierre p {
	color: var(--eb-gris);
	line-height: 1.55;
}

/* Cierre */
.hams-eb-cierre {
	background: var(--eb-papel);
}

.hams-eb-cierre > .hams-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.hams-eb-cierre h2 {
	margin-bottom: 0.65rem;
	font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hams-eb-cierre .hams-eb-acciones {
	display: grid;
	justify-items: start;
	gap: 0.75rem;
}

.hams-eb-cierre .hams-eb-boton {
	background: var(--eb-azul);
	color: #fff;
}

.hams-eb-cierre .hams-eb-boton:hover {
	background: var(--eb-azul-osc);
	color: #fff;
}

.hams-eb-cierre .hams-eb-volver {
	margin: 0 !important;
	color: var(--eb-tinta);
}

/* Bloque promocional del inicio */
.hams-eb-promo {
	background: #fff;
}

.hams-eb-promo > .hams-wrap {
	max-width: 77.5rem;
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hams-eb-promo__caja {
	display: grid;
	align-items: center;
	gap: 2rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	overflow: hidden;
	background: var(--eb-azul);
	color: #fff;
}

@media (min-width: 40.6875em) {
	.hams-eb-promo__caja {
		grid-template-columns: 1.35fr 0.65fr;
		gap: clamp(2rem, 6vw, 6rem);
	}
}

.hams-eb-promo .hams-eb-promo__label {
	margin-bottom: 0.85rem;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hams-eb-promo h2 {
	margin-bottom: 1rem;
	color: #fff;
	font-family: var(--hams-font-display);
	font-size: clamp(1.85rem, 3.2vw, 3rem);
	line-height: 1.02;
	letter-spacing: -0.055em;
	text-transform: none;
	text-wrap: balance;
}

.hams-eb-promo .hams-eb-promo__intro {
	max-width: 48ch;
	margin-bottom: 1.5rem;
	color: #fff;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.hams-eb-promo figure {
	margin: 0;
	justify-self: center;
	width: min(75%, 9.5rem);
}

.hams-eb-promo img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 10px 18px 30px #00197c85;
	transform: rotate(-5deg);
}

@media (max-width: 40.625em) {
	.hams-eb-promo figure {
		width: min(52%, 8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hams-eb-boton,
	.hams-eb-portada img {
		transition: none;
	}
	.hams-eb-boton:hover,
	.hams-eb-portada:hover img {
		transform: none;
	}
}

/* El espacio vertical lo dan los contenedores internos. */
.hams-section.hams-eb,
.hams-section.hams-eb-promo {
	padding-block: 0;
}

/* Formulario de la guía (sobre la portada azul) */
.hams-eb-solicitud {
	max-width: 34rem;
}

.hams-eb-form {
	display: grid;
	gap: 0.6rem;
}

.hams-eb-form__etiqueta {
	font-weight: 700;
}

.hams-eb-form__fila {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hams-eb-form__fila input {
	flex: 1 1 14rem;
	min-width: 0;
	min-height: 3.2rem;
	padding: 0.75rem 1rem;
	border: 2px solid #fff;
	border-radius: 0;
	background: #fff;
	color: var(--eb-tinta);
	font: inherit;
	font-size: 1rem;
}

.hams-eb-form__fila input:focus-visible {
	outline: 3px solid #a7b8ff;
	outline-offset: 2px;
}

.hams-eb-form__fila input[aria-invalid="true"] {
	border-color: #ffb4b4;
}

.hams-eb-form .hams-eb-boton {
	flex: 0 0 auto;
	border: 2px solid #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hams-eb-form .hams-eb-boton[disabled] {
	opacity: 0.75;
	cursor: progress;
	transform: none;
}

.hams-eb .hams-eb-form__error {
	min-height: 1.4em;
	color: #ffe0e0;
	font-size: 0.9375rem;
	font-weight: 700;
}

.hams-eb-form__casilla {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.6rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
}

.hams-eb-form__casilla input {
	width: 1.2rem;
	height: 1.2rem;
	margin: 0.1rem 0 0;
	accent-color: #fff;
}

.hams-eb .hams-eb-form__nota {
	font-size: 0.875rem;
	opacity: 0.9;
}

.hams-eb-form__nota a {
	color: #fff;
}

.hams-eb-form__trampa {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hams-eb-resultado {
	display: grid;
	gap: 0.6rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.08);
}

.hams-eb-resultado:focus {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.hams-eb .hams-eb-resultado__estado {
	font-size: 1.125rem;
	font-weight: 700;
}

.hams-eb .hams-eb-resultado__envio,
.hams-eb .hams-eb-resultado__nota {
	line-height: 1.5;
}

.hams-eb .hams-eb-resultado__envio.is-fallido {
	padding: 0.6rem 0.8rem;
	background: rgba(0, 0, 0, 0.2);
}

.hams-eb-resultado__acciones {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.4rem !important;
}

.hams-eb-reintentar {
	min-height: 3.2rem;
	padding: 0.75rem 1.1rem;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hams-eb-reintentar:hover {
	background: rgba(255, 255, 255, 0.12);
}

.hams-eb-form[hidden],
.hams-eb-resultado[hidden] {
	display: none !important;
}
