/* =====================================================================
   Industrias Ajuscal — hoja de estilos
   Paleta: grafito industrial + rojo corporativo Ajuscal.
   Cambia los colores y tipografías en :root.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #e52226;
  --brand-dark: #bf161c;
  --brand-tint: #fdecec;
  --ink: #0e1116;
  --ink-2: #171b22;
  --ink-3: #232933;
  --text: #2a2f37;
  --muted: #5d6573;
  --line: #e3e6eb;
  --paper: #f4f5f7;
  --white: #ffffff;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 8px 24px rgba(14, 17, 22, .08);
  --header-h: 70px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 750;
}
p { margin: 0 0 1em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; }
.muted { color: var(--muted); }
.icon { flex: none; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 650 15px/1 var(--font-body); letter-spacing: .01em;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-outline-light, .btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline-light:hover, .btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 650; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--brand); padding-bottom: 4px;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1 var(--font-display); font-stretch: 120%;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow span { color: var(--muted); font-weight: 600; }
.eyebrow span::after { content: ""; display: inline-block; width: 28px; height: 1.5px; background: currentColor; margin-left: 10px; vertical-align: middle; }
.eyebrow--light { color: #ff5a5e; }
.eyebrow--light span { color: rgba(255,255,255,.55); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.7); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 24px; }
.topbar .icon { color: var(--brand); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,17,22,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { text-decoration: none; margin-right: auto; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; font: 800 24px/1 var(--font-display); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
.logo-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-bottom: 3px; }
.logo--light { color: #fff; }
.logo-img { height: 42px; width: auto; display: block; }
.site-footer .logo-img { height: 52px; }
.logo--light .logo-text small { color: rgba(255,255,255,.55); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.menu-item > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.menu-item:hover > a::after, .menu-item.is-active > a::after { transform: scaleX(1); }
.menu-item .icon-chevron { transition: transform .2s var(--ease); opacity: .6; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-size: 15px; color: var(--text); }
.submenu a:hover, .submenu a[aria-current] { background: var(--paper); color: var(--brand); }
.has-children:hover .submenu, .has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.has-children:hover .icon-chevron { transform: rotate(180deg); }
.header-cta { padding: 12px 18px; }
.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-switch a { display: block; padding: 7px 9px; font: 700 12.5px/1 var(--font-display); letter-spacing: .08em; color: var(--muted); text-decoration: none; border-radius: 3px; }
.lang-switch a:hover { color: var(--ink); background: var(--paper); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-icon-close { display: none; }
.nav-open .nav-icon-close { display: inline; }
.nav-open .nav-icon-open { display: none; }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(14,17,22,.85) 18%, rgba(14,17,22,.25) 60%, rgba(14,17,22,.15) 100%),
              linear-gradient(0deg, rgba(14,17,22,.9) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%);
}
.hero-inner { min-height: min(54vh, 520px); display: flex; align-items: center; }
.hero-copy { max-width: 660px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 62px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
.hero-text { font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.stat { padding: 28px 24px 34px 0; border-right: 1px solid rgba(255,255,255,.14); padding-left: 24px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat dd { margin: 0; font: 800 clamp(24px, 2.5vw, 34px)/1 var(--font-display); font-stretch: 115%; color: #fff; letter-spacing: -.02em; }
.stat dt { font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Secciones ---------- */
.section { padding: clamp(60px, 7vw, 104px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--muted { background: var(--paper); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .split-copy h2, .quality-copy h2 { font-size: clamp(28px, 3.2vw, 44px); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; max-width: 720px; }
.section-lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); max-width: 640px; }
.section--dark .section-lead { color: rgba(255,255,255,.7); }

/* ---------- Servicios ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .25s var(--ease); }
.service::before { content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 3px; background: var(--brand); transition: width .35s var(--ease); }
.service:hover { background: var(--paper); }
.service:hover::before { width: calc(100% + 2px); }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand); margin-bottom: 24px; }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Bloque dividido (empresa) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.media-stack { position: relative; padding: 0 12% 12% 0; }
.media-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.media-float { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 8px solid var(--paper); }
.media-badge {
  position: absolute; left: -16px; bottom: 18%; background: var(--brand); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.media-badge strong { font: 800 44px/1 var(--font-display); font-stretch: 115%; }
.media-badge span { font-size: 13.5px; line-height: 1.25; font-weight: 600; }

/* ---------- Sectores (portada) ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sector-grid > .sector-card { grid-column: span 2; }
.sector-grid > .sector-card:nth-child(-n+2) { grid-column: span 3; min-height: 440px; }
.sector-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 340px; text-decoration: none; color: #fff; background: var(--ink-3); isolation: isolate;
}
.sector-card-media { position: absolute; inset: 0; z-index: -1; }
.sector-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sector-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,17,22,.95) 0%, rgba(14,17,22,.4) 55%, rgba(14,17,22,.1) 100%); transition: background .3s; }
.sector-card:hover .sector-card-media img { transform: scale(1.05); }
.sector-card-body { position: absolute; inset: auto 0 0 0; padding: 28px; }
.sector-num { display: block; font: 700 13px/1 var(--font-display); letter-spacing: .14em; color: var(--brand); margin-bottom: 12px; }
.section--dark .sector-num, .sector-card .sector-num { color: #ff5a5e; }
.sector-card h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 8px; color: #fff; }
.sector-grid > .sector-card:nth-child(-n+2) h3 { font-size: clamp(28px, 3vw, 40px); }
.sector-card p { font-size: 15px; color: rgba(255,255,255,.72); margin: 0; max-width: 90%; }
.sector-more { position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); transform: translateY(8px); opacity: 0; transition: .3s var(--ease); }
.sector-card:hover .sector-more { transform: none; opacity: 1; }

/* ---------- Calidad ---------- */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.quality-media { position: relative; }
.quality-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.iso-seal {
  position: absolute; left: -24px; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 132px; height: 132px; justify-content: center; text-align: center;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow); color: var(--brand);
  border: 2px dashed rgba(227,22,27,.35); outline: 8px solid #fff;
}
.iso-seal strong { font: 800 19px/1 var(--font-display); font-stretch: 115%; color: var(--ink); }
.iso-seal span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* ---------- Clientes ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-title { font: 700 13px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 36px; }
.client-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); }
.client-logos img { max-height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: .3s var(--ease); }
.client-logos img:hover { filter: none; opacity: 1; }

