/* ==========================================================================
   Ebook / Informe — página de descarga
   ========================================================================== */

/* ── Banner ───────────────────────────────────────────────────────────────── */

.vts-ebook-banner {
	position: relative;
	width: 100%;
	height: clamp(280px, 38vw, 520px);
	background-color: #111;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}

.vts-ebook-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.65) 100%
	);
}

.vts-ebook-banner__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(100px, 12vw, 160px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 52px);
}

.vts-ebook-banner__tag {
	display: inline-block;
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(11px, 0.55vw + 3px, 13px);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: #FF2730;
	padding: 4px 10px;
	margin-bottom: 14px;
}

.vts-ebook-banner__titulo {
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(24px, 2.7vw + 5px, 46px);
	font-weight: 400;
	line-height: 1.2;
	color: #ffffff;
	margin: 0;
	max-width: 720px;
}

/* ── Contenido ────────────────────────────────────────────────────────────── */

.vts-ebook-content {
	padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 48px);
}

.vts-ebook-content__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: clamp(32px, 5vw, 72px);
	align-items: flex-start;
}

/* ── Columna texto ────────────────────────────────────────────────────────── */

.vts-ebook-col-text {
	flex: 1;
	min-width: 0;
}

/* Ajustes de espaciado sobre .vts-single-body */

.vts-ebook-col-text hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: clamp(28px, 4vw, 52px) 0;
}

.vts-ebook-col-text h2 {
	margin-top: clamp(32px, 4.5vw, 56px);
	margin-bottom: 1em;
}

.vts-ebook-col-text ul {
	margin-bottom: clamp(20px, 3vw, 36px);
}

.vts-ebook-col-text li {
	margin-bottom: 0.9em;
	line-height: 1.55;
}

.vts-ebook-col-text > p:first-child {
	font-size: clamp(16px, 1.16vw + 7.3px, 22px);
	line-height: 1.5;
	margin-bottom: 1.4em;
}

/* ── Columna formulario ───────────────────────────────────────────────────── */

.vts-ebook-col-form {
	flex: 0 0 clamp(280px, 32vw, 400px);
	position: sticky;
	top: clamp(90px, 10vw, 120px);
}

.vts-ebook-form-box {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 32px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.vts-ebook-form-box__titulo {
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(20px, 1.74vw + 5px, 28px);
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-align: center;
	margin: 0 0 10px;
}

.vts-ebook-form-box__subtitulo {
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(13px, 0.83vw + 4.5px, 16px);
	font-weight: 400;
	color: rgba(0, 0, 0, 0.6);
	text-align: center;
	line-height: 1.5;
	margin: 0 0 clamp(20px, 3vw, 28px);
}

/* ── Form — estilo underline ──────────────────────────────────────────────── */

.vts-ebook-form-box .wpcf7 {
	margin: 0;
}

.vts-ebook-form__campo {
	margin-bottom: clamp(16px, 2vw, 22px);
}

.vts-ebook-form__label {
	display: block;
	font-family: 'Inter Tight', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #000;
	margin-bottom: 6px;
}

.vts-ebook-form__req {
	color: #FF2730;
}

.vts-ebook-form__input,
.vts-ebook-form-box .wpcf7-text,
.vts-ebook-form-box .wpcf7-email {
	width: 100%;
	height: 40px;
	padding: 0 0 8px;
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(13px, 0.83vw + 4.5px, 16px);
	font-weight: 400;
	color: #000;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	outline: none;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.vts-ebook-form__input:focus,
.vts-ebook-form-box .wpcf7-text:focus,
.vts-ebook-form-box .wpcf7-email:focus {
	border-bottom-color: #FF2730;
}

.vts-ebook-form__input::placeholder,
.vts-ebook-form-box .wpcf7-text::placeholder,
.vts-ebook-form-box .wpcf7-email::placeholder {
	color: rgba(0, 0, 0, 0.35);
}

/* Nota de campos obligatorios */
.vts-ebook-form__req-note {
	font-family: 'Inter Tight', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #FF2730;
	margin: 0 0 clamp(16px, 2vw, 22px);
}

/* Acceptance */
.vts-ebook-form__acepta .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 clamp(16px, 2vw, 22px);
}

.vts-ebook-form__acepta input[type="checkbox"] {
	accent-color: #FF2730;
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
	border-radius: 2px;
}

.vts-ebook-form__acepta .wpcf7-list-item-label {
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(12px, 0.69vw + 3.96px, 14px);
	font-weight: 400;
	color: #000;
	line-height: 1.5;
}

.vts-ebook-form__acepta a {
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

.vts-ebook-form__acepta a:hover {
	color: #FF2730;
}

/* Botón */
.vts-ebook-form__submit {
	width: 100%;
}

.vts-ebook-form__btn,
.vts-ebook-form-box .wpcf7-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	background: #FF2730;
	color: #fff;
	font-family: 'Inter Tight', sans-serif;
	font-size: clamp(13px, 0.96vw + 4.15px, 18px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vts-ebook-form__btn:hover,
.vts-ebook-form-box .wpcf7-submit:hover {
	background: #000;
}

.vts-ebook-form-box .wpcf7-submit:disabled {
	background: rgba(0, 0, 0, 0.25);
	cursor: not-allowed;
}

/* Validación */
.vts-ebook-form-box .wpcf7-not-valid {
	border-bottom-color: #FF2730 !important;
}

.vts-ebook-form-box .wpcf7-not-valid-tip {
	font-size: 11px;
	color: #FF2730;
	margin-top: 3px;
	display: block;
}

/* Respuesta */
.vts-ebook-form-box .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 500;
	border: none;
}

.vts-ebook-form-box .wpcf7-mail-sent-ok {
	background: #e8f5e9;
	color: #2e7d32;
	border-left: 3px solid #2e7d32;
}

.vts-ebook-form-box .wpcf7-mail-sent-ng,
.vts-ebook-form-box .wpcf7-validation-errors {
	background: #fff3f3;
	color: #c62828;
	border-left: 3px solid #FF2730;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.vts-ebook-content__inner {
		flex-direction: column;
	}

	.vts-ebook-col-form {
		position: static;
		flex: none;
		width: 100%;
	}
}
