/* =====================================================================
   VSL Landing — "Family — storybook spread on cream parchment"
   Built on DESIGN (3).md (Family system). Warm cream canvas (#fbfaf9),
   quiet chrome, inset hairline borders instead of shadows, calm Inter
   typography, near-black as the single serious action, a few vivid
   accent touches (blue/orange/gold/green) punctuating a monochrome page.
   ===================================================================== */

/* --- Tipografías alojadas localmente (subconjunto latino) — sin peticiones externas --- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/spacegrotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/spacegrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/spacegrotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrainsmono-400.woff2') format('woff2'); }

:root {
	/* Colors — Family (DESIGN 3) tokens */
	--cream-canvas: #fbfaf9;
	--stone-surface: #f2f0ed;
	--sand: #f6f4ef;
	--white: #ffffff;
	--ink-black: #121212;
	--heading-charcoal: #343433;
	--body-brown: #474645;
	--muted-gray: #7e7e7d;
	--stone-border: #e5d5c3;

	--link-blue: #0086fc;
	--sky-blue: #64c6ff;
	--alt-blue: #00b2ff;
	--grass-green: #00c978;
	--mint: #00ca48;
	--ember-orange: #ff3e00;
	--sun-yellow: #ffcd6c;
	--gold: #d48f00;
	--honey: #ffbb26;
	--coral-pink: #ff58ae;
	--plum-violet: #9f4fff;
	--alert-red: #ff2b3a;

	/* Semantic aliases kept for legacy selectors */
	--error: #ff2b3a;
	--ok: #00c978;

	/* Hairline system — inset strokes define surfaces, not shadows */
	--hairline: rgba(0, 0, 0, 0.10);
	--hairline-soft: rgba(0, 0, 0, 0.06);
	--hairline-strong: rgba(0, 0, 0, 0.16);

	/* Typography — Family is Inter-only, calm */
	--font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	/* Layout */
	--page-max: 1340px;

	/* Radius — Family: 10px cards, pills for buttons/badges */
	--r-card: 10px;
	--r-input: 8px;
	--r-pill: 9999px;

	/* Elevation — inset hairline, never a heavy drop shadow */
	--elev-card: inset 0 0 0 1px var(--hairline);
	--elev-soft: inset 0 0 0 1px var(--hairline-soft);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.53;
	letter-spacing: -0.013em;
	color: var(--body-brown);
	background: var(--cream-canvas);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* ------------------------------------------------ Ambient background layers */
/* Cream parchment backdrop — plain paper, extremely faint warmth, no halo glow */
.bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(1200px 720px at 50% -8%, rgba(255, 205, 108, 0.05), transparent 62%),
		var(--cream-canvas);
}
/* Optional faint paper texture — kept extremely subtle so the page reads as paper */
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--bg-image, none);
	background-size: cover;
	background-position: center top;
	opacity: 0.13;
	mix-blend-mode: multiply;
	-webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 100%);
	mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 100%);
}
/* Grid softened to a barely-there stone hairline lattice */
.bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(52, 52, 51, 0.025) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(52, 52, 51, 0.025) 1px, transparent 1px);
	background-size: 96px 96px;
	-webkit-mask-image: radial-gradient(115% 100% at 50% 0%, #000 38%, transparent 86%);
	mask-image: radial-gradient(115% 100% at 50% 0%, #000 38%, transparent 86%);
}
/* Halo removed in the light theme — no spotlight on parchment */
.bg__halo { display: none; }

/* --------------------------------------------------------- Top navigation */
/* Family header: a warm cream bar defined by a soft inset hairline, closed by a
   thin tri-color storybook seam (blue → green → orange) instead of a plain rule. */
.topbar {
	width: 100%;
	position: relative;
	z-index: 3;
	background: linear-gradient(180deg, #fdfcfb 0%, var(--cream-canvas) 100%);
	box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.topbar__inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 15px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
/* Thin colored seam under the bar — the storybook thread */
.topbar__seam {
	display: block;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg,
		var(--link-blue) 0%, var(--link-blue) 24%,
		var(--grass-green) 24%, var(--grass-green) 55%,
		var(--gold) 55%, var(--gold) 78%,
		var(--ember-orange) 78%, var(--ember-orange) 100%);
	opacity: 0.9;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--heading-charcoal);
}
/* Rounded "sticker" that frames the unique logo — pressed-into-paper hairline */
.wordmark__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 12px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.wordmark__logo { display: block; height: 30px; width: auto; }
.wordmark__stack { display: inline-flex; flex-direction: column; gap: 4px; }
.wordmark__text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.018em;
	line-height: 1;
	color: var(--ink-black);
}
/* Three small confetti dots under the wordmark — a quiet storybook signature */
.wordmark__dots { display: inline-flex; gap: 5px; }
.wordmark__dots i { width: 6px; height: 6px; border-radius: 9999px; }
.wordmark__dots i:nth-child(1) { background: var(--link-blue); }
.wordmark__dots i:nth-child(2) { background: var(--grass-green); }
.wordmark__dots i:nth-child(3) { background: var(--ember-orange); }
/* .wordmark__flag retained for backward-compat but no longer used in markup */
.wordmark__flag { display: none; }

