/* Fuentes alojadas localmente (antes Google Fonts). Subconjuntos latin y latin-ext. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-600-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-600-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Delta Mechanics, modern direction.
   Layout idea: an instrument panel. Deep navy stage with a fine engineering grid,
   wide display type, mono labels for methods and standards, and the logo's three
   colours reserved for the three service lines. Own developments get the boldest panels. */
:root {
  --navy: #033960;
  --stage: #021a2e;
  --stage-2: #06294a;
  --blue: #2f7fd6;
  --teal: #12b89c;
  --coral: #ef6461;
  --amber: #f5a623;
  --ink: #0e2033;
  --muted: #54677c;
  --line: #dbe3ec;
  --paper: #ffffff;
  --mist: #f2f5f9;
  --on-dark: #c3d3e3;
  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1c62b3; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; color: var(--ink); line-height: 1.06; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1rem; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 58ch; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #1c62b3; }

/* Header */
.site-header { background: rgba(2, 26, 46, 0.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; min-height: 72px; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 44px; width: 44px; background: #fff; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
.brand span { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; color: #fff; font-size: 1.12rem; letter-spacing: 0.02em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; }
.nav a { font-size: 0.98rem; font-weight: 500; color: var(--on-dark); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.nav .nav-cta { background: var(--amber); color: var(--stage); font-weight: 600; padding: 0.5rem 1.1rem; border-radius: 999px; border: 0; }
.nav .nav-cta:hover { background: #ffbb45; color: var(--stage); }
.tri { display: none; }

/* Stage: hero and page heads */
.hero, .page-head {
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 56px 100%,
    radial-gradient(900px 480px at 85% 0%, rgba(47,127,214,0.35), transparent 70%),
    var(--stage);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; padding-block: 5rem 4rem; }
.hero h1, .page-head h1 { color: #fff; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); }
.hero .lead, .page-head .lead { color: var(--on-dark); margin-top: 1.4rem; }
.hero .eyebrow, .page-head .eyebrow { color: var(--amber); display: block; margin-bottom: 1.2rem; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-figure::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 45%; border-right: 3px solid var(--amber); border-bottom: 3px solid var(--amber); border-radius: 0 0 var(--r) 0; pointer-events: none; }
.page-head .wrap { padding-block: 4rem 3.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; padding: 0.8rem 1.5rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--stage); }
.btn-primary:hover { background: #ffbb45; }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--stage); color: #fff; }
.btn-navy:hover { background: var(--navy); }

/* Methods strip: real standards and indicators the team works with */
.methods { background: var(--stage); border-top: 1px solid rgba(255,255,255,0.1); }
.methods .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.mcol { padding: 1.5rem 1.4rem 1.6rem; border-left: 1px solid rgba(255,255,255,0.1); }
.mcol:first-child { border-left: 0; padding-left: 0; }
.mcol h2 { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 0.75rem; }
.mcol h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--tag); }
.mcol ul { list-style: none; margin: 0; padding: 0; }
.mcol li { font-size: 0.95rem; color: var(--on-dark); line-height: 1.75; text-align: left; }
.mcol.maint { --tag: var(--teal); } .mcol.rel { --tag: var(--coral); } .mcol.perf { --tag: var(--blue); } .mcol.eng { --tag: var(--amber); }
@media (max-width: 800px) {
  .methods .wrap { grid-template-columns: 1fr 1fr; }
  .mcol { padding: 1.3rem 0 1.3rem 1.1rem; }
  .mcol:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mcol:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
}

/* Sections */
section { padding-block: 5rem; }
section.alt { background: var(--mist); }
section.dark { background: var(--stage); color: #fff; }
section.dark h2 { color: #fff; }
section.dark .eyebrow { color: var(--amber); }
section.dark .lead { color: var(--on-dark); }
.section-head { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.rounded { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Service lines, tagged with the logo colour they belong to */
.line { --tag: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.line::before { content: ""; width: 44px; height: 6px; border-radius: 3px; background: var(--tag); }
.line p { color: var(--muted); }
.line.perf { --tag: var(--blue); }
.line.maint { --tag: var(--teal); }
.line.rel { --tag: var(--coral); }
.line.eng { --tag: var(--amber); }
.line ul { margin: 0; padding-left: 1.1rem; }
.line li + li { margin-top: 0.4rem; }

.photo-card { border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.photo-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: #d9e1ea; }
.photo-card div { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.photo-card p { color: var(--muted); }

/* Own developments: each panel wears its product's own brand */
.devs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.dev { border-radius: 22px; min-height: 400px; padding: 2.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; text-decoration: none; transition: transform 0.2s ease; }
.dev:hover { transform: translateY(-4px); }
.dev.tundra { background: linear-gradient(160deg, #ffffff 40%, #d9efe9 100%); color: #0f1c2e; }
.dev.farellon { background: #0f1c2e; color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.dev-logo { width: auto; object-fit: contain; object-position: left center; }
.dev.tundra .dev-logo { height: 74px; }
.dev.farellon .dev-logo { height: 190px; margin: -1.2rem 0 -1rem -1.4rem; }
.dev .tagline { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 0.6rem; }
.dev.tundra .tagline { color: #1b7f6e; }
.dev.farellon .tagline { color: #5fd0ea; }
.dev p { max-width: 44ch; font-size: 1.1rem; }
.dev.farellon p { color: var(--on-dark); }
.dev .more { font-weight: 600; margin-top: 1rem; display: inline-block; }
.dev:hover .more { text-decoration: underline; }
section.ink { background: #0f1c2e; color: #fff; }
section.ink h2 { color: #fff; }
section.ink .eyebrow { color: #5fd0ea; }
section.ink .lead, section.ink figcaption { color: var(--on-dark); }
.product-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.product-head > img { width: 100%; max-width: 420px; }
.shot { margin: 0; }
.shot > img { width: 100%; border: 1px solid #c9d4e0; border-top: 0; border-radius: 0 0 12px 12px; }
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; background: #e6ebf1; border: 1px solid #c9d4e0; border-bottom: 0; border-radius: 12px 12px 0 0; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #b3c0ce; }
.shot figcaption { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
section.ink .shot > img, section.ink .shot-bar { border-color: rgba(255,255,255,0.2); }
section.ink .shot-bar { background: #1c2c44; }
section.ink .shot-bar i { background: #48607f; }
.feature-grid { margin-top: 2.5rem; }

.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.12rem; }
.spec dd { margin: 0; color: var(--muted); }

.band { background: var(--stage); color: #fff; background-image: radial-gradient(700px 300px at 10% 100%, rgba(18,184,156,0.28), transparent 70%); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 3.5rem; }
.band h2 { color: #fff; }
.band p { color: var(--on-dark); margin-top: 0.5rem; }

.person { border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.person .role { font-family: var(--font-mono); font-size: 0.85rem; color: #1c62b3; }
.person p { color: var(--muted); }

/* Forms */
form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.96rem; }
input, textarea { font: inherit; color: var(--ink); background: var(--mist); border: 1px solid #c3cfdb; border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%; }
textarea { min-height: 9rem; resize: vertical; }
.form-note { background: var(--mist); border-left: 4px solid var(--teal); padding: 0.8rem 1rem; font-size: 0.96rem; border-radius: 0 8px 8px 0; }
.form-note[hidden] { display: none; }
.facts { display: flex; flex-direction: column; gap: 1.1rem; margin: 0; }
.facts dt { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; color: #1c62b3; }
.facts dd { margin: 0.15rem 0 0; }

/* Footer */
.site-footer { background: var(--stage); color: var(--on-dark); font-size: 0.96rem; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 2.75rem; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; font-family: var(--font-display); font-stretch: 112%; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }

@media (max-width: 860px) {
  .hero .wrap, .split, .grid-3, .grid-2, .devs, .product-head { grid-template-columns: 1fr; }
  .product-head { gap: 1.5rem; }
  .product-head > img { max-width: 300px; }
  .hero .wrap { padding-block: 3rem; gap: 2.5rem; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .dev { min-height: 300px; }
  .spec > div { grid-template-columns: 1fr; gap: 0.3rem; }
  section { padding-block: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .dev { transition: none; } }

/* Language switcher */
.langs { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 2px; }
.nav .langs a { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.25rem 0.55rem; border-radius: 999px; border: 0; color: var(--on-dark); }
.nav .langs a:hover { color: #fff; }
.nav .langs a[aria-current="true"] { background: #fff; color: var(--stage); }

/* Resources and articles */
.res-card { text-decoration: none; color: inherit; transition: transform 0.2s ease, border-color 0.2s ease; }
.res-card:hover { transform: translateY(-3px); border-color: #9fb3c8; }
.res-card .more { font-weight: 600; color: #1c62b3; margin-top: auto; }
.article { max-width: 72ch; margin-inline: auto; }
.article > * + * { margin-top: 1.1rem; }
.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2.75rem; }
.article ul, .article ol { padding-left: 1.3rem; margin-bottom: 0; }
.article li + li { margin-top: 0.5rem; }
.formula { font-family: var(--font-mono); font-size: 0.98rem; background: var(--stage); color: #e8f0f8; border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; padding: 0.9rem 1.2rem; overflow-x: auto; }
.calc { margin-block: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.calc > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.85rem 1.2rem; }
.calc > div + div { border-top: 1px solid var(--line); }
.calc dt { font-weight: 600; }
.calc dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.note { background: var(--mist); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin-top: 2rem !important; }
.back { margin-top: 2.5rem !important; font-weight: 600; }
@media (max-width: 860px) { .calc > div { grid-template-columns: 1fr; gap: 0.2rem; } }
@media (prefers-reduced-motion: reduce) { .res-card { transition: none; } }

/* Video backgrounds on the stage */
.hero, .page-head { position: relative; overflow: hidden; isolation: isolate; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(100deg, rgba(2,26,46,0.93) 0%, rgba(2,26,46,0.78) 45%, rgba(2,26,46,0.42) 100%);
}
.hero .wrap { grid-template-columns: 1fr; padding-block: 7rem 6rem; }
.hero .wrap > div { max-width: 46rem; }
.page-head .wrap { padding-block: 5.5rem 4.5rem; }
.hero h1, .page-head h1, .hero .lead, .page-head .lead { text-shadow: 0 1px 18px rgba(2,26,46,0.55); }
.hero .lead, .page-head .lead { color: #dfe9f3; }
@media (max-width: 860px) { .hero .wrap { padding-block: 4rem 3.5rem; } .page-head .wrap { padding-block: 3.5rem 3rem; } }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } .hero, .page-head { background-color: var(--stage); } }

/* Flags in the language switcher */
.nav .langs a { display: inline-flex; align-items: center; gap: 0.35rem; }
.langs img { width: 18px; height: 13.5px; border-radius: 2px; display: block; }
.nav { gap: 0.25rem 1.05rem; }
.nav a { font-size: 0.94rem; }
.nav .langs a { padding: 0.22rem 0.42rem; font-size: 0.72rem; }
.nav .nav-cta { padding: 0.45rem 0.95rem; }

/* Video behind the footer strip, as on the previous site */
.site-footer { position: relative; overflow: hidden; isolation: isolate; border-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(2,26,46,0.9) 0%, rgba(2,26,46,0.72) 55%, rgba(2,26,46,0.5) 100%); }
.site-footer .wrap { padding-block: 3.75rem; }
.site-footer, .site-footer span, .site-footer li { color: #e3ecf5; text-shadow: 0 1px 12px rgba(2,26,46,0.6); }
.site-footer .wrap { align-items: flex-end; }
.footer-flag { width: 96px; height: 72px; border-radius: 0; box-shadow: 0 4px 18px rgba(0,0,0,0.35); margin-left: auto; }
.site-footer ul { margin-left: auto; }
.site-footer ul + .footer-flag { margin-left: 0; }

/* industrias */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* light header so the full-colour logo keeps its contrast */
.site-header { background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); box-shadow: 0 1px 12px rgba(2,26,46,0.06); }
.brand img { height: 62px; width: auto; background: none; border-radius: 0; object-fit: contain; }
.nav a { color: #33475b; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--stage); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .nav-cta, .nav .nav-cta:hover { color: var(--stage); }
.langs { border-color: rgba(2,26,46,0.18); }
.nav .langs a { color: #33475b; }
.nav .langs a:hover { color: var(--stage); }
.nav .langs a[aria-current="true"] { background: var(--stage); color: #fff; }
@media (max-width: 560px) { .brand img { height: 40px; } }

/* justified body text */
main p, main li, main dd { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.hero p, .page-head p, .band p { text-align: left; hyphens: manual; }

/* services explained by client problem */
.svc-list { display: flex; flex-direction: column; gap: 4rem; }
.svc-row { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; scroll-margin-top: 110px; --tag: var(--navy); }
.svc-row:nth-child(even) img { order: 2; }
.svc-row img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-row.perf { --tag: var(--blue); } .svc-row.maint { --tag: var(--teal); } .svc-row.rel { --tag: var(--coral); } .svc-row.eng { --tag: #b97a09; }
.svc-row .eyebrow { color: var(--tag); }
.svc-row .stack { gap: 0.9rem; }
.svc-row h3 { font-size: 1rem; margin-top: 0.4rem; }
.svc-row ul { margin: 0; padding-left: 1.1rem; }
.svc-row li + li { margin-top: 0.35rem; }
main .svc-row li { text-align: left; }
.svc-lead { font-size: 1.12rem; }
.svc-out { background: var(--paper-alt, #f2f5fa); border-left: 4px solid var(--tag); border-radius: 0 var(--r) var(--r) 0; padding: 0.9rem 1.1rem; }
.svc-out strong { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tag); margin-bottom: 0.25rem; }
a.photo-card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.photo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(2,26,46,0.12); }
a.photo-card h3 { font-size: 1.08rem; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; gap: 1.5rem; } .svc-row:nth-child(even) img { order: 0; } }
@media (prefers-reduced-motion: reduce) { a.photo-card { transition: none; } }
main .grid-4 .photo-card p { text-align: left; hyphens: manual; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { border-left-color: var(--coral); }
main .form-note { text-align: left; }

/* En pantallas angostas el justificado deja huecos: alinear a la izquierda */
@media (max-width: 640px) {
  main p, main li, main dd { text-align: left; hyphens: manual; }
}

.book-card{border:1px solid #d8dee9;border-radius:14px;padding:1.5rem;background:#f4f7fb}
.book-card h2{font-size:1.25rem;margin:0 0 .4rem}
.book-card p{margin:0 0 1rem;text-align:left}

/* Engineering tools */
.tool-section { padding-block: 3.5rem 4.5rem; }
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.tool-in { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tool-out { background: var(--stage); color: #e8f0f8; border-radius: var(--r); padding: 1.6rem; position: sticky; top: 100px;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 100% 40px, 40px 100%; }
.tool select { font: inherit; color: var(--ink); background: var(--mist); border: 1px solid #c3cfdb; border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%; }
.tool input { font-family: var(--font-mono); font-size: 1.05rem; }
.tool select:focus-visible, .chip:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.tool [hidden] { display: none !important; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 500; color: #33475b; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.chip:hover { border-color: #9fb3c8; }
.chip[aria-selected="true"] { background: var(--stage); border-color: var(--stage); color: #fff; }
.tool fieldset { border: 1px dashed #c3cfdb; border-radius: 10px; padding: 0.9rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.tool legend { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #1c62b3; padding-inline: 0.4rem; }
main .tool .hint { font-size: 0.88rem; color: var(--muted); text-align: left; hyphens: manual; }
.tool-h { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #1c62b3; }
.tool-h:not(:first-child) { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.3rem; }
.out-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.out-head:not(:first-child) { margin-top: 1.6rem; }
.tool-out .eyebrow { color: var(--amber); }
.out-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; margin-bottom: 0.9rem; }
.out-state:empty { display: none; }
.out-state strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.45rem; font-weight: 700; color: #fff; }
.out-state span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-dark); }
.tool table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool th, .tool td { padding: 0.5rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: right; vertical-align: baseline; }
.tool tbody th, .tool thead th:first-child { text-align: left; font-weight: 400; }
.tool thead th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.tool td { font-family: var(--font-mono); font-size: 1rem; color: #fff; white-space: nowrap; padding-left: 0.8rem; }
.tool tbody th b { font-weight: 500; color: #fff; }
.tool tbody th small { display: inline-block; margin-left: 0.5rem; font-size: 0.8rem; color: #8fa6bd; }
.tool tr.is-src td, .tool tr.is-src th b { color: var(--amber); }
.tool tbody tr:last-child th, .tool tbody tr:last-child td { border-bottom: 0; }
.tool-err { background: rgba(239,100,97,0.16); border-left: 4px solid var(--coral); border-radius: 0 8px 8px 0; padding: 0.7rem 0.9rem; color: #fff; }
main .tool-err { text-align: left; hyphens: manual; }
.tool-notes { max-width: 78ch; margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.tool-notes h2 { font-size: 1.35rem; }
.tool-notes ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.tool-notes li + li { margin-top: 0.4rem; }
.tool-disclaimer { background: var(--mist); border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; padding: 0.9rem 1.1rem; font-size: 0.95rem; color: #33475b; }
.tool-section .back { margin-top: 2rem; }
.tool-section .back a { font-weight: 600; text-decoration: none; }
.soon { margin-top: 2rem; border: 1px dashed #c3cfdb; border-radius: var(--r); padding: 1.3rem 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; }
.soon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; color: var(--muted); }
main .soon li { text-align: left; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .tool-out { position: static; } }
@media (max-width: 480px) { .tool-in, .tool-out { padding: 1.1rem; } .tool td { font-size: 0.92rem; } .tool tbody th small { display: block; margin-left: 0; } }
/* one more menu entry: keep the header on a single row on laptops */
@media (min-width: 1180px) { .site-header .wrap { gap: 0.75rem 1rem; flex-wrap: nowrap; } .nav { gap: 0.25rem 0.8rem; flex-wrap: nowrap; white-space: nowrap; } .nav a { font-size: 0.9rem; } .nav .nav-cta { padding: 0.42rem 0.85rem; } .brand img { height: 56px; } }

/* Menú desplegable en pantallas angostas */
.nav-toggle { display: none; background: none; border: 1px solid rgba(2,26,46,0.18); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--stage); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1179px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 0 0.9rem; }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue); }
  .nav .nav-cta { margin-top: 0.9rem; text-align: center; padding: 0.75rem 1rem; border-bottom: 0; }
  .nav .langs { margin-top: 0.9rem; align-self: flex-start; }
  .nav .langs a { border-bottom: 0; padding: 0.35rem 0.6rem; font-size: 0.78rem; }
  .brand img { height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }
/* tools, stage 2: reliability and energy savings */
.row2.even { grid-template-columns: 1fr 1fr; }
.tool textarea { font-family: var(--font-mono); font-size: 1rem; min-height: 12rem; }
main .out-desc { color: var(--on-dark); font-size: 0.95rem; text-align: left; hyphens: manual; margin: -0.4rem 0 0.9rem; }
.out-desc:empty { display: none; }
.tool-chart { margin: 1.4rem 0 0; }
.tool-chart:empty { display: none; }
.tool-chart svg { width: 100%; height: auto; display: block; }
.tool-chart text { font-family: var(--font-mono); font-size: 11px; fill: #8fa6bd; }
.tool-chart .grid { stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.tool-chart .curve { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; }
.tool-chart .mark { stroke: #fff; stroke-width: 1; stroke-dasharray: 4 4; }
.tool-chart .dot { fill: var(--stage); stroke: #fff; stroke-width: 2; }
.tool-chart figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: #8fa6bd; margin-top: 0.5rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
.kpis:empty { display: none; }
.kpis div { border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 0.9rem 1rem; background: rgba(255,255,255,0.03); min-width: 0; }
.kpis strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.55rem; font-weight: 700; color: #fff; display: block; line-height: 1.1; overflow-wrap: anywhere; }
.kpis span { font-family: var(--font-mono); font-size: 0.82rem; color: var(--amber); }
.kpis small { display: block; font-size: 0.82rem; color: var(--on-dark); margin-top: 0.35rem; }
.tool label .a-u { display: inline; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }
