/* =============================================================================
   Ficho: landing styles. Mobile-first; breakpoints at 480 / 768 / 1024px.
   Values come from Figma (eCLvy2ERv14D7ke2WcoqBV, frame 63:2202 @1440).
   ========================================================================== */

/* Archivo, self-hosted (no requests to Google: GDPR). Variable weight 300–700. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   Tokens (Figma variables)
   ------------------------------------------------------------------------ */
:root {
	--orange-200: #ffc1ab;
	--orange-300: #f46845;
	--orange-400: #d5441f;
	--blue-50: #f2f8fe;
	--blue-200: #c5e1f1;
	--blue-700: #1c6bc6;
	--blue-90: #223354;
	--blue-950: #101b31;
	--grey-50: #f9f9fa;
	--grey-300: #d3d4d4;
	--grey-400: #adaeae;
	--grey-500: #727373;
	--grey-950: #050e0f;
	--green-50: #fbfbf8;
	--line: rgba(150, 160, 176, 0.25);

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--text-xs: 0.75rem;   /* 12 */
	--text-sm: 0.875rem;  /* 14 */
	--text-md: 1rem;      /* 16 */
	--text-display: clamp(2rem, 1.25rem + 2.5vw, 3rem); /* 32 → 48 */

	/* Figma is 1440 wide (126px gutters, 1188 content, 463 aside). Above that
	   everything keeps the same proportions instead of stopping, up to 1920px. */
	--gutter: clamp(16px, 8.75vw, 320px);
	--content: 1920px;
	--aside: clamp(463px, 32.15vw, 680px);
	--section-y: clamp(40px, 4vw, 56px);
	--gap-cards: clamp(16px, 2.8vw, 40px);
	--radius: 4px;
	--header-h: 52px;
	--header-top: clamp(8px, 1.1vw, 16px);
	--focus: var(--blue-700);

	/* Motion */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* easeOutQuint */
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);  /* long, soft settle */
}

@media (min-width: 1441px) {
	:root {
		--text-display: clamp(3rem, 3.334vw, 3.5rem); /* 48 at 1440 → 56 at 1680 */
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--header-top) * 2);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--green-50);
	color: var(--blue-950);
	font-family: var(--font);
	font-size: var(--text-md);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure, address {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

address {
	font-style: normal;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--blue-950);
	color: var(--green-50);
	border-radius: var(--radius);
}
.skip-link:focus {
	top: 16px;
}

/* Hooks for the animation phase: nothing animates yet. */
@media (prefers-reduced-motion: reduce) {
	html.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------ */
.container {
	width: min(var(--content), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.section {
	padding-block: var(--section-y);
}

.section--dark {
	background: var(--blue-90);
	color: var(--green-50);
	--focus: var(--orange-200);
}

.section-heading {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: clamp(24px, 2.8vw, 40px);
}

.eyebrow {
	font-size: var(--text-xs);
	line-height: normal;
	text-transform: uppercase;
}

.section-title {
	font-size: var(--text-display);
	font-weight: 400;
	line-height: 1.09;
	text-wrap: balance;
}

/* Text column + 463px column (pricing, FAQ, contact, footer). */
.split {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.split > .section-heading {
	margin-bottom: 0;
}

.grid-3 {
	display: grid;
	gap: 16px;
}

@media (min-width: 1024px) {
	.split {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 40px;
	}
	.split__aside {
		flex: 0 0 var(--aside);
		width: var(--aside);
	}
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--gap-cards);
	}
}

/* ---------------------------------------------------------------------------
   Components
   ------------------------------------------------------------------------ */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 8px 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--orange-300);
	color: var(--blue-950);
	font: 500 var(--text-sm) / normal var(--font);
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
/* Hover: an underline draws under the label from left to right. */
.button__label {
	padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
	transition: background-size 0.45s var(--ease-out);
}
.button:hover .button__label,
.button:focus-visible .button__label {
	background-size: 100% 1px;
}
.button:disabled {
	cursor: progress;
	opacity: 0.7;
}
/* Secondary button on dark backgrounds (cookie banner "Rechazar"). */
.button--ghost {
	border: 1px solid var(--green-50);
	background: transparent;
	color: var(--green-50);
}
.button--ghost:hover {
	background: transparent;
}

/* Text-style button (footer "Configurar cookies"). */
.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.link-button:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.button--block {
	display: flex;
	width: 100%;
}

.pill {
	display: inline-flex;
	padding: 4px 8px;
	border: 1px solid var(--blue-950);
	border-radius: 90px;
	background: var(--green-50);
	color: var(--blue-950);
	font-size: var(--text-xs);
	line-height: normal;
}
.pill--dark {
	border-color: var(--blue-90);
	background: var(--blue-90);
	color: var(--blue-50);
}

.card {
	border-radius: var(--radius);
	background: var(--green-50);
	color: var(--blue-950);
	--focus: var(--blue-700);
}

/* Inputs: 16px on touch screens so iOS doesn't zoom; 14px with a mouse. */
.field {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--blue-950);
	border-radius: var(--radius);
	background: transparent;
	color: inherit;
	font: 400 var(--text-md) / normal var(--font);
	transition: border-color 0.25s var(--ease-out);
}
.field--light {
	border-color: var(--green-50);
}
.field:focus {
	outline: none;
	border-color: var(--orange-300);
}
.field[aria-invalid="true"] {
	border-color: var(--orange-300);
}

