/* ==========================================================================
   Maquinados ROME — hoja de estilos principal
   Sistema: azul ROME + ámbar de seguridad + neutros acero
   ========================================================================== */

:root {
	--ink: #0d1520;
	--ink-2: #131d2b;
	--ink-3: #1c2837;
	--steel: #5d6b80;
	--steel-light: #9aa6b8;
	--line-dark: rgba(154, 166, 184, 0.16);
	--paper: #f3f5f8;
	--surface: #fbfcfd;
	--line: #dde2ea;
	--text: #18212e;
	--text-soft: #4b586b;
	--brand: #2f5ca5;
	--brand-bright: #6f9be3;
	--brand-tint: rgba(47, 92, 165, 0.08);
	--accent: #f4a300;
	--accent-hover: #ffb81f;
	--whatsapp: #1fae57;

	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

	--radius: 8px;
	--radius-sm: 4px;
	--shadow-sm: 0 1px 2px rgba(13, 21, 32, 0.06), 0 1px 3px rgba(13, 21, 32, 0.08);
	--shadow-md: 0 4px 8px rgba(13, 21, 32, 0.06), 0 12px 32px rgba(13, 21, 32, 0.1);
	--container: 1200px;
	--gutter: 24px;
	--header-h: 76px;
}

/* ---------- Base ---------- */

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

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p { margin: 0; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -64px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 600;
	border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- Tipos utilitarios ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
}
.eyebrow::before {
	content: "";
	width: 28px; height: 2px;
	background: currentColor;
}
.on-dark .eyebrow { color: var(--accent); }

.section { padding: 112px 0; }
.section--tight { padding: 80px 0; }

.section-head {
	display: grid;
	gap: 16px;
	max-width: 760px;
	margin-bottom: 56px;
}
.section-head h2 {
	font-size: clamp(36px, 5vw, 56px);
	text-transform: uppercase;
}
.section-head p {
	font-size: 18px;
	color: var(--text-soft);
	max-width: 62ch;
}
.on-dark .section-head p { color: var(--steel-light); }

.on-dark {
	background: var(--ink);
	color: #e8edf4;
}

/* ---------- Botones ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--ink); }

.btn--ghost { border-color: rgba(232, 237, 244, 0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: #fff; }

.btn--outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.btn--block { width: 100%; }

/* ---------- Barra superior + encabezado ---------- */

.topbar {
	background: var(--ink);
	color: var(--steel-light);
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.04em;
}
.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--accent); }
.topbar__group { display: flex; gap: 24px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 252, 253, 0.92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 200ms ease-out;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__links {
	display: flex;
	gap: 28px;
	margin: 0; padding: 0;
	list-style: none;
}
.nav__links a {
	position: relative;
	padding: 8px 0;
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.nav__links a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 2px;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease-out;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1023px) {
	.nav-toggle { display: grid; }
	.nav {
		position: fixed;
		inset: calc(var(--header-h) + 40px) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-md);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s linear 180ms;
	}
	.nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 200ms ease-out, transform 200ms ease-out;
	}
	.nav__links { flex-direction: column; gap: 0; }
	.nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
	.nav__links a::after { display: none; }
	.nav .btn { min-height: 52px; }
}

@media (max-width: 639px) {
	.topbar { font-size: 11.5px; letter-spacing: 0.02em; }
	.topbar__item { white-space: nowrap; }
	.topbar__hide-sm { display: none; }
	.brand img { height: 40px; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: #e8edf4;
	isolation: isolate;
}
.hero::before {
	/* retícula de plano técnico */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
		linear-gradient(rgba(154, 166, 184, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(154, 166, 184, 0.06) 1px, transparent 1px);
	background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 64px;
	align-items: center;
	padding: 96px 0 112px;
}
.hero h1 {
	margin: 24px 0;
	font-size: clamp(44px, 6.4vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: #fff;
}
.hero h1 em {
	font-style: normal;
	color: var(--accent);
}
.hero__lead {
	max-width: 56ch;
	font-size: 19px;
	color: #c3ccd9;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

/* Foto enmarcada como plano técnico */
.drawing {
	position: relative;
	padding: 28px;
}
.drawing__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--ink-3);
}
.drawing__frame img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(1.05);
}
.drawing__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(13, 21, 32, 0.55));
}
.drawing__corner {
	position: absolute;
	width: 28px; height: 28px;
	border-color: var(--accent);
	border-style: solid;
	border-width: 0;
}
.drawing__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.drawing__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.drawing__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.drawing__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.drawing__dim {
	position: absolute;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--steel-light);
	text-transform: uppercase;
}
.drawing__dim--top { top: 4px; left: 50%; transform: translateX(-50%); }
.drawing__dim--side { right: -4px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }
.drawing__tag {
	position: absolute;
	left: 48px; bottom: 48px;
	z-index: 1;
	display: grid;
	gap: 4px;
	padding: 12px 16px;
	background: rgba(13, 21, 32, 0.82);
	border-left: 3px solid var(--accent);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.drawing__tag span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--steel-light); text-transform: uppercase; }
