
/* fonts:start */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo.woff2") format("woff2");
	font-weight: 400 800;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jbmono.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
/* fonts:end */

/* Layout: placa de montaje — retícula de 12 columnas, secciones separadas por un carril DIN,
   etiquetas en monoespaciada como los marcadores de bornas. Gris RAL 7035 de envolvente + rojo TEINSE. */
:root {
	--bg: #f1f2ef;
	--surface: #ffffff;
	--panel: #e2e5e1;
	--ink: #131615;
	--muted: #4f5653;
	--line: #c8cdc8;
	--accent: #d50f19;
	--accent-ink: #ffffff;
	--band-ink: #131615;
	--band-ink-fg: #eef0ed;
	--band-ink-muted: #a7aeaa;
	--band-ink-line: #2c3330;
	--rail: #b9bfba;
	--rail-slot: #8f9792;
	--focus: #d50f19;
	--logo-ink: block;
	--logo-light: none;

	--display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--step--1: 0.8125rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	--step-4: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);

	--radius: 4px;
	--wrap: 76rem;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f1211;
		--surface: #171b1a;
		--panel: #1c2120;
		--ink: #eceeeb;
		--muted: #a4aba7;
		--line: #2d3431;
		--accent: #ff4048;
		--accent-ink: #160203;
		--band-ink: #070908;
		--band-ink-fg: #eceeeb;
		--band-ink-muted: #9aa29e;
		--band-ink-line: #262d2a;
		--rail: #2a302d;
		--rail-slot: #121514;
		--focus: #ff4048;
		--logo-ink: none;
		--logo-light: block;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0f1211;
	--surface: #171b1a;
	--panel: #1c2120;
	--ink: #eceeeb;
	--muted: #a4aba7;
	--line: #2d3431;
	--accent: #ff4048;
	--accent-ink: #160203;
	--band-ink: #070908;
	--band-ink-fg: #eceeeb;
	--band-ink-muted: #9aa29e;
	--band-ink-line: #262d2a;
	--rail: #2a302d;
	--rail-slot: #121514;
	--focus: #ff4048;
	--logo-ink: none;
	--logo-light: block;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--step-0);
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) + var(--gutter-r));
	margin-inline: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter-r);
}
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* ---------- Tipografía ---------- */
.display {
	font-family: var(--display);
	font-stretch: 78%;
	font-weight: 760;
	font-size: var(--step-4);
	line-height: 0.98;
	letter-spacing: -0.015em;
}
.display--page { font-size: var(--step-3); line-height: 1.02; }
.h2 { font-family: var(--display); font-stretch: 82%; font-weight: 720; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.01em; }
.h3 { font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: var(--step-2); line-height: 1.15; }
.h4 { font-family: var(--body); font-weight: 680; font-size: var(--step-1); line-height: 1.3; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 38em; }

/* Etiqueta tipo marcador de borna */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: var(--step--1);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
}
.tag::before {
	content: "";
	width: 0.7em;
	height: 0.7em;
	background: var(--accent);
	flex: none;
}
.tag--on-ink { color: var(--band-ink-fg); }

/* ---------- Botones ---------- */
.btn {
	--b: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	border: 1.5px solid var(--b);
	border-radius: var(--radius);
	font: 600 0.9375rem/1.2 var(--body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--lg { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 60;
	background: var(--bg);
}
.topbar { background: var(--band-ink); color: var(--band-ink-muted); font-size: var(--step--1); }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.topbar__contact { display: flex; gap: 1.5rem; }
.topbar a { color: var(--band-ink-fg); text-decoration: none; }
.topbar a:hover { color: var(--accent); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.5rem;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	max-width: none;
}
.site-header .header__inner { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gutter-r), calc((100% - var(--wrap)) / 2)); }
.brand { display: block; flex: none; }
.brand__logo { width: 150px; height: auto; }
.brand__logo--ink { display: var(--logo-ink); }
.brand__logo--light { display: var(--logo-light); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5rem 0.75rem;
	font: 550 0.9375rem/1.2 var(--body);
	color: var(--ink);
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	border-radius: var(--radius);
}
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__link:hover { color: var(--accent); }
.nav__toggle-sub svg { transition: transform 0.15s; }
.nav__toggle-sub[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	min-width: 18rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.35);
	padding: 0.4rem;
	display: none;
}
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__toggle-sub[aria-expanded="true"] + .nav__sub { display: block; }
.nav__item--has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.6rem; }
.nav__sub a { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; text-decoration: none; border-radius: 3px; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--panel); color: var(--ink); }
.nav__sub span { font-weight: 600; }
.nav__sub small { color: var(--muted); font-size: var(--step--1); }

.menu-btn { display: none; }