@media (min-width: 1024px) and (pointer: fine) {
	.field {
		font-size: var(--text-sm);
	}
}

/*
 * Floating label: sits inside the empty field, moves into the border line
 * on focus or once filled. --float-bg must match what's behind the field
 * so the label "cuts" the line.
 */
.float {
	--float-bg: var(--green-50);
	position: relative;
}
.section--dark .float {
	--float-bg: var(--blue-90);
}
.card .float {
	--float-bg: var(--green-50);
}

.float__label {
	position: absolute;
	top: 50%;
	left: 8px;
	max-width: calc(100% - 16px);
	padding: 0 4px;
	overflow: hidden;
	background: var(--float-bg);
	font-size: var(--text-xs);
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform: translateY(-50%);
	transform-origin: left center;
	transition: top 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.field:focus + .float__label,
.field:not(:placeholder-shown) + .float__label,
.field:autofill + .float__label {
	top: 0;
	transform: translateY(-50%) scale(0.84);
}
.field:focus + .float__label {
	color: var(--orange-300);
}
.card .field:focus {
	border-color: var(--orange-400);
}
.card .field:focus + .float__label {
	color: var(--orange-400);
}

/* ---------------------------------------------------------------------------
   Header (Figma 63:2683)
   ------------------------------------------------------------------------ */
.site-header {
	position: fixed;
	top: var(--header-top);
	left: 0;
	right: 0;
	z-index: 50;
	pointer-events: none;
}

.admin-bar .site-header {
	top: calc(var(--header-top) + 46px);
}
@media (min-width: 783px) {
	.admin-bar .site-header {
		top: calc(var(--header-top) + 32px);
	}
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: min(var(--content), 100% - var(--gutter) * 2);
	height: var(--header-h);
	margin-inline: auto;
	padding: 4px 8px;
	border: 1px solid rgba(84, 177, 223, 0.3);
	border-radius: 8px;
	background: rgba(34, 51, 84, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	pointer-events: auto;
	transition: background-color 0.2s, border-color 0.2s;
}

.site-header.is-scrolled .site-header__bar,
.is-inner .site-header__bar {
	border-color: rgba(34, 51, 84, 0.12);
	background: rgba(251, 251, 248, 0.85);
}

.site-header__logo .logo {
	width: 111px;
	height: 42px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lang-switch ul {
	display: flex;
}
.lang-switch a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 8px;
	color: var(--blue-950);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	opacity: 0.6;
}
.lang-switch a[aria-current],
.lang-switch a:hover {
	opacity: 1;
}
.lang-switch a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------------------------------------------------------------------------
   Hero (Figma 63:2203)
   ------------------------------------------------------------------------ */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(560px, 100svh, 776px);
	padding-block: 126px clamp(48px, 6.1vw, 88px);
	color: #fff;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(34, 51, 84, 0) 37.693%, rgba(17, 27, 45, 0.6) 84.423%);
}
.hero__image {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 72% 100%; /* keep the person in frame on narrow screens */
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hero__title {
	max-width: 900px;
	font-size: var(--text-display);
	font-weight: 400;
	line-height: 1.09;
}
.hero__line {
	display: block;
}
.hero__title strong {
	font-weight: 600;
}
/*
 * Rotating highlight. Without JS (or with reduced motion) it is the static
 * orange box from Figma; main.js collapses the box to a thin bar, swaps the
 * word and expands it again to unveil the next one.
 */
.rotator {
	position: relative;
	display: inline-block;
	vertical-align: top;
	color: var(--blue-950);
	white-space: nowrap;
	transition: width 0.45s var(--ease-out);
}
.rotator__box {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	background: var(--orange-300);
}
.rotator__word {
	position: relative;
	display: inline-block;
	padding: 0 0.17em;
}
/* Starting pose before the first expand (main.js takes over from here). */
.js .rotator:not(.is-static) .rotator__box {
	width: 6px;
}
.js .rotator:not(.is-static) .rotator__word {
	clip-path: inset(0 calc(100% - 6px) 0 0);
}

.hero__text {
	max-width: var(--aside);
	font-size: var(--text-md);
	line-height: 20px;
	opacity: 0.8;
}

@media (min-width: 768px) {
	.hero__image {
		object-position: 50% 100%;
	}
}

/* Wide screens: the hero grows with the width (776 / 1440 ≈ 54vw) and the
   framing moves up so the person isn't cut off. */
@media (min-width: 1441px) {
	.hero {
		min-height: clamp(560px, min(100svh, 54vw), 1100px);
	}
	.hero__image {
		object-position: 50% 45%;
	}
}

/* ---------------------------------------------------------------------------
   ¿Por qué ficho? (Figma 63:2210): 616×445 composition, scaled as one piece.
   ------------------------------------------------------------------------ */
.compare {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.compare__visual {
	position: relative;
	width: min(max(616px, 42.8vw), 860px, 100%); /* 616 / 1440 */
	aspect-ratio: 616 / 445;
}

/*
 * Both layers cover the whole composition; --split (set by main.js from the
 * scroll position, 70% → 25%) decides where one ends and the other starts.
 * Image boxes are the Figma positions, in % of 616×445.
 */
.compare__visual {
	--split: 50%;
}
.compare__layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.compare__before {
	clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare__after {
	clip-path: inset(0 0 0 var(--split));
}

.compare__before img {
	position: absolute;
	bottom: 0;
	left: -8.85%;                /* -54.5 / 616 */
	width: 80.68%;               /* 497 / 616 */
	max-width: none;
	aspect-ratio: 1;
	object-fit: cover;
}
.compare__after img {
	position: absolute;
	top: 5.84%;                  /* 26 / 445 */
	right: 2.76%;                /* right edge at 599 / 616 */
	width: 107.95%;              /* 665 / 616 */
	max-width: none;
	height: 88.31%;              /* 393 / 445 */
	object-fit: contain;
}

.compare__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--split);
	width: 1.3%;                 /* 8 / 616 */
	border-radius: 4px;
	background: var(--orange-300);
	transform: translateX(-50%);
}

.compare__labels {
	display: flex;
	justify-content: center;
	gap: clamp(64px, 26vw, 160px);
}

/* ---------------------------------------------------------------------------
   El coste (Figma 63:2535)
   ------------------------------------------------------------------------ */
.pricing__title-line {
	display: block;
}

@media (min-width: 1024px) {
	.pricing .section-heading {
		max-width: 526px;
	}
}

.calc {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}

.calc__intro {
	line-height: 20px;
}
.calc__intro strong {
	font-weight: 700;
}

/* Hide number spinners: the slider is the stepper. */
.calc__number {
	height: 32px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.calc__number::-webkit-inner-spin-button,
.calc__number::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Slider: 12px grey track, navy fill up to an 18px navy thumb with white ring. */
.calc__range {
	--fill: 0%;
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 24px;
	margin: 0;
	background: transparent;
	cursor: pointer;
}
.calc__range::-webkit-slider-runnable-track {
	height: 12px;
	border-radius: 4px;
	background: linear-gradient(to right, var(--blue-950) var(--fill), var(--grey-300) var(--fill));
}
.calc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -3px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--blue-950);
}
.calc__range::-moz-range-track {
	height: 12px;
	border-radius: 4px;
	background: var(--grey-300);
}
.calc__range::-moz-range-progress {
	height: 12px;
	border-radius: 4px;
	background: var(--blue-950);
}
.calc__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--blue-950);
}