/* ---------- Banner sostenibilidad ---------- */
.eco-banner { display: flex; align-items: center; gap: 28px; padding: 32px 36px; background: var(--paper); border-radius: var(--radius-lg); border-left: 4px solid #2f9e5b; }
.eco-banner h2 { font-size: 22px; margin-bottom: 6px; }
.eco-banner p { margin: 0; color: var(--muted); }
.eco-banner > div { flex: 1; }
.eco-icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: #e3f4ea; color: #2f9e5b; }

/* ---------- Franja CTA ---------- */
.cta-band { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 6vw, 72px); flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--ink); color: #fff; padding: clamp(52px, 6.5vw, 92px) 0 clamp(40px, 5vw, 68px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero--image .page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 10%, rgba(14,17,22,.6) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.025em; margin: 0; max-width: 900px; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--brand); margin-top: 24px; }
.page-hero-sub { margin: 20px 0 0; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.75); max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-bottom: 22px; color: rgba(255,255,255,.5); }
.breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Diseño de página interior ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); padding-block: clamp(56px, 7vw, 96px); align-items: start; }
.page-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-nav { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-nav .eyebrow { margin-bottom: 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 10px 12px; margin-inline: -12px; border-radius: 6px; text-decoration: none; font-weight: 550; font-size: 15.5px; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--paper); }
.side-nav a[aria-current] { color: var(--brand); border-left-color: var(--brand); background: var(--brand-tint); border-radius: 0 6px 6px 0; }
.side-card { background: var(--ink); color: rgba(255,255,255,.75); border-radius: var(--radius-lg); padding: 28px; }
.side-card h2 { color: #fff; font-size: 22px; margin-bottom: 20px; }
.side-card .eyebrow { color: #ff5a5e; margin-bottom: 12px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; font-size: 15.5px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: #ff5a5e; margin-top: 2px; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Contenido (prosa) ---------- */
.prose { max-width: 760px; font-size: 16.5px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(21px, 2vw, 25px); margin: 1.7em 0 .6em; padding-left: 16px; border-left: 4px solid var(--brand); line-height: 1.2; }
.prose h4 { font-size: 19px; margin: 1.5em 0 .5em; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-dark); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-lg); margin: 32px 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--paper); font-weight: 650; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brand); font-size: 20px; color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-lg); }