.drawing__tag strong { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.01em; color: #fff; text-transform: uppercase; }

/* Hoja de especificaciones */
.specs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line-dark);
}
.specs__item {
	display: grid;
	gap: 6px;
	padding: 28px 24px;
	border-right: 1px solid var(--line-dark);
}
.specs__item:first-child { padding-left: 0; }
.specs__item:last-child { border-right: 0; }
.specs__value { margin: 0; }
.specs__label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--steel-light);
}
.specs__value {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
}
.specs__value a { color: inherit; text-decoration: none; }
.specs__value a:hover { color: var(--accent); }

@media (max-width: 1023px) {
	.hero__grid { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 80px; }
	.specs { grid-template-columns: repeat(2, 1fr); }
	.specs__item:nth-child(2) { border-right: 0; }
	.specs__item:nth-child(3) { padding-left: 0; }
	.specs__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 639px) {
	.drawing { padding: 20px; }
	.drawing__tag { left: 32px; bottom: 32px; }
	.drawing__dim--side { display: none; }
	.hero__actions .btn { width: 100%; }
	.specs__item { padding: 20px 16px; }
	.specs__value { font-size: 22px; }
}

/* ---------- Franja de sectores ---------- */

.sectors {
	background: var(--ink-2);
	border-top: 1px solid var(--line-dark);
	color: var(--steel-light);
	overflow: hidden;
}
.sectors .container {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 72px;
}
.sectors__label {
	flex: none;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.sectors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 0; padding: 0;
	list-style: none;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #d6dde8;
}
.sectors__list li { display: inline-flex; align-items: center; gap: 32px; }
.sectors__list li + li::before {
	content: "";
	width: 6px; height: 6px;
	transform: rotate(45deg);
	background: var(--brand-bright);
}
@media (max-width: 767px) {
	.sectors .container { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
	.sectors__list { font-size: 17px; gap: 6px 20px; }
	.sectors__list li + li::before { display: none; }
}

/* ---------- Servicios ---------- */

.services { display: grid; border-top: 2px solid var(--ink); }

.service {
	display: grid;
	grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	padding: 48px 0;
	border-bottom: 1px solid var(--line);
}
.service__num {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--brand);
	padding-top: 8px;
}
.service__icon {
	width: 56px; height: 56px;
	margin-top: 20px;
	color: var(--ink);
}
.service__main { display: grid; gap: 16px; align-content: start; }
.service h3 {
	font-size: clamp(30px, 3.4vw, 40px);
	text-transform: uppercase;
}
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--brand); }
.service__desc { color: var(--text-soft); max-width: 58ch; }
.service__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: var(--brand);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 160ms ease-out; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--muted { color: var(--text); }

.checklist {
	display: grid;
	gap: 12px;
	margin: 0; padding: 0;
	list-style: none;
	align-content: start;
}
.checklist li {
	position: relative;
	padding: 12px 0 12px 32px;
	border-bottom: 1px dashed var(--line);
	font-size: 16px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 19px;
	width: 14px; height: 8px;
	border-left: 2px solid var(--brand);
	border-bottom: 2px solid var(--brand);
	transform: rotate(-45deg);
}
.on-dark .checklist li { border-color: var(--line-dark); }
.on-dark .checklist li::before { border-color: var(--accent); }

