/* ==========================================================================
   OHM Ingenieros — estilos del tema
   Sistema "Industry": azul acero, Barlow Condensed / Barlow, marcos de plano.
   Índice: 1 tokens · 2 base · 3 utilidades · 4 botones · 5 cabecera y menú
           6 hero · 7 secciones de inicio · 8 páginas interiores · 9 pie
           10 flotantes · 11 animaciones · 12 movimiento reducido
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--bg: #f2f2f3;
	--surface: #e9e9ea;
	--text: #1d1f20;
	--muted: #5d5d60;
	--accent: #5980a6;
	--accent-600: #597ea3;
	--accent-700: #416180;
	--accent-800: #2c455d;
	--accent-900: #1d2d3d;
	--accent-300: #b5d9fd;
	--divider: rgba(29, 31, 32, .16);
	--divider-light: rgba(242, 242, 243, .18);
	--font-h: "Barlow Condensed", system-ui, sans-serif;
	--font-b: "Barlow", system-ui, sans-serif;
	--header-h: 76px;
	--container: 1240px;
	--gutter: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--grid-size: 48px;
	--grid-line: rgba(29, 31, 32, .07);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-b); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-900); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(89, 128, 166, .3); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent-900); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* 3. Utilidades ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--surface); }
.center { text-align: center; }
.kicker {
	display: inline-flex; gap: 14px; align-items: center;
	font-family: var(--font-h); font-weight: 600; font-size: 14px;
	letter-spacing: .16em; text-transform: uppercase; color: var(--accent-700); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker--light { color: var(--accent-300); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-title { font-size: clamp(36px, 5.2vw, 60px); text-transform: uppercase; margin: 0; }
.h4 { font-size: 22px; text-transform: uppercase; }
.grid-bg {
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: var(--grid-size) var(--grid-size);
	background-position: -1px -1px;
}

/* Marco tipo plano con marcas de registro */
.blueprint { position: relative; border: 1px solid var(--divider); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: rgba(29, 31, 32, .55); transition: transform .4s var(--ease), color .3s; z-index: 2; pointer-events: none; }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* Duotono azul acero */
.duotone { position: relative; overflow: hidden; }
.duotone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--accent); mix-blend-mode: color; transition: opacity .5s var(--ease); }
.blueprint.duotone { overflow: visible; }
.blueprint.duotone > img { width: 100%; height: 100%; object-fit: cover; }
.blueprint.duotone::after { z-index: 1; }

/* 4. Botones ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--font-h); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
	padding: 12px 22px; border: 1px solid transparent; border-radius: 0;
	text-decoration: none; cursor: pointer; line-height: 1.1;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
	position: relative; overflow: hidden;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-primary { background: var(--accent-700); color: #fff; }
.btn-primary:hover { background: var(--accent-900); color: #fff; }
.btn-secondary { border-color: var(--text); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn-ghost { color: var(--accent-700); padding-inline: 4px; }
.btn-ghost:hover { color: var(--accent-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--accent-900); }

/* 5. Cabecera y menú -------------------------------------------------------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(242, 242, 243, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent; transition: height .3s var(--ease), border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { --header-h: 62px; border-color: var(--divider); box-shadow: 0 6px 24px rgba(29, 31, 32, .06); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.main-nav .menu { list-style: none; }
.main-nav a { text-decoration: none; color: inherit; }

/* Botón hamburguesa */
.menu-toggle {
	margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
	background: none; border: 1px solid var(--divider); padding: 10px 12px; cursor: pointer; z-index: 130; position: relative;
	font-family: var(--font-h); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
}
.menu-toggle__bars { position: relative; width: 22px; height: 14px; }
.menu-toggle__bars i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.menu-toggle__bars i:nth-child(1) { top: 0; }
.menu-toggle__bars i:nth-child(2) { top: 6px; }
.menu-toggle__bars i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] { color: #fff; border-color: var(--divider-light); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.header-cta { display: none; }

/* Menú móvil: pantalla completa */
@media (max-width: 1079.98px) {
	.main-nav {
		position: fixed; inset: 0; z-index: 110; background: var(--accent-900); color: #fff;
		padding: calc(var(--header-h) + 32px) var(--gutter) 32px; overflow-y: auto;
		display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
		clip-path: circle(0 at calc(100% - 48px) 38px); visibility: hidden;
		transition: clip-path .6s var(--ease), visibility 0s .6s;
		background-image: linear-gradient(var(--divider-light) 1px, transparent 1px), linear-gradient(90deg, var(--divider-light) 1px, transparent 1px);
		background-size: var(--grid-size) var(--grid-size);
	}
	.main-nav.is-open { clip-path: circle(150% at calc(100% - 48px) 38px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
	.main-nav .menu > li { border-bottom: 1px solid var(--divider-light); opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
	.main-nav.is-open .menu > li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .06s); }
	.main-nav .menu > li > a { display: block; padding: 14px 0; font-family: var(--font-h); font-weight: 600; font-size: clamp(30px, 8vw, 44px); text-transform: uppercase; line-height: 1; }
	.main-nav .menu > li > a:hover { color: var(--accent-300); }
	.main-nav .sub-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 0 16px; }
	.main-nav .sub-menu a { font-size: 17px; color: var(--accent-300); }
	.main-nav__extra { display: flex; flex-direction: column; gap: 20px; opacity: 0; transition: opacity .4s .45s; }
	.main-nav.is-open .main-nav__extra { opacity: 1; }
	.main-nav__extra .btn { align-self: flex-start; }
	.main-nav__contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
	.main-nav__contact a { display: inline-flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, .8); }
	.site-header.menu-is-open { background: transparent; backdrop-filter: none; border-color: transparent; box-shadow: none; }
	.site-header.menu-is-open .brand { position: relative; z-index: 130; filter: brightness(0) invert(1); }
}