@media (max-width: 960px) {
	.topbar__item.mono { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.menu-btn {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		margin-left: auto;
		min-height: 2.75rem;
		padding: 0.5rem 0.9rem;
		border: 1.5px solid var(--ink);
		border-radius: var(--radius);
		background: transparent;
		color: var(--ink);
		font: 600 0.9375rem var(--body);
		cursor: pointer;
	}
	.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s; }
	.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
	.menu-btn__bars::before { top: -6px; }
	.menu-btn__bars::after { top: 6px; }
	.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
	.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
	.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter-r) 1.5rem var(--gutter);
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.4);
		display: none;
		max-height: calc(100dvh - 4.5rem);
		overflow-y: auto;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { border-bottom: 1px solid var(--line); }
	.nav__link { width: 100%; justify-content: space-between; padding: 0.95rem 0; font-size: 1.0625rem; }
	.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { box-shadow: none; color: var(--accent); }
	.nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 0.75rem; min-width: 0; background: transparent; }
	.nav__item--has-sub:hover .nav__sub { display: none; }
	.nav__toggle-sub[aria-expanded="true"] + .nav__sub { display: block; }
	.nav__item--has-sub::after { display: none; }
	.nav__cta { width: 100%; }
}

/* ---------- Carril DIN (separador) ---------- */
.rail {
	height: 14px;
	background:
		repeating-linear-gradient(90deg, transparent 0 22px, var(--rail-slot) 22px 34px, transparent 34px 56px) center / 100% 5px no-repeat,
		var(--rail);
	border-block: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: end; padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.hero__copy { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero__media--page img { aspect-ratio: 1; }
.hero--compact .wrap { display: grid; gap: 1.25rem; padding-bottom: clamp(2.5rem, 4vw, 4rem); }

/* Placa de características */
.plate {
	position: absolute;
	left: -1.25rem;
	bottom: 1.5rem;
	display: grid;
	gap: 0.15rem;
	padding: 0.75rem 1rem;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	font-size: 0.75rem;
	box-shadow: 0 16px 32px -18px rgb(0 0 0 / 0.45);
}
.plate__row { display: grid; grid-template-columns: 6.5rem auto; gap: 0.5rem; }
.plate b { font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.crumbs { display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.crumbs a { text-decoration: none; }

/* ---------- Cifras ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: 0.35rem; padding: 1.75rem 1.25rem 1.75rem 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 1.25rem; }
.fact:last-child { border-right: 0; }
.fact__n { font-family: var(--display); font-stretch: 75%; font-weight: 760; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.fact__l { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }

/* ---------- Bandas ---------- */
.band { padding-block: var(--space); }
.band--panel { background: var(--panel); }
.band--ink { background: var(--band-ink); color: var(--band-ink-fg); }
.band--ink .h4 { color: var(--band-ink-fg); }
.band--ink p { color: var(--band-ink-muted); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 3vw, 3rem); max-width: 44rem; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.split .section-head { margin-bottom: 0; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service__body { display: grid; gap: 1rem; align-content: start; padding: 1.5rem; grid-template-rows: auto auto auto 1fr; }
.service__body p { color: var(--muted); }
.service .h3 a { text-decoration: none; }
.service .link-arrow { align-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; }
.chips li { padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.process li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem 1.25rem 0 0; position: relative; }
.process li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--step--1); color: var(--accent); }
.process p { color: var(--muted); font-size: 0.9688rem; }

/* ---------- Sectores ---------- */
.sectors { display: grid; border-top: 1px solid var(--line); }
.sectors li { display: flex; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-stretch: 88%; font-weight: 650; font-size: var(--step-2); line-height: 1.2; }
.sectors .mono { font-size: var(--step--1); color: var(--accent); font-weight: 500; flex: none; }

/* ---------- Ventajas (banda oscura) ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.why li { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--band-ink-line); }
.why li::before { content: ""; width: 1.5rem; height: 3px; background: var(--accent); margin-top: -1.35rem; margin-bottom: 0.9rem; }

/* ---------- Reseñas ---------- */
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.review { display: grid; gap: 1rem; align-content: space-between; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.4; }
.review blockquote p::before { content: "“"; color: var(--accent); font-weight: 700; }
.review blockquote p::after { content: "”"; color: var(--accent); font-weight: 700; }
.review__who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.9375rem; }
.review__who .mono { color: var(--muted); font-size: 0.75rem; }

/* ---------- Formulario ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.quote__intro { display: grid; gap: 1.25rem; min-width: 0; }
.quote__direct { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote__direct dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.quote__direct dd { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--step-2); overflow-wrap: anywhere; }
.quote__direct a { text-decoration: none; }

.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--bg);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--accent); }
.field--check label { font-weight: 400; }
.form__legal { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 600; border: 1.5px solid; }
.form__status--ok { border-color: #1f8a4c; color: var(--ink); background: color-mix(in srgb, #1f8a4c 12%, var(--surface)); }
.form__status--err { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

/* ---------- Páginas de servicio ---------- */
.prose { display: grid; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.prose p { font-size: var(--step-1); line-height: 1.55; }
.prose--doc { max-width: 46rem; }
.prose--doc p, .prose--doc li { font-size: var(--step-0); }
.prose--doc h2, .prose--doc h3 { font-family: var(--display); font-stretch: 88%; margin-top: 1.25rem; }
.prose--doc ul { list-style: disc; padding-left: 1.25rem; }
.prose--doc ol { list-style: decimal; padding-left: 1.25rem; }
.prose--doc table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose--doc td, .prose--doc th { border: 1px solid var(--line); padding: 0.5rem; }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec { display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem; background: var(--surface); }
.spec dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.spec dd { color: var(--ink); }
.specs--stack { grid-template-columns: 1fr; }

.faq { display: grid; border-top: 1px solid var(--line); min-width: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 650; font-size: var(--step-1); line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: none; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding-bottom: 1.25rem; color: var(--muted); max-width: 38em; }

/* ---------- Empresa ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.values li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.values p { color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--band-ink-line); }
.timeline__list li { display: grid; gap: 0.75rem; padding: 1.5rem 1.5rem 0 0; position: relative; }
.timeline__list li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--accent); }
.timeline__list .mono { font-size: var(--step-2); color: var(--band-ink-fg); font-weight: 500; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.contact-card { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.15s; min-width: 0; }
.contact-card:hover { border-color: var(--ink); color: var(--ink); }
.contact-card .mono { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.contact-card strong { font-family: var(--display); font-stretch: 85%; font-size: var(--step-2); line-height: 1.2; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-size: 0.875rem; }

/* ---------- Manuales ---------- */
.manuals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.manual { display: grid; gap: 0.75rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.manual__type { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); letter-spacing: 0.08em; }
.manual p { color: var(--muted); }
.manual .btn { justify-self: start; margin-top: 0.5rem; }
.manuals__help { margin-top: 2rem; color: var(--muted); }

/* ---------- Pie ---------- */
.site-footer { background: var(--band-ink); color: var(--band-ink-muted); }
.site-footer .rail { border-color: var(--band-ink-line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; padding-block: 3.5rem; }
.footer__brand { display: grid; gap: 1.25rem; align-content: start; max-width: 26rem; }
.footer__logo { width: 150px; }
.footer__title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--band-ink-fg); margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.6rem; }
.site-footer a { color: var(--band-ink-fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--band-ink-line); font-size: 0.875rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Botón flotante de llamada (solo móvil) */
.call-fab { display: none; }
@media (max-width: 720px) {
	.call-fab {
		position: fixed;
		right: max(16px, env(safe-area-inset-right, 0px));
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		z-index: 40;
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.8rem 1.1rem;
		background: var(--accent);
		color: var(--accent-ink);
		border-radius: 999px;
		font-weight: 650;
		text-decoration: none;
		box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.5);
	}
	.call-fab:hover { color: var(--accent-ink); }
	.footer__legal { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
	.process li:nth-child(4) { padding-left: 0; border-left: 0; }
	.values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hero__grid, .split, .quote__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__media img { aspect-ratio: 4 / 3; }
	.hero__media { order: -1; }
	.hero__grid { align-items: start; }
	.plate { left: 0.75rem; bottom: 0.75rem; }
	.services, .reviews__list, .contact-cards { grid-template-columns: minmax(0, 1fr); }
	.service { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: none; }
	.service__img { aspect-ratio: auto; height: 100%; }
	.facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact:nth-child(2) { border-right: 0; }
	.fact:nth-child(3) { padding-left: 0; }
	.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer__brand { grid-column: 1 / -1; }
	.timeline__list { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--band-ink-line); }
	.timeline__list li { padding: 0 0 1.75rem 1.5rem; }
	.timeline__list li::before { top: 0.6rem; left: -5px; }
}
@media (max-width: 600px) {
	.service { grid-template-columns: minmax(0, 1fr); }
	.service__img { aspect-ratio: 16 / 9; height: auto; }
	.process { grid-template-columns: minmax(0, 1fr); border-top: 0; }
	.process li, .process li + li { padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); }
	.process li:nth-child(4) { padding-left: 1.25rem; border-left: 2px solid var(--line); }
	.values, .why, .form__row { grid-template-columns: minmax(0, 1fr); }
	.footer__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__actions .btn { flex: 1 1 100%; }
	.sectors li { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.field [aria-invalid="true"] { border-color: var(--accent); }

/* Aviso de cookies */
.consent {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 70;
	max-width: 26rem;
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.5);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.consent__actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
@media (max-width: 720px) { .consent { right: max(16px, env(safe-area-inset-right, 0px)); max-width: none; } }