/* Pill button — sand hairline default; --solid is the near-black header CTA */
.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--sand);
	box-shadow: inset 0 0 0 1px var(--hairline);
	color: var(--ink-black);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.009em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pill:hover { background: var(--stone-surface); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.pill:active { transform: translateY(1px); }
.pill--solid {
	background: var(--ink-black);
	box-shadow: none;
	color: var(--white);
}
.pill--solid:hover { background: #000; box-shadow: none; }

/* "Sticker" treatment on the header CTA — a warm cream ring + tiny green live-dot */
.pill--sticker {
	box-shadow: 0 0 0 3px var(--cream-canvas), 0 0 0 4px var(--hairline);
	gap: 9px;
}
.pill--sticker:hover { box-shadow: 0 0 0 3px var(--cream-canvas), 0 0 0 4px var(--hairline-strong); }
.pill__dot {
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: var(--grass-green);
	box-shadow: 0 0 0 3px rgba(0, 201, 120, 0.25);
}

/* ----------------------------------------------------------------- main */
.main {
	flex: 1;
	width: 100%;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 28px 32px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Hero eyebrow + headline stack */
.hero-head {
	text-align: center;
	max-width: 720px;
	margin: 4px auto 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold);
}
.eyebrow::before,
.eyebrow::after {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--stone-border);
}
.hero-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(36px, 6.2vw, 62px);
	line-height: 1.08;
	letter-spacing: -0.028em;
	color: var(--ink-black);
}
.hero-sub {
	margin: 0;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -0.013em;
	color: var(--body-brown);
}

/* Hero as a calm pull-quote — the storybook "read it unhurried" voice */
.hero-head--quote { gap: 8px; max-width: 800px; }
.hero-quote {
	display: block;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 68px;
	line-height: 0.9;
	height: 38px;
	color: var(--honey);
	font-weight: 700;
}
.hero-head--quote .hero-title {
	font-style: italic;
	font-weight: 600;
	letter-spacing: -0.022em;
	max-width: 760px;
}
.hero-head--quote .hero-sub {
	font-style: italic;
	color: var(--heading-charcoal);
}
.hero-head--quote::after {
	content: "";
	width: 44px;
	height: 3px;
	border-radius: 9999px;
	margin-top: 6px;
	background: linear-gradient(90deg, var(--link-blue) 0 33%, var(--grass-green) 33% 66%, var(--ember-orange) 66% 100%);
}

/* Contenedor: formulario + vídeo */
.stage {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

/* Composición a dos columnas (escritorio): formulario izquierda · vídeo derecha */
.stage--split {
	max-width: var(--page-max);
	flex-direction: row;
	align-items: start;
	justify-content: center;
	gap: 36px;
}
.stage__form {
	flex: 1 1 0;
	min-width: 0;
	max-width: 480px;
	width: 100%;
}
.stage__video {
	flex: 1 1 0;
	min-width: 0;
	max-width: 480px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.stage--split .form-card { max-width: none; }
.stage--split .video { max-width: none; }

/* Video Plate — vertical (4:5) VSL video. Dark scrim kept on the overlay only. */
.video {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 82vh;
	aspect-ratio: 4 / 5;
	background: #000;
	border-radius: var(--r-card);
	box-shadow: inset 0 0 0 1px var(--hairline);
	overflow: hidden;
}
.video::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	pointer-events: none;
	z-index: 7;
}
.video__el {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #000;
}
.video__overlay {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	cursor: pointer;
	background: radial-gradient(120% 120% at 50% 45%, rgba(10, 10, 10, 0.30), rgba(10, 10, 10, 0.66));
	transition: opacity 0.3s ease, visibility 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}
.video__overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.video__play {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video__overlay:hover .video__play { transform: scale(1.06); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32); }
.video__play svg { fill: var(--ink-black); margin-left: 3px; }
.video__hint { color: #fff; text-align: center; }
.video__hint b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.009em; }
.video__hint span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-top: 4px; }