.calc__total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;            /* 32px from the slider, as in Figma */
	line-height: normal;
}
.calc__total-label {
	opacity: 0.7;
}
.calc__total-value {
	font-size: clamp(2.5rem, 2rem + 1.5vw, 3rem);
	font-weight: 600;
	white-space: nowrap;
}
.calc__total-amount {
	display: flex;
	align-items: baseline;
	gap: 4px;
}
.calc__vat {
	font-size: 10px;
	color: rgba(16, 27, 49, 0.6);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   ¿Cómo funciona? (Figma 63:2556)
   ------------------------------------------------------------------------ */
.step {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--blue-700);
	color: var(--grey-50);
}

.step__number {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: var(--radius);
	background: var(--green-50);
	color: var(--blue-950);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1;
}

.step__title {
	font-size: var(--text-md);
	font-weight: 500;
	line-height: 24px;
}

.step__text {
	margin-top: -8px;            /* 8px under the title */
	font-weight: 300;
	line-height: 24px;
}

/* The device runs off the bottom edge of the card. */
.step__media {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	margin-top: auto;
	margin-bottom: -16px;
}

/* ---------------------------------------------------------------------------
   Scroll reveal: [data-reveal] rises and fades in once, staggered 200ms.
   Hidden only when JS is running, so content never disappears without it.
   ------------------------------------------------------------------------ */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(48px) scale(0.98);
	transition:
		opacity 0.9s var(--ease-out-expo),
		transform 1.2s var(--ease-out-expo);
	transition-delay: calc(var(--i, 0) * 200ms);
}
.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------------------
   Beneficios (Figma 63:2604)
   ------------------------------------------------------------------------ */