/* Menú de escritorio */
@media (min-width: 1080px) {
	.menu-toggle { display: none; }
	.main-nav { margin-left: auto; }
	.main-nav__extra { display: none; }
	.main-nav .menu { display: flex; gap: 4px; }
	.main-nav .menu > li { position: relative; }
	.main-nav .menu > li > a {
		display: block; padding: 10px 12px; font-family: var(--font-h); font-weight: 600; font-size: 16px;
		letter-spacing: .08em; text-transform: uppercase; position: relative;
	}
	.main-nav .menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent-700); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
	.main-nav .menu > li > a:hover::after, .main-nav .menu > li.current-menu-item > a::after, .main-nav .menu > li > a.is-current::after { transform: scaleX(1); transform-origin: left; }
	.main-nav .menu > .menu-item-has-children > a { padding-right: 26px; }
	.main-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); }
	.main-nav .sub-menu {
		list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px 0;
		background: var(--bg); border: 1px solid var(--divider); box-shadow: 0 16px 40px rgba(29, 31, 32, .12);
		opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
	}
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.main-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 15px; }
	.main-nav .sub-menu a:hover { background: var(--surface); color: var(--accent-700); }
	.header-cta { display: inline-flex; padding: 11px 20px; }
}

/* 6. Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__lines line { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.hero__kicker { gap: 18px; }
.hero__kicker span + span { color: var(--muted); }
.hero__title { font-size: clamp(44px, 6.6vw, 92px); line-height: .92; text-transform: uppercase; margin: 0 0 28px; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--accent-700); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: #3a3c3e; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__seal { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--accent-700); border: 1px solid var(--divider); padding: 8px 14px; margin: 0; background: var(--bg); }
.hero__media { aspect-ratio: 5 / 4; margin: 0 14px 30px 0; }
.media-clip { position: absolute; inset: 0; overflow: hidden; }
.media-clip img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.1) translateY(var(--py, 0)); }
.cota { position: absolute; overflow: visible; }
.cota line { stroke: var(--accent-700); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cota--h { left: 0; right: 0; bottom: -30px; width: 100%; height: 16px; }
.cota--v { top: 0; bottom: 0; right: -26px; width: 16px; height: 100%; }
.cota-label { position: absolute; font-family: var(--font-h); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--accent-700); background: var(--bg); padding: 0 8px; }
.cota-label--h { left: 50%; bottom: -36px; transform: translateX(-50%); white-space: nowrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1px solid var(--text); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; background: var(--text); transform: translateX(-50%); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 959.98px) { .hero__scroll { display: none; } }

/* 7. Secciones de inicio ------------------------------------------------- */
/* Cifras */
.stats { background: var(--accent-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 34px 20px; border-left: 1px solid var(--divider-light); display: flex; flex-direction: column; gap: 6px; }
.stat:nth-child(odd) { border-left: 0; }
@media (min-width: 900px) { .stat:nth-child(odd) { border-left: 1px solid var(--divider-light); } .stat:first-child { border-left: 0; } }
@media (max-width: 899.98px) { .stat:nth-child(-n+2) { border-bottom: 1px solid var(--divider-light); } }
.stat__num { font-family: var(--font-h); font-weight: 600; font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--accent-300); }
.stat__label { font-size: 15px; color: rgba(255, 255, 255, .78); max-width: 16em; }