/* Caption under the video */
.caption {
	margin: 0;
	max-width: 520px;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.009em;
	color: var(--muted-gray);
}

/* ----------------------------------------------------------------- form */
.form-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	background: var(--white);
	border-radius: var(--r-card);
	box-shadow: inset 0 0 0 1px var(--hairline);
	padding: 32px;
}
.form-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--hairline);
	pointer-events: none;
}
.form-card__title {
	text-align: center;
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: var(--ink-black);
}
.form-card__sub {
	text-align: center;
	font-size: 15px;
	font-weight: 400;
	color: var(--body-brown);
	margin: 0 0 26px;
}

/* Distintivo informativo bajo el título del formulario — light tag surface */
.form-badge {
	display: block;
	width: fit-content;
	margin: 10px auto 22px;
	padding: 6px 14px;
	border-radius: var(--r-pill);
	background: var(--sand);
	box-shadow: inset 0 0 0 1px var(--hairline);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--grass-green);
}

.field { margin-bottom: 18px; }
.field__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.006em;
	color: var(--heading-charcoal);
	margin: 0 0 8px;
}
.field__input {
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--ink-black);
	background: var(--cream-canvas);
	border: 0;
	border-radius: var(--r-input);
	box-shadow: inset 0 0 0 1px var(--hairline);
	outline: none;
	transition: box-shadow 0.18s ease, background 0.18s ease;
}
.field__input::placeholder { color: var(--muted-gray); }
.field__input:focus { box-shadow: inset 0 0 0 1px var(--ink-black), 0 0 0 3px rgba(0, 134, 252, 0.15); background: var(--white); }

/* Grupo de teléfono con prefijo +34 */
.phone-group {
	display: flex;
	align-items: stretch;
	width: 100%;
	border-radius: var(--r-input);
	background: var(--cream-canvas);
	box-shadow: inset 0 0 0 1px var(--hairline);
	overflow: hidden;
	transition: box-shadow 0.18s ease, background 0.18s ease;
}
.phone-group:focus-within { box-shadow: inset 0 0 0 1px var(--ink-black), 0 0 0 3px rgba(0, 134, 252, 0.15); background: var(--white); }
.phone-prefix {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 13px;
	box-shadow: inset -1px 0 0 var(--hairline);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--heading-charcoal);
}
.phone-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px var(--hairline-soft); }
.phone-group .field__input { background: transparent; box-shadow: none; border-radius: 0; flex: 1; min-width: 0; }
.phone-group .field__input:focus { box-shadow: none; background: transparent; }

/* Mensajes de validación */
.field__msg {
	display: none;
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--alert-red);
}
.field.has-error .field__msg { display: block; }
.field.has-error .field__input,
.field.has-error .phone-group { box-shadow: inset 0 0 0 1px var(--alert-red); }
.field.is-valid .field__input,
.field.is-valid .phone-group { box-shadow: inset 0 0 0 1px rgba(0, 201, 120, 0.6); }

/* Submit — near-black CTA: the one serious action */
.btn-submit {
	width: 100%;
	height: 50px;
	margin-top: 8px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--ink-black);
	box-shadow: none;
	color: var(--white);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.009em;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.15s ease;
}
.btn-submit:hover { background: #000; }
.btn-submit:active { transform: translateY(1px); }

/* Casilla de consentimiento (RGPD) */
.consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: start;
	margin: 4px 0 18px;
	cursor: pointer;
}
.consent__box {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--ink-black);
	cursor: pointer;
}
.consent__text {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--muted-gray);
}
.consent__text a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0, 134, 252, 0.4); }
.consent__msg { grid-column: 1 / -1; margin: 0; }
.consent.has-error .consent__msg { display: block; }
.consent.has-error .consent__box { outline: 2px solid var(--alert-red); outline-offset: 1px; border-radius: 3px; }

.disclaimer {
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--muted-gray);
	margin: 18px 0 0;
}

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --------------------------------------------------- Trust / feature strip */
.trust {
	width: 100%;
	max-width: 560px;
	margin: 36px auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 14px;
	text-align: center;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.trust__icon {
	width: 42px; height: 42px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9999px;
	background: var(--sand);
	box-shadow: inset 0 0 0 1px var(--hairline-soft);
	color: var(--link-blue);
}
.trust__item:nth-child(2) .trust__icon { color: var(--grass-green); }
.trust__item:nth-child(3) .trust__icon { color: var(--ember-orange); }
.trust__icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust__label { font-size: 13px; font-weight: 500; color: var(--body-brown); line-height: 1.35; }

/* ------------------------------------------- pantalla de agradecimiento */
.thanks-card {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: 64px auto 0;
	padding: 40px 32px;
	background: var(--white);
	border-radius: var(--r-card);
	box-shadow: inset 0 0 0 1px var(--hairline);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.thanks-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hairline); pointer-events: none; }