.benefit {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	line-height: 24px;
}
.benefit__icon {
	flex: none;
	width: 24px;
	height: 24px;
}
.benefit__title {
	font-size: var(--text-md);
	font-weight: 500;
	line-height: 24px;
}
.benefit__text {
	margin-top: 8px;
	font-weight: 300;
}

/* ---------------------------------------------------------------------------
   FAQs (Figma 63:2628)
   ------------------------------------------------------------------------ */
.faq__item {
	position: relative;
	padding: 8px 12px;
}
.faq__item + .faq__item {
	margin-top: 17px;
}
.faq__item + .faq__item::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line);
}

.faq__question {
	display: flex;
	gap: 8px;
	font-weight: 500;
	line-height: 24px;
	list-style: none;
	cursor: pointer;
}
.faq__question::-webkit-details-marker {
	display: none;
}

.faq__chevron {
	flex: none;
	width: 16px;
	height: 24px;
}
.faq__chevron svg {
	width: 16px;
	height: 24px;
	transform: rotate(180deg);   /* closed: pointing down */
	transition: transform 0.35s var(--ease-out);
}
.faq__item[open] .faq__chevron svg {
	transform: rotate(0deg);
}
.faq__item.is-closing .faq__chevron svg {
	transform: rotate(180deg);
}

/* main.js animates the height of this wrapper; the padding lives inside it. */
.faq__answer {
	overflow: hidden;
}
.faq__answer-inner {
	padding: 4px 0 0 24px;       /* aligned with the question text */
	font-weight: 300;
	line-height: 24px;
}

/* ---------------------------------------------------------------------------
   Da el paso (Figma 63:2663)
   ------------------------------------------------------------------------ */