/* Nosotros */
.about { display: grid; gap: 40px; align-items: center; margin-bottom: 56px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.about__text p { font-size: 18px; max-width: 36em; }
.about__media { aspect-ratio: 4 / 3; margin: 6px; }
.about__closing { font-family: var(--font-h); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; max-width: 30em; margin: 48px 0 0; border-top: 1px solid var(--divider); padding-top: 24px; }
.founders { display: grid; gap: 24px; }
@media (min-width: 900px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.founder { padding: 28px; background: var(--bg); transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.founder:hover { border-color: var(--accent); box-shadow: 0 18px 40px rgba(29, 45, 61, .1); transform: translateY(-3px); }
.founder:hover > .corner, .work-cat:hover > .corner, .child-card:hover > .corner, .contact-card:hover > .corner { color: var(--accent-700); }
.founder:hover > .corner.tl, .work-cat:hover > .corner.tl { transform: translate(-4px, -4px); }
.founder:hover > .corner.tr, .work-cat:hover > .corner.tr { transform: translate(4px, -4px); }
.founder:hover > .corner.bl, .work-cat:hover > .corner.bl { transform: translate(-4px, 4px); }
.founder:hover > .corner.br, .work-cat:hover > .corner.br { transform: translate(4px, 4px); }
.founder__role { font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 10px; }
.founder__name { font-size: clamp(28px, 3vw, 36px); text-transform: uppercase; margin-bottom: 12px; }
.founder__summary { font-size: 17px; }
.founder__more { overflow: hidden; }
.founder__more p { font-size: 15px; color: #3a3c3e; }
.founder__toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-top: 1px solid var(--divider); width: 100%; padding: 14px 0 0; margin-top: 8px; cursor: pointer; font-family: var(--font-h); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--accent-700); justify-content: space-between; }
.founder__toggle .icon { transition: transform .35s var(--ease); }
.founder__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }

/* Servicios: pestañas en escritorio, acordeón en móvil */
.services { display: grid; gap: 0; border-top: 1px solid var(--divider); }
.service-tab {
	display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 12px; text-align: left;
	background: none; border: 0; border-bottom: 1px solid var(--divider); padding: 22px 4px; cursor: pointer; transition: color .25s, background .25s, padding .3s var(--ease);
}
.service-tab__n { font-family: var(--font-h); font-weight: 600; font-size: 16px; color: var(--accent-700); letter-spacing: .1em; }
.service-tab__t { font-family: var(--font-h); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; line-height: 1.05; }
.service-tab .icon { transition: transform .35s var(--ease); color: var(--accent-700); }
.service-tab:hover { color: var(--accent-700); }
.service-tab.is-active { color: var(--accent-900); }
.service-tab.is-active .icon { transform: rotate(90deg); }
.service-panel { display: none; }
.service-panel.is-active { display: grid; animation: panel-in .55s var(--ease); }
.service-panel__media { aspect-ratio: 16 / 10; margin: 6px 6px 0; }
.service-panel__body { padding: 28px 4px 36px; }
.service-panel__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border: 1px solid var(--divider); color: var(--accent-700); margin-bottom: 16px; }
.service-panel__body h3 { font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; }
.service-panel__body h3 span { color: var(--accent-700); }
.check-list { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 17px; }
.check-list .icon { margin-top: 5px; color: var(--accent-700); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
	.services { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: 56px; border-top: 0; }
	.service-tab { grid-column: 1; grid-row: var(--r); border-top: 0; }
	.service-tab:first-of-type { border-top: 1px solid var(--divider); }
	.service-tab.is-active { padding-left: 16px; background: var(--bg); }
	.service-panel { grid-column: 2; grid-row: 1 / span 5; align-content: start; }
	.service-panel__body { padding: 28px 0 0; }
}

/* Proceso */
.process { list-style: none; display: grid; gap: 0; position: relative; margin-bottom: 48px; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--divider); }
.process::after { content: ""; position: absolute; left: 22px; top: 0; width: 1px; height: 100%; background: var(--accent-700); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease); }
.process.is-drawn::after { transform: scaleY(1); }
.process__step { position: relative; padding: 0 0 36px 68px; }
.process__n { position: absolute; left: 0; top: 0; width: 45px; height: 45px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent-700); font-family: var(--font-h); font-weight: 600; color: var(--accent-700); z-index: 1; }
.process__step h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; padding-top: 6px; }
.process__step p { color: #3a3c3e; max-width: 22em; }
@media (min-width: 900px) {
	.process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
	.process::before, .process::after { left: 0; right: 0; top: 22px; bottom: auto; width: auto; height: 1px; }
	.process::after { transform: scaleX(0); transform-origin: left; }
	.process.is-drawn::after { transform: scaleX(1); }
	.process__step { padding: 72px 0 0; }
}

/* Pilares + por qué elegirnos */
.why { background: var(--bg); padding-bottom: clamp(64px, 9vw, 120px); }
.pillars { background: var(--accent-900); color: #fff; }
.pillars__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pillars__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { padding: 32px 20px; border-left: 1px solid var(--divider-light); display: flex; flex-direction: column; gap: 4px; }
.pillar:first-child, .pillar:nth-child(3) { border-left: 0; }
@media (min-width: 900px) { .pillar:nth-child(3) { border-left: 1px solid var(--divider-light); } }
.pillar .icon { color: var(--accent-300); margin-bottom: 12px; }
.pillar__k { font-family: var(--font-h); font-size: 12px; letter-spacing: .14em; color: var(--accent-300); }
.pillar strong { font-family: var(--font-h); font-weight: 600; font-size: 26px; text-transform: uppercase; line-height: 1; }
.pillar span:last-child { color: rgba(255, 255, 255, .75); font-size: 15px; }
.why__grid { display: grid; gap: 40px; padding-top: clamp(64px, 9vw, 110px); }
@media (min-width: 960px) { .why__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: stretch; } }
.why__list { list-style: none; margin-top: 28px; border-top: 1px solid var(--divider); }
.why__list li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--divider); font-size: 18px; transition: padding .3s var(--ease), background .3s; }
.why__list li:hover { padding-left: 10px; background: var(--surface); }
.why__list span { font-family: var(--font-h); font-weight: 600; color: var(--accent-700); }
.why__media { min-height: 360px; margin: 6px; }