.thanks-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 9999px;
	background: rgba(0, 201, 120, 0.12);
	box-shadow: inset 0 0 0 1px rgba(0, 201, 120, 0.35);
	color: var(--grass-green);
}
.thanks-card__icon svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks-card__title {
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
	color: var(--ink-black);
}
.thanks-card__text { font-size: 16px; line-height: 1.55; color: var(--body-brown); margin: 0; }
.thanks-card__hint { font-size: 14px; line-height: 1.5; color: var(--muted-gray); margin: 0; }
.thanks-card .pill { margin-top: 8px; }

/* --------------------------------------------------------------- footer */
/* Family footer — the closing page of a storybook. A warm sand-to-cream wash
   distinct from the page, opened by a tri-color stitched seam and closed by a
   small confetti mark. Everything defined by inset hairlines, no drop shadows. */
.footer {
	width: 100%;
	margin-top: auto;
	position: relative;
	z-index: 2;
	background: linear-gradient(180deg, var(--sand) 0%, #f1efec 100%);
	box-shadow: inset 0 1px 0 var(--hairline-soft);
}
/* Stitched seam: a warm dashed thread carrying three colored beads, centered */
.footer__seam {
	position: relative;
	height: 0;
	max-width: var(--page-max);
	margin: 0 auto;
	border-top: 2px dashed var(--stone-border);
}
.footer__seam-dots {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 9999px;
	background: var(--sand);
}
.footer__seam-dots i { width: 8px; height: 8px; border-radius: 9999px; }
.footer__seam-dots i:nth-child(1) { background: var(--link-blue); }
.footer__seam-dots i:nth-child(2) { background: var(--gold); }
.footer__seam-dots i:nth-child(3) { background: var(--ember-orange); }

.footer__inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 52px 32px 30px;
}
.footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 30px;
	box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.footer__brand { max-width: 36ch; display: flex; flex-direction: column; gap: 14px; }
.footer__brand-head { display: inline-flex; align-items: center; gap: 12px; }
/* Logo sticker echoes the header badge */
.footer__brand-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 12px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.footer__brand-logo { height: 30px; width: auto; display: block; }
.footer__brand-name {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--ink-black);
}
.footer__brand-tagline {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--body-brown);
	line-height: 1.55;
	padding-left: 14px;
	box-shadow: inset 3px 0 0 var(--sun-yellow);
}
/* Legal nav as a soft rounded chip cluster */
.footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.footer__nav a {
	display: inline-flex;
	align-items: center;
	color: var(--heading-charcoal);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.009em;
	padding: 7px 14px;
	border-radius: 9999px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline-soft);
	transition: color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.footer__nav a:hover { color: var(--link-blue); box-shadow: inset 0 0 0 1px rgba(0, 134, 252, 0.4); background: var(--cream-canvas); }

.footer__body {
	display: grid;
	grid-template-columns: minmax(280px, 460px) 1fr;
	gap: 24px;
	padding: 32px 0;
}
.company {
	position: relative;
	padding: 26px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline);
	text-align: left;
	align-self: start;
}
.company__name {
	display: block;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.016em;
	line-height: 1.25;
	color: var(--ink-black);
	padding-bottom: 16px;
	margin-bottom: 16px;
	box-shadow: inset 0 -1px 0 var(--hairline);
}
.company__grid { margin: 0; display: grid; gap: 14px; }
.company__row { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: baseline; }
.company__row dt {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-gray);
}
.company__row dd { margin: 0; font-size: 15px; font-weight: 400; color: var(--body-brown); word-break: break-word; }
.company__row dd a { color: var(--link-blue); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(0, 134, 252, 0.35); transition: color 0.18s ease; }
.company__row dd a:hover { color: var(--ink-black); }