.checklist { list-style: none !important; padding: 0 !important; margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.checklist li {
  position: relative; margin: 0; padding: 13px 8px 13px 38px;
  border-bottom: 1px solid var(--line); line-height: 1.45; font-size: 16.5px;
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 14px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li > p { margin: 0; }
.checklist--cols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; border-top: 0; }
.checklist--cols li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.checklist--cols li { font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 32px 0; }
.gallery img, .gallery a img { margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery > p { margin: 0; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 32px 0; }
.logo-row img, .logo-row p { margin: 0; }
.logo-row img { max-height: 60px; width: auto; max-width: 200px; border-radius: 0; }

.button, .prose a.button { display: inline-flex; padding: 12px 20px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; margin: 4px 8px 4px 0; }
.button:hover { background: var(--brand); color: #fff; }
.prose a.doc-link {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 10px 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.prose a.doc-link::before {
  content: "PDF"; display: grid; place-items: center; flex: none; width: 44px; height: 52px; border-radius: 4px;
  background: var(--brand-tint); color: var(--brand); font: 800 12px/1 var(--font-display); letter-spacing: .06em;
}
.prose a.doc-link:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--brand); }

/* ---------- Página de sectores ---------- */
.sector-list { display: grid; gap: clamp(56px, 8vw, 112px); }
.sector-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sector-row--rev .sector-row-media { order: 2; }
.sector-row-media { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); }
.sector-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.sector-row-media:hover img { transform: scale(1.04); }
.sector-row h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 12px; }
.sector-row h2 a { text-decoration: none; }
.sector-row h2 a:hover { color: var(--brand); }
.sector-row .section-lead { margin-bottom: 24px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand); margin-bottom: 14px; }
.contact-card-label { font: 700 12px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card strong { font: 700 19px/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
a.contact-card[href^="mailto"] strong { font-size: 16.5px; }
.contact-card .muted { font-size: 14.5px; }
.hours { margin: 4px 0 0; display: grid; gap: 6px; font-size: 15px; }
.hours dt { font-weight: 650; color: var(--ink); }
.hours dd { margin: 0 0 6px; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: rgba(255,255,255,.8);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-placeholder .icon { color: var(--brand); }
.map-placeholder p { margin: 0; }
.map-placeholder strong { color: #fff; }
.map-placeholder .btn-dark { background: #fff; color: var(--ink); }
.map-placeholder small { color: rgba(255,255,255,.5); font-size: 12.5px; }
.map-foot { padding: 24px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.map-foot p { margin: 0; color: var(--muted); flex: 1 1 280px; font-size: 15.5px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h2 { font-size: 22px; margin: 8px 0; }
.post-card p { color: var(--muted); margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.post-nav a { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; font-weight: 600; }
.post-nav span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.post-nav .next { text-align: right; grid-column: 2; }

/* ---------- 404 ---------- */
.error-page { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.error-page .container { display: flex; flex-direction: column; align-items: center; }
.error-code { font: 800 clamp(96px, 16vw, 180px)/1 var(--font-display); font-stretch: 125%; color: var(--brand); margin: 0 0 8px; }
.error-page h1 { font-size: clamp(30px, 4vw, 48px); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-block: 80px 56px; }
.footer-brand p { margin-top: 22px; max-width: 320px; }
.footer-title { font: 700 12.5px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 16px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; gap: 0; }
  .menu-item > a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .menu-item > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 12px 12px; min-width: 0; }
  .submenu a { font-size: 16px; padding: 10px 0; }
  .menu-item .icon-chevron { display: none; }
  .header-cta { display: inline-flex; padding: 16px; }
  .lang-switch { align-self: flex-start; order: -1; }
  .lang-switch a { padding: 10px 14px; font-size: 14px; }

  .hero { padding-top: 0; }
  .hero-media { position: relative; inset: auto; width: 100%; height: 260px; z-index: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(14,17,22,.2) 60%); }
  .hero-grid { mask-image: none; }
  .hero-inner { min-height: 0; margin-top: -24px; position: relative; }
  .hero-copy { padding-bottom: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px 26px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(odd) { padding-left: 0; }

  .split, .quality, .sector-row, .contact-grid, .page-layout { grid-template-columns: 1fr; }
  .sector-row--rev .sector-row-media { order: 0; }
  .quality-media { order: -1; }
  .iso-seal { left: auto; right: 16px; top: auto; bottom: -24px; width: 112px; height: 112px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid > .sector-card, .sector-grid > .sector-card:nth-child(-n+2) { grid-column: auto; min-height: 340px; }
  .sector-grid > .sector-card:first-child { grid-column: span 2; }
  .page-aside { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .logo-text { font-size: 20px; }
  .logo-img { height: 40px; }
  .logo-mark { width: 36px; height: 36px; }
  .services, .sector-grid, .contact-cards, .checklist--cols, .footer-grid { grid-template-columns: 1fr; }
  .checklist--cols li:nth-child(2) { border-top: 0; }
  .sector-grid > .sector-card:first-child { grid-column: auto; }
  .sector-card { min-height: 300px; }
  .sector-more { opacity: 1; transform: none; }
  .service { padding: 28px 24px; }
  .media-badge { left: 8px; bottom: 16%; padding: 12px 16px; }
  .media-badge strong { font-size: 34px; }
  .eco-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; }
}