.form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.form__row {
	display: grid;
	gap: 16px;
}
@media (min-width: 480px) {
	.form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.form__field--check {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: var(--text-xs);
	line-height: normal;
	color: rgba(251, 251, 248, 0.8);
}
.form__field--check label {
	flex: 1;
	cursor: pointer;
}
.form__field--check .form__error {
	flex-basis: 100%;
}

.checkbox {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid var(--green-50);
	border-radius: 2px;
	background: transparent center / 12px no-repeat;
	cursor: pointer;
}
.checkbox:checked {
	border-color: var(--orange-300);
	background-color: var(--orange-300);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23101b31' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checkbox[aria-invalid="true"] {
	border-color: var(--orange-300);
}

.form__error {
	margin-top: 4px;
	color: var(--orange-200);
	font-size: var(--text-xs);
	line-height: normal;
}

.form__status {
	margin-top: 16px;
	font-size: var(--text-sm);
}
.form__status:empty {
	display: none;
}
.form__status.is-error {
	color: var(--orange-200);
}

/* First-layer data-protection info under the button. */
.form__legal {
	margin-top: 24px;
	color: rgba(251, 251, 248, 0.7);
	font-size: var(--text-xs);
	line-height: 1.5;
}
.form__legal strong {
	font-weight: 500;
	color: rgba(251, 251, 248, 0.85);
}
.form__legal a,
.form__field--check a {
	color: inherit;
	text-underline-offset: 2px;
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Footer (Figma 63:2695)
   ------------------------------------------------------------------------ */
.site-footer {
	padding-block: clamp(48px, 5.6vw, 80px);
	background: var(--blue-950);
	color: var(--grey-50);
	--focus: var(--orange-200);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.site-footer__logo {
	align-self: flex-start;
}
.site-footer__logo .logo {
	width: min(463px, 72vw);
	height: auto;
}

.site-footer__info {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.site-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px 40px;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-weight: 300;
	line-height: 24px;
}
.site-footer__contact a {
	text-decoration: none;
}

.site-footer__platform {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 300;
	line-height: 24px;
	text-decoration: none;
}
.site-footer__platform svg {
	width: 16px;
	height: 16px;
}

.site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.site-footer .button:hover {
	text-decoration: none;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: var(--text-xs);
	opacity: 0.6;
}

@media (min-width: 1024px) {
	.site-footer__inner {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.site-footer__info {
		width: var(--aside);
	}
}

/* ---------------------------------------------------------------------------
   Generic pages: "Bases legales" (Figma 78:2754). Left-aligned 705px column,
   48px title, light 16/24 text with 24px between paragraphs.
   ------------------------------------------------------------------------ */
.entry {
	padding-block: clamp(100px, 8.4vw, 120px) var(--section-y);
}
.entry__title {
	margin-bottom: 40px;
	font-size: var(--text-display);
	font-weight: 400;
	line-height: 1.09;
}
.entry__content {
	max-width: 705px;
	font-weight: 300;
	line-height: 24px;
}
.entry__content > * + * {
	margin-top: 24px;
}
.entry__content h2,
.entry__content h3 {
	margin-top: 40px;
	font-size: var(--text-md);
	font-weight: 500;
	line-height: 24px;
	scroll-margin-top: 100px;
}
.entry__content :is(h2, h3) + * {
	margin-top: 8px;
}
.entry__content strong {
	font-weight: 500;
}
.entry__content ul {
	padding-left: 1.25em;
	list-style: disc;
}
.entry__content li + li {
	margin-top: 8px;
}
.entry__content a {
	text-underline-offset: 3px;
}
.entry__article + .entry__article {
	margin-top: 48px;
}

/* Legal details still to be filled in ("Datos legales" tab). */
.pending {
	padding: 0 4px;
	border-radius: 2px;
	background: var(--orange-200);
	color: var(--blue-950);
	font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Cookie banner (Figma 80:3274). Only rendered when Google Analytics is set.
   ------------------------------------------------------------------------ */
.cookie-banner {
	position: fixed;
	bottom: 16px;
	left: 50%;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(var(--content) + 80px, 100% - 32px);
	padding: 24px;
	border: 1px solid rgba(84, 177, 223, 0.3);
	border-radius: 8px;
	background: rgba(34, 51, 84, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--green-50);
	--focus: var(--orange-200);
	opacity: 0;
	transform: translate(-50%, 16px);
	transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.cookie-banner.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
.cookie-banner[hidden] {
	display: none;
}
.cookie-banner__text {
	max-width: 705px;
	font-weight: 300;
	line-height: 24px;
}
.cookie-banner__text a {
	color: inherit;
	text-underline-offset: 3px;
}
.cookie-banner__actions {
	display: flex;
	flex: none;
	gap: 16px;
}

@media (max-width: 767px) {
	.cookie-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px;
		font-size: var(--text-sm);
	}
	.cookie-banner__text {
		line-height: 20px;
	}
	.cookie-banner__actions .button {
		flex: 1;
	}
}

/* Cookie table on the legal page. */
.cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
	line-height: 20px;
}
.cookie-table th,
.cookie-table td {
	padding: 8px 12px 8px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.cookie-table th {
	font-weight: 500;
}
@media (max-width: 599px) {
	.cookie-table {
		display: block;
		overflow-x: auto;
	}
}