@media (max-width: 1023px) {
	.service { grid-template-columns: 64px minmax(0, 1fr); gap: 24px 32px; }
	.service__side { grid-column: 2; }
}
@media (max-width: 639px) {
	.service { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
	.service__side { grid-column: auto; }
	.service__aside { display: flex; align-items: center; gap: 16px; }
	.service__icon { margin-top: 0; width: 44px; height: 44px; }
	.service__num { padding-top: 0; }
}

/* ---------- Por qué ROME ---------- */

.values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line-dark);
	border-left: 1px solid var(--line-dark);
}
.value {
	display: grid;
	gap: 16px;
	align-content: start;
	padding: 40px 32px 48px;
	border-right: 1px solid var(--line-dark);
	border-bottom: 1px solid var(--line-dark);
	transition: background-color 200ms ease-out;
}
.value:hover { background: rgba(255, 255, 255, 0.025); }
.value svg { width: 32px; height: 32px; color: var(--accent); }
.value h3 {
	font-size: 26px;
	text-transform: uppercase;
	color: #fff;
}
.value p { color: var(--steel-light); font-size: 16px; }

@media (max-width: 1023px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
	.values { grid-template-columns: 1fr; }
	.value { padding: 32px 24px; }
}

/* ---------- Proceso ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0; padding: 0;
	list-style: none;
	counter-reset: step;
}
.step {
	position: relative;
	display: grid;
	gap: 12px;
	align-content: start;
	padding: 32px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	counter-increment: step;
}
.step::before {
	content: "0" counter(step);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand);
}
.step::after {
	/* conector */
	content: "";
	position: absolute;
	top: 42px; right: -25px;
	width: 24px; height: 1px;
	background: var(--steel-light);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 24px; text-transform: uppercase; }
.step p { color: var(--text-soft); font-size: 16px; }

@media (max-width: 1023px) {
	.steps { grid-template-columns: repeat(2, 1fr); }
	.step::after { display: none; }
}
@media (max-width: 639px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Galería del taller ---------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 120px;
	gap: 12px;
}
.gallery__item {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: var(--radius-sm);
	background: var(--ink-3);
}
.gallery__item button {
	all: unset;
	display: block;
	width: 100%; height: 100%;
	cursor: zoom-in;
}
.gallery__item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gallery__item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 400ms ease-out;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
	position: absolute;
	left: 12px; bottom: 12px;
	padding: 6px 10px;
	background: rgba(13, 21, 32, 0.8);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
}
.g-a { grid-column: span 7; grid-row: span 4; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 5; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
.g-f { grid-column: span 4; grid-row: span 3; }
.g-g { grid-column: span 6; grid-row: span 3; }
.g-h { grid-column: span 6; grid-row: span 3; }

@media (max-width: 767px) {
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
	.gallery__item { grid-column: span 1 !important; grid-row: span 1 !important; }
	.gallery__item.g-a { grid-column: span 2 !important; grid-row: span 2 !important; }
	.gallery__item.g-h { grid-column: span 2 !important; }
}

/* Lightbox */
.lightbox {
	width: min(1100px, 100vw - 32px);
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}
.lightbox::backdrop { background: rgba(8, 12, 18, 0.92); }
.lightbox img {
	width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}
.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.lightbox__controls { display: flex; gap: 8px; }
.lightbox__controls button {
	width: 44px; height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-sm);
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.lightbox__controls button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__controls svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Cotizador ---------- */

.quote {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: start;
}
.quote__intro { display: grid; gap: 24px; }
.quote__intro h2 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; color: #fff; }
.quote__intro > p { color: var(--steel-light); font-size: 18px; max-width: 52ch; }

.contact-list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.contact-list li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--line-dark);
}
.contact-list svg { width: 24px; height: 24px; color: var(--accent); }
.contact-list small {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--steel-light);
}
.contact-list strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form-card {
	padding: 40px;
	background: var(--surface);
	color: var(--text);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 30px; text-transform: uppercase; }
.form-card > p { margin-top: 8px; color: var(--text-soft); font-size: 15px; }
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 28px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}
.field label span { color: var(--text-soft); font-weight: 400; }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #c9d1dd;
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--text);
	font: inherit;
	font-size: 16px;
	transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b586b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(47, 92, 165, 0.18);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c62828; }