.footer__notes { display: grid; gap: 14px; align-content: start; }
.note {
	position: relative;
	padding: 22px 24px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--hairline);
	text-align: left;
	overflow: hidden;
}
/* A slim colored spine on the left edge marks each note by semantic hue */
.note::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--muted-gray);
}
.note--blue::before { background: var(--link-blue); }
.note--orange::before { background: var(--ember-orange); }
.note--green::before { background: var(--grass-green); }
.note__title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.009em;
	color: var(--ink-black);
	margin-bottom: 8px;
}
.note__dot { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; background: var(--muted-gray); }
.note--blue .note__dot { background: var(--link-blue); }
.note--orange .note__dot { background: var(--ember-orange); }
.note--green .note__dot { background: var(--grass-green); }
.note__text { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--body-brown); }
.footer__cnmv-link {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	padding: 9px 16px;
	border-radius: var(--r-pill);
	background: var(--sand);
	box-shadow: inset 0 0 0 1px var(--hairline);
	color: var(--ink-black);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.18s ease, box-shadow 0.18s ease;
}
.footer__cnmv-link:hover { background: var(--stone-surface); box-shadow: inset 0 0 0 1px var(--hairline-strong); }

.footer__risk {
	margin: 28px 0 0;
	padding-top: 24px;
	box-shadow: inset 0 1px 0 var(--hairline);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--muted-gray);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: 26px;
	padding-top: 24px;
	box-shadow: inset 0 1px 0 var(--hairline-soft);
}
/* Small confetti mark — the last-page flourish */
.footer__bottom-mark { display: inline-flex; gap: 5px; order: -1; }
.footer__bottom-mark i { width: 6px; height: 6px; border-radius: 9999px; }
.footer__bottom-mark i:nth-child(1) { background: var(--link-blue); }
.footer__bottom-mark i:nth-child(2) { background: var(--grass-green); }
.footer__bottom-mark i:nth-child(3) { background: var(--ember-orange); }
.footer__bottom .copyright { margin: 0; font-size: 14px; font-weight: 600; color: var(--heading-charcoal); }
.footer__rights { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted-gray); margin-left: auto; }

/* ------------------------------------------------- aviso de cookies */
.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: none;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 18px 20px;
	background: var(--white);
	border-radius: var(--r-card);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), inset 0 0 0 1px var(--hairline);
}
.cookie-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hairline); pointer-events: none; }
.cookie-banner.is-visible { display: flex; }
.cookie-banner__text { flex: 1 1 320px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--body-brown); }
.cookie-banner__text a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0, 134, 252, 0.4); }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.009em;
	color: var(--white);
	background: var(--ink-black);
	box-shadow: none;
	border: 0;
	padding: 11px 22px;
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: background 0.18s ease;
}
.cookie-btn:hover { background: #000; }
.cookie-btn--ghost { color: var(--ink-black); background: var(--sand); box-shadow: inset 0 0 0 1px var(--hairline); }
.cookie-btn--ghost:hover { background: var(--stone-surface); }
@media screen and (max-width: 640px) {
	.cookie-banner__actions { flex: 1 1 100%; }
	.cookie-btn { flex: 1; }
}

/* ------------------------------------------------- modal de contacto */
.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(18, 18, 18, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	-webkit-tap-highlight-color: transparent;
}
.modal.is-open { display: flex; }
.modal__dialog { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; margin: 0; }
.modal__dialog .form-card { padding-top: 48px; }
.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--sand);
	box-shadow: inset 0 0 0 1px var(--hairline);
	color: var(--heading-charcoal);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.modal__close:hover { background: var(--stone-surface); color: var(--ink-black); }

/* ----------------------------------------------------------- responsive */
/* Split apila en móvil/tableta: vídeo primero, formulario después */
@media (max-width: 860px) {
	.stage--split {
		flex-direction: column;
		align-items: center;
		gap: 22px;
		max-width: 520px;
	}
	.stage__form,
	.stage__video { max-width: 520px; order: 0; }
	.stage__video { order: 1; }
	.stage__form { order: 2; }
}

@media (max-width: 640px) {
	.topbar__inner { padding: 16px; }
	.main { padding: 12px 16px 96px; }
	.hero-head { margin-bottom: 24px; }
	.stage { gap: 20px; max-width: 460px; }
	.stage--split { max-width: 460px; }
	.stage__form, .stage__video { max-width: 460px; }
	.video { max-height: 74vh; }
	.form-card { padding: 26px 20px; }
	.trust { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
	.trust__item { flex-direction: row; justify-content: flex-start; text-align: left; }
	.footer__inner { padding: 48px 16px 32px; }
	.footer__top { flex-direction: column; gap: 20px; padding-bottom: 24px; }
	.footer__brand { max-width: none; }
	.footer__body { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
	.company { padding: 20px; }
	.company__row { grid-template-columns: 1fr; gap: 2px; }
	.note { padding: 20px; }
}
@media (min-width: 641px) and (max-width: 960px) {
	.footer__body { grid-template-columns: 1fr; }
	.footer__notes { grid-template-columns: 1fr 1fr; }
}