/* Trabajos (categorías) */
.work-cats { display: grid; gap: 28px; }
@media (min-width: 800px) { .work-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.work-cat { display: block; text-decoration: none; color: inherit; background: var(--bg); transition: border-color .3s; }
.work-cat__media { display: block; aspect-ratio: 16 / 10; }
.work-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-cat:hover .work-cat__media img { transform: scale(1.06); }
.work-cat:hover .duotone::after { opacity: .35; }
.work-cat__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 24px 26px; }
.work-cat__k { grid-column: 1 / -1; font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--accent-700); }
.work-cat__body strong { font-family: var(--font-h); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); text-transform: uppercase; line-height: 1; }
.work-cat__body > span:not(.work-cat__k):not(.work-cat__go) { grid-column: 1; color: #3a3c3e; }
.work-cat__go { grid-column: 2; grid-row: 2 / span 2; align-self: center; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--divider); transition: background .3s, color .3s, transform .4s var(--ease); }
.work-cat:hover .work-cat__go { background: var(--accent-700); color: #fff; transform: rotate(-45deg); }
.work-cat:hover { border-color: var(--accent); }

/* Sectores */
.sectors { position: relative; color: #fff; background: var(--accent-900); padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; isolation: isolate; }
.sectors__bg { position: absolute; inset: 0; z-index: -1; }
.sectors__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; transform: scale(1.1) translateY(var(--py, 0)); }
.sectors__bg.duotone::after { background: var(--accent-900); mix-blend-mode: multiply; opacity: .6; }
.sectors .section-title { color: #fff; }
.sectors__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--divider-light); border-left: 1px solid var(--divider-light); }
@media (min-width: 900px) { .sectors__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sector { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 180px; padding: 20px; border-right: 1px solid var(--divider-light); border-bottom: 1px solid var(--divider-light); transition: background .35s; }
.sector::before { content: ""; position: absolute; inset: 0; background: var(--accent-700); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.sector:hover::before { transform: scaleY(1); }
.sector__code { font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--accent-300); }
.sector .icon { color: var(--accent-300); transition: transform .45s var(--ease), color .3s; }
.sector:hover .icon { transform: translateY(-4px); color: #fff; }
.sector strong { margin-top: auto; font-family: var(--font-h); font-weight: 600; font-size: clamp(19px, 2vw, 24px); text-transform: uppercase; line-height: 1.05; }

/* Clientes: banda en movimiento */
.clients { overflow: hidden; }
.marquee { display: flex; overflow: hidden; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; display: flex; flex: none; min-width: 100%; justify-content: space-around; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.client { flex: none; width: clamp(200px, 22vw, 280px); height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 24px; border-right: 1px solid var(--divider); }
.client img { max-height: 84px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
.client__name { font-family: var(--font-h); font-weight: 600; font-size: 22px; text-transform: uppercase; line-height: 1.05; color: #3a3c3e; }
.client__sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Compromiso */
.commit { background: var(--accent-900); color: #fff; padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.commit::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--divider-light) 1px, transparent 1px), linear-gradient(90deg, var(--divider-light) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); opacity: .5; -webkit-mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); }
.commit__inner { position: relative; }
.commit__quote { font-size: clamp(28px, 4vw, 52px); line-height: 1.1; text-transform: none; font-weight: 500; max-width: 22em; margin-bottom: 40px; }
.commit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 8. Páginas interiores --------------------------------------------------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid rgba(29, 31, 32, .12); }
.page-title { font-size: clamp(44px, 7vw, 88px); text-transform: uppercase; margin: 0; letter-spacing: -.02em; }
.prose { max-width: 760px; font-size: 18px; }
.prose h2 { font-size: 34px; text-transform: uppercase; margin-top: 1.4em; }
.prose h3 { font-size: 26px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose img { margin: 1.5em 0; }
.empty-state { padding: 40px; max-width: 760px; background: var(--bg); }
.empty-state p:not(.kicker) { font-size: 19px; }
.child-grid { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 700px) { .child-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.child-card { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 32px; text-decoration: none; color: inherit; background: var(--bg); transition: border-color .3s, background .3s; }
.child-card:hover { border-color: var(--accent); background: var(--surface); }
.child-card__k { grid-column: 1 / -1; font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--accent-700); }
.child-card strong { font-family: var(--font-h); font-weight: 600; font-size: 36px; text-transform: uppercase; line-height: 1; }
.child-card .icon { align-self: center; color: var(--accent-700); transition: transform .3s var(--ease); }
.child-card:hover .icon { transform: translateX(6px); }

/* Contacto */
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: start; } }
.contact__cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; text-decoration: none; color: inherit; background: var(--bg); transition: border-color .3s, background .3s; }
a.contact-card:hover { border-color: var(--accent); background: var(--surface); }
.contact-card .icon { color: var(--accent-700); margin-bottom: 10px; }
.contact-card__k { font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); }
.contact-card strong { font-family: var(--font-h); font-weight: 600; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.contact-card strong.small { font-size: 20px; }
.contact__quote { padding: 32px; background: var(--accent-900); color: #fff; border-color: var(--accent-900); }
.contact__quote h2 { font-size: 34px; text-transform: uppercase; }
.contact__quote .kicker { color: var(--accent-300); }
.contact__quote > .corner { color: var(--accent-700); }
.contact__extra { grid-column: 1 / -1; }

/* Cotizar */
.quote { display: grid; gap: 32px; }
@media (min-width: 960px) { .quote { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: start; } }
.quote__app { padding: clamp(24px, 4vw, 40px); background: var(--bg); }
.quote__app h2 { font-size: clamp(30px, 3.4vw, 40px); text-transform: uppercase; }
.quote__services { display: grid; gap: 10px; margin-top: 24px; }
.quote-chip { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 8px; padding: 16px 18px; border: 1px solid var(--divider); text-decoration: none; color: inherit; font-family: var(--font-h); font-weight: 600; font-size: 20px; text-transform: uppercase; transition: border-color .25s, background .25s, padding .3s var(--ease); }
.quote-chip span { color: var(--accent-700); font-size: 15px; letter-spacing: .1em; }
.quote-chip:hover, .quote-chip.is-active { border-color: var(--accent-700); background: var(--surface); padding-left: 24px; }
.quote__side .contact-list { margin-bottom: 28px; }
.mini-process { list-style: none; border-top: 1px solid var(--divider); }
.mini-process li { padding: 12px 0; border-bottom: 1px solid var(--divider); font-family: var(--font-h); font-weight: 600; text-transform: uppercase; font-size: 18px; }
.mini-process span { color: var(--accent-700); margin-right: 12px; }

/* Blog */
.post-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { background: var(--bg); display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__meta { font-family: var(--font-h); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 8px; }
.post-card__title { font-size: 26px; }
.post-card__title a { color: inherit; text-decoration: none; }
.single-media { margin: 0 6px 40px; max-width: 980px; aspect-ratio: 16 / 9; }
.pagination { margin-top: 40px; font-family: var(--font-h); font-size: 18px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--divider); text-decoration: none; }
.pagination .current { background: var(--accent-700); color: #fff; }

/* Banda de cotización */
.cta-band { background: var(--accent-700); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band__title { font-size: clamp(32px, 4.4vw, 52px); text-transform: uppercase; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-900); }
.cta-band .btn-primary:hover { background: var(--accent-900); color: #fff; }

/* Lista de contacto */
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.contact-list--dark a { color: var(--text); font-size: 18px; }
.contact-list--dark a:hover { color: var(--accent-700); }

/* 9. Pie de página -------------------------------------------------------- */
.site-footer { background: var(--accent-900); color: rgba(255, 255, 255, .78); padding-top: clamp(56px, 8vw, 88px); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 20px; }
.site-footer__lema { font-family: var(--font-h); font-size: 22px; line-height: 1.2; color: #fff; max-width: 14em; }
.site-footer__title { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-300); margin-bottom: 18px; }
.site-footer .menu { list-style: none; display: grid; gap: 8px; }
.site-footer .sub-menu { display: none; }
.site-footer__bottom { border-top: 1px solid var(--divider-light); padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* 10. Flotantes -------------------------------------------------------------- */
.wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
	background: #1f8f4e; color: #fff; padding: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); text-decoration: none;
	transition: transform .3s var(--ease), padding .3s var(--ease);
}
.wa-float:hover { color: #fff; transform: translateY(-3px); }
.wa-float__label { font-family: var(--font-h); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover .wa-float__label { max-width: 120px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border: 1px solid #1f8f4e; animation: pulse 2.6s infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.to-top {
	position: fixed; right: 18px; bottom: 84px; z-index: 89; width: 48px; height: 48px; display: grid; place-items: center;
	background: var(--bg); border: 1px solid var(--divider); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--accent-700); color: #fff; }

/* 11. Animaciones (solo con JS activo) ------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Dibujo de líneas SVG */
.js .draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Títulos del hero, línea por línea */
.js .hero__title .line > span { transform: translateY(110%); animation: line-up 1s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .2s; }
.js .hero__title .line:nth-child(4) > span { animation-delay: .3s; }
@keyframes line-up { to { transform: none; } }
.js .hero__kicker, .js .hero__lead, .js .hero__actions, .js .hero__seal { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.js .hero__kicker { animation-delay: .05s; }
.js .hero__lead { animation-delay: .45s; }
.js .hero__actions { animation-delay: .55s; }
.js .hero__seal { animation-delay: .65s; }
.js .hero__media { opacity: 0; animation: media-in 1.2s var(--ease) .25s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes media-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(-40px -40px -40px -40px); } }

/* Transición entre páginas */
.js .site-main { animation: page-in .5s var(--ease); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.is-leaving .site-main, .is-leaving .site-footer, .is-leaving .cta-band { opacity: 0; transition: opacity .22s; }
.page-wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--accent-900); transform: scaleY(0); transform-origin: bottom; }
.is-leaving .page-wipe { transform: scaleY(1); transition: transform .32s var(--ease); }

/* 12. Movimiento reducido ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
	.marquee { overflow-x: auto; }
}

/* 13. Del plano a la obra ---------------------------------------------------- */
.plano { position: relative; height: 740vh; background-color: var(--bg); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); border-bottom: 1px solid var(--divider); }
.plano__sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.plano__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .plano__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }
.plano__lead { color: #3a3c3e; max-width: 30em; margin: 14px 0 22px; }
.plano__steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--divider); }
.plano__steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; padding: 10px 0; border-bottom: 1px solid var(--divider); font-family: var(--font-h); font-weight: 600; font-size: 18px; text-transform: uppercase; color: rgba(29, 31, 32, .35); transition: color .3s; }
.plano__steps li span { color: inherit; font-size: 14px; letter-spacing: .1em; padding-top: 3px; }
.plano__steps li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-700); transform-origin: left; transform: scaleX(var(--k, 0)); }
.plano__steps li.is-active, .plano__steps li.is-done { color: var(--text); }
.plano__steps li.is-active span, .plano__steps li.is-done span { color: var(--accent-700); }
.plano__stage { background: rgba(242, 242, 243, .85); margin: 6px; }
.plano__svg { width: 100%; height: auto; }
.bp-line { fill: none; stroke: var(--accent-700); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.bp-strong { stroke: var(--accent-900); stroke-width: 2; }
.bp-thin .bp-line, .bp-line.bp-thin { stroke-width: 1; }
.bp-hidden { stroke-dasharray: 7 5; stroke-width: 1; }
.bp-center { stroke-dasharray: 22 5 3 5; stroke-width: 1; stroke: var(--accent); }
.bp-text { font-family: var(--font-h); font-weight: 600; font-size: 14px; letter-spacing: .08em; fill: var(--accent-700); }
.bp-text--sm { font-size: 12px; }
.bp-text--xs { font-size: 10px; letter-spacing: .06em; }
@media (max-width: 959.98px) {
	.plano { height: 620vh; }
	.plano__lead { display: none; }
	.plano__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
	.plano__steps li { grid-template-columns: 1fr; font-size: 0; padding: 6px 0 8px; }
	.plano__steps li span { font-size: 13px; }
}

/* Fase 1: corte y biselado */
.bp-metal { fill: url(#ohm-metal); stroke: none; }
.bp-glow { fill: none; stroke: #ff8a3d; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 138, 61, .9)); }
.torch { transition: opacity .25s; pointer-events: none; }
.torch__body { fill: var(--accent-800); }
.torch__tip { fill: #8e9aa6; }
.torch__flame { fill: #8fc1ff; }
.torch__glow { fill: #ffb36b; opacity: .55; }
.spark { fill: #ffb347; }
.plano:not(.is-ready) .bp-glow, .plano:not(.is-ready) .torch { display: none; }

/* Fase 2: armado y alineación */
.clamp__bar { fill: var(--accent-800); }
.clamp__jaw { fill: var(--accent-700); }
.clamp__bolt { fill: #c9d1d9; stroke: var(--accent-900); stroke-width: 1; }
.bp-text--dark { fill: var(--accent-900); }
.tack { fill: #6d7a86; stroke: var(--accent-900); stroke-width: .8; }
.tack--hot { fill: #ffb36b; stroke: #ff8a3d; filter: drop-shadow(0 0 4px rgba(255, 138, 61, .9)); }

/* Fase 3: soldadura de raíz y relleno */
.bead { fill: none; stroke-linecap: round; }
.bead { stroke-linejoin: round; }
.bead--root { stroke: #7d8a96; stroke-width: 6; }
.bead--cap { stroke: #8794a0; stroke-width: 9; }
.bead--hot { stroke: #ff9a4d; filter: drop-shadow(0 0 6px rgba(255, 140, 60, .9)); }
.bead--hot.bead--cap { stroke-width: 9; }
#weld-root { stroke-width: 6; }
.bead--ripple { fill: none; stroke: #4f5c68; stroke-width: 1; opacity: 0; }
.arc__holder { fill: var(--accent-900); }
.arc__rod { fill: #b0bac3; }
.arc__glow { fill: #dff0ff; opacity: .75; filter: drop-shadow(0 0 10px #9fd0ff); }
.arc__core { fill: #ffffff; }
.inset__box { fill: rgba(242, 242, 243, .92); stroke: var(--accent-700); stroke-width: 1; }
.inset__plate { fill: url(#ohm-metal); stroke: var(--accent-900); stroke-width: 1; }
.pass { fill: #7d8a96; stroke: var(--accent-900); stroke-width: .6; }
.pass--hot { fill: #ffa45c; stroke: #ff8a3d; }
.plano:not(.is-ready) .bead--hot, .plano:not(.is-ready) .pass--hot { display: none; }

/* Fase 4: inspección y entrega */
.ut-path { fill: none; stroke: none; }
.probe { pointer-events: none; }
.probe__body { fill: var(--accent-700); }
.probe__cable { fill: var(--accent-900); }
.probe__beam { fill: rgba(127, 178, 255, .35); }
.ut-wave { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.stamp__box { fill: rgba(242, 242, 243, .9); stroke: var(--accent-700); stroke-width: 3; }
.stamp__inner { fill: none; stroke: var(--accent-700); stroke-width: 1; }
.stamp__title { font-family: var(--font-h); font-weight: 700; font-size: 28px; letter-spacing: .14em; fill: var(--accent-700); }
.stamp__sub { font-family: var(--font-h); font-weight: 600; font-size: 11px; letter-spacing: .12em; fill: var(--accent-700); }
.plano__stage { position: relative; }
.plano__photo { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.plano__photo img { width: 100%; height: 100%; object-fit: cover; }
.plano__photo-tag { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 6px 12px; background: var(--accent-900); color: #fff; font-family: var(--font-h); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; z-index: 2; }
.plano__cta { margin-top: 20px; }
.js .plano__cta { opacity: 0; }
.plano:not(.is-ready) .plano__photo { opacity: 1; }
@media (max-width: 959.98px) { .plano__cta { display: none; } }

/* 14. Inicio: enlace a «Del plano a la obra» -------------------------------- */
.plano-teaser { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--divider); }
.plano-teaser__card { display: grid; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); background: rgba(242, 242, 243, .9); text-decoration: none; color: inherit; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
@media (min-width: 860px) { .plano-teaser__card { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; } }
.plano-teaser__card:hover { border-color: var(--accent); box-shadow: 0 18px 40px rgba(29, 45, 61, .1); transform: translateY(-3px); color: inherit; }
.plano-teaser__text { display: flex; flex-direction: column; align-items: flex-start; }
.plano-teaser__title { font-family: var(--font-h); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; text-transform: uppercase; margin-bottom: 14px; }
.plano-teaser__lead { color: #3a3c3e; max-width: 32em; margin-bottom: 22px; }
.plano-teaser__more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-h); font-weight: 600; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-700); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.plano-teaser__arrow { display: inline-flex; animation: teaser-nudge 1.6s var(--ease) infinite; }
.plano-teaser__card:hover .plano-teaser__arrow { animation-duration: .8s; }
@keyframes teaser-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.plano-teaser__art svg { width: 100%; height: auto; overflow: visible; }
.pt-center { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 14 4 3 4; }
.pt-pipe { fill: #c3ccd4; stroke: var(--accent-900); stroke-width: 1.5; }
.pt-bead { fill: none; stroke: #7d8a96; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: pt-weld 3.2s linear infinite; }
.pt-spark { fill: #ffd2a6; filter: drop-shadow(0 0 6px #ff8a3d); }
@keyframes pt-weld { 0% { stroke-dashoffset: 260; stroke: #ff9a4d; } 70% { stroke-dashoffset: 0; stroke: #ff9a4d; } 85%, 100% { stroke-dashoffset: 0; stroke: #7d8a96; } }
@media (prefers-reduced-motion: reduce) { .pt-bead { stroke-dashoffset: 0; stroke: #7d8a96; } .pt-spark { display: none; } }

/* 15. Cotizador por pasos --------------------------------------------------- */
.qf { --qf-err: #b3261e; --qf-progress: 0; display: grid; gap: 22px; }
.qf[hidden], .qf [hidden], .qf-done[hidden] { display: none !important; }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.qf-step + .qf-step { border-top: 1px solid var(--divider); padding-top: 28px; }
.qf.is-stepped .qf-step + .qf-step { border-top: 0; padding-top: 0; }
.qf.is-stepped .qf-step.is-active { animation: qf-in .45s var(--ease) both; }
@keyframes qf-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.qf-step__title { padding: 0; font-family: var(--font-h); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; text-transform: uppercase; margin-bottom: 4px; outline: none; }
.qf-step__title span { color: var(--accent-700); font-size: .6em; letter-spacing: .12em; vertical-align: .35em; margin-right: 8px; }
.qf-lead { margin: -8px 0 0; color: var(--muted); }

/* Barra de pasos */
.qf-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; padding-bottom: 12px; margin-bottom: 4px; }
.qf-progress::before, .qf-progress::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--divider); }
.qf-progress::after { height: 3px; bottom: -1px; background: var(--accent-700); transform-origin: left; transform: scaleX(calc((var(--qf-progress) * 3 + 1) / 4)); transition: transform .6s var(--ease); }
.qf-progress li { font-family: var(--font-h); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: rgba(29, 31, 32, .4); transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-progress li span { display: block; font-size: 12px; letter-spacing: .14em; color: inherit; }
.qf-progress li.is-current, .qf-progress li.is-done { color: var(--text); }
.qf-progress li.is-current span, .qf-progress li.is-done span { color: var(--accent-700); }
@media (max-width: 559.98px) { .qf-progress li:not(.is-current) { font-size: 0; } .qf-progress li:not(.is-current) span { font-size: 12px; } }

/* Opciones de servicio */
.qf-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .qf-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-opt { position: relative; display: grid; grid-template-columns: 44px 1fr 22px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--divider); background: var(--bg); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.qf-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.qf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qf-opt__icon { grid-row: 1 / 3; color: var(--accent-700); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--divider); transition: background .25s, color .25s, border-color .25s; }
.qf-opt__n { font-family: var(--font-h); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--accent-700); }
.qf-opt__t { grid-column: 2; font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 1.05; text-transform: uppercase; }
.qf-opt__check { grid-column: 3; grid-row: 1 / 3; width: 22px; height: 22px; border: 1px solid var(--divider); display: grid; place-items: center; color: transparent; transition: background .25s, color .25s, border-color .25s; }
.qf-opt:has(input:checked) { border-color: var(--accent-700); background: var(--surface); }
.qf-opt input:checked ~ .qf-opt__icon { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.qf-opt input:checked ~ .qf-opt__check { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.qf-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Campos */
.qf-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .qf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-field { display: grid; gap: 6px; min-width: 0; }
.qf-field label, .qf-label { font-family: var(--font-h); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-900); }
.qf-field input, .qf-field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: #fff; border: 1px solid rgba(29, 31, 32, .28); border-radius: 0; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.qf-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.qf-field input::placeholder, .qf-field textarea::placeholder { color: #8a8b8e; }
.qf-field input:focus, .qf-field textarea:focus { outline: none; border-color: var(--accent-700); box-shadow: 0 0 0 3px rgba(89, 128, 166, .22); }
.qf [aria-invalid] { border-color: var(--qf-err) !important; }
.qf-hint { margin: 0; font-size: 14px; color: var(--muted); }
.qf-err { margin: 0; font-size: 14px; font-weight: 500; color: var(--qf-err); }
.qf-err::before { content: "! "; font-weight: 700; }

/* Pastillas (plazo, medio de contacto) */
.qf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-pill { position: relative; cursor: pointer; }
.qf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.qf-pill span { display: inline-block; padding: 9px 14px; border: 1px solid rgba(29, 31, 32, .28); font-size: 15px; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.qf-pill:hover span { border-color: var(--accent-700); }
.qf-pill input:checked + span { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.qf-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Archivos */
.qf-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 34px 20px; text-align: center; cursor: pointer; border: 1px dashed rgba(29, 31, 32, .4); background-color: #fff; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; transition: border-color .25s, background-color .25s; }
.qf-drop .icon { color: var(--accent-700); transition: transform .35s var(--ease); }
.qf-drop strong { font-family: var(--font-h); font-weight: 600; font-size: 20px; text-transform: uppercase; }
.qf-drop u { color: var(--accent-700); text-underline-offset: 4px; }
.qf-drop span { font-size: 14px; color: var(--muted); }
.qf-drop:hover, .qf-drop.is-over { border-color: var(--accent-700); background-color: #f6f9fc; }
.qf-drop:hover .icon, .qf-drop.is-over .icon { transform: translateY(-4px); }
.qf-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.js .qf-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.qf-files { list-style: none; display: grid; gap: 8px; }
.qf-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--divider); background: #fff; animation: qf-in .35s var(--ease) both; }
.qf-file__thumb { width: 48px; height: 48px; display: grid; place-items: center; background: var(--accent-900); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: 13px; letter-spacing: .1em; overflow: hidden; }
.qf-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qf-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.qf-file__size { font-size: 13px; color: var(--muted); }
.qf-file__rm { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--muted); }
.qf-file__rm:hover { color: var(--qf-err); }

/* Resumen y autorización */
.qf-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--divider); background: var(--surface); }
@media (min-width: 640px) { .qf-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qf-summary div { padding: 12px 14px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); min-width: 0; }
.qf-summary dt { font-family: var(--font-h); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); }
.qf-summary dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.qf-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.qf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-700); }

/* Navegación y envío */
.qf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--divider); }
.qf-nav__count { font-family: var(--font-h); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.qf-nav [data-prev] { order: -1; }
.qf-nav [data-next], .qf-nav [data-submit] { margin-left: auto; }
.qf.is-sending [data-submit] { pointer-events: none; opacity: .7; }
.qf-upload { height: 3px; background: var(--divider); overflow: hidden; }
.qf-upload span { display: block; height: 100%; background: var(--accent-700); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.qf-status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--qf-err); background: #fbeceb; color: #6d1a14; }

/* Confirmación con sello «Recibido» */
.qf-done { position: relative; display: grid; justify-items: start; gap: 4px; outline: none; }
.qf-done h2 { font-size: clamp(30px, 3.4vw, 42px); text-transform: uppercase; max-width: 13em; }
.qf-done__ref { font-size: 18px; }
.qf-done__ref strong { font-family: var(--font-h); font-size: 24px; letter-spacing: .08em; color: var(--accent-700); }
.qf-done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.qf-stamp { position: absolute; top: -6px; right: 0; padding: 6px; border: 3px solid var(--accent-700); transform: rotate(-8deg); }
.qf-stamp span { display: block; padding: 6px 18px; border: 1px solid var(--accent-700); font-family: var(--font-h); font-weight: 700; font-size: 28px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-700); }
.qf-done.is-in .qf-stamp { animation: qf-stamp .55s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
@keyframes qf-stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.quote__side .kicker { margin-top: 8px; }
@media (max-width: 639.98px) {
	.qf-stamp { position: static; justify-self: end; margin-bottom: 12px; }
	.qf-stamp span { font-size: 22px; }
	.qf-nav__count { display: none; }
}

/* 16. Política de datos ------------------------------------------------------ */
.legal { display: grid; gap: 32px; }
@media (min-width: 960px) { .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; } }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 959.98px) { .legal__toc { position: static; border: 1px solid var(--divider); padding: 18px 20px; } }
.legal__toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; margin-bottom: 14px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: grid; grid-template-columns: 30px 1fr; padding: 5px 0; font-size: 15px; text-decoration: none; color: var(--text); transition: color .2s, padding .25s var(--ease); }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--accent-700); padding-top: 2px; }
.legal__toc a:hover { color: var(--accent-700); padding-left: 4px; }
.legal__body { font-size: 17px; }
.legal__body h2 { font-size: 28px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__body h3 { font-size: 21px; text-transform: uppercase; }
.legal__meta { font-family: var(--font-h); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); }
.legal-card { margin: 18px 0 8px; padding: 6px 22px; background: var(--bg); }
.legal-card dl { margin: 0; }
.legal-card dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.legal-card dl div:last-child { border-bottom: 0; }
.legal-card dt { font-family: var(--font-h); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); padding-top: 3px; }
.legal-card dd { margin: 0; overflow-wrap: anywhere; }
.legal-defs { margin: 0 0 1em; }
.legal-defs dt { font-weight: 700; margin-top: 10px; }
.legal-defs dd { margin: 0; }
@media print {
	.site-header, .site-footer, .cta-band, .wa-float, .to-top, .legal__toc, .page-hero .kicker { display: none !important; }
	.legal { display: block; }
	.page-hero { padding: 0 0 16px; }
	.page-title { font-size: 30px; }
	.legal__body { font-size: 12pt; max-width: none; }
	.legal__body a { color: inherit; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