.form-actions { display: grid; gap: 12px; margin-top: 28px; }
.form-note { font-size: 13px; color: var(--text-soft); text-align: center; }

@media (max-width: 1023px) { .quote { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 639px) {
	.form-card { padding: 28px 20px; }
	.form-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 64px;
}
.faq-layout .section-head { align-content: start; margin-bottom: 0; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	font-family: var(--font-display);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	flex: none;
	width: 12px; height: 12px;
	border-right: 2px solid var(--brand);
	border-bottom: 2px solid var(--brand);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform 200ms ease-in-out;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-soft); max-width: 68ch; }

@media (max-width: 1023px) { .faq-layout { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- CTA final ---------- */

.cta-band {
	position: relative;
	overflow: hidden;
	background: var(--brand);
	color: #fff;
}
.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band .container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 64px;
	padding-bottom: 64px;
}
.cta-band h2 { font-size: clamp(32px, 4.4vw, 52px); text-transform: uppercase; max-width: 18ch; }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; flex: none; }
@media (max-width: 1023px) {
	.cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

/* ---------- Pie ---------- */

.site-footer {
	background: var(--ink);
	color: var(--steel-light);
	font-size: 15px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 48px;
	padding: 80px 0 56px;
}
.footer-brand img { width: 88px; height: auto; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.site-footer h2 {
	margin-bottom: 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d6dde8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 24px 0 32px;
	border-top: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; } }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: var(--whatsapp);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(13, 21, 32, 0.28);
	transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { color: #fff; background: #19984b; transform: translateY(-2px); }
@media (max-width: 639px) {
	.wa-float { width: 56px; padding: 0; justify-content: center; }
	.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Páginas de servicio ---------- */

.page-hero {
	position: relative;
	background: var(--ink);
	color: #e8edf4;
	overflow: hidden;
	isolation: isolate;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(90deg, transparent 10%, #000 70%);
	-webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%);
}
.page-hero .container { padding-top: 56px; padding-bottom: 80px; }
.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 64px;
	align-items: end;
}
.page-hero h1 {
	margin: 20px 0;
	font-size: clamp(40px, 5.6vw, 72px);
	text-transform: uppercase;
	color: #fff;
}
.page-hero__lead { font-size: 19px; color: #c3ccd9; max-width: 58ch; }
.page-hero__icon { width: 140px; height: 140px; color: var(--accent); justify-self: end; opacity: 0.9; }
@media (max-width: 1023px) {
	.page-hero__grid { grid-template-columns: 1fr; }
	.page-hero__icon { display: none; }
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0; padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--steel-light);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--steel); }
.breadcrumb a { color: var(--steel-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: #fff; }

.detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 64px;
	align-items: start;
}
.prose { display: grid; gap: 20px; max-width: 70ch; }
.prose h2 { margin-top: 24px; font-size: 34px; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); font-size: 17px; }
.prose .checklist li { font-size: 17px; }

.sidebar-card {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 16px;
	padding: 32px;
	background: var(--ink);
	color: #e8edf4;
	border-radius: var(--radius);
}
.sidebar-card h2 { font-size: 28px; text-transform: uppercase; color: #fff; }
.sidebar-card p { color: var(--steel-light); font-size: 15px; }
.sidebar-card dl { display: grid; gap: 12px; margin: 8px 0; padding: 16px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.sidebar-card dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-light); }
.sidebar-card dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; }
.sidebar-card dd a { color: inherit; text-decoration: none; }
.sidebar-card dd a:hover { color: var(--accent); }

.related {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.related a {
	display: grid;
	gap: 12px;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	transition: border-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}
.related a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related svg { width: 36px; height: 36px; color: var(--brand); }
.related strong { font-family: var(--font-display); font-size: 21px; line-height: 1.15; text-transform: uppercase; }

@media (max-width: 1023px) {
	.detail { grid-template-columns: 1fr; }
	.sidebar-card { position: static; }
	.related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) { .related { grid-template-columns: 1fr; } }

/* ---------- Animación de entrada ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 400ms ease-out, transform 400ms ease-out;
	}
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
	.topbar, .site-header, .wa-float, .cta-band, .form-card { display: none !important; }
	body { background: #fff; }
}
