/* ================================
   site.css — SMP
   Tipografía moderna, paleta con más contraste,
   mejor ritmo de lectura y layout responsive.
==================================*/

/* ——— Variables y tema ——— */
:root{
  /* ── Paleta de marca aprobada DEC-010 (2026-03-15) ── */
  --ink:#0b1f2e;
  --muted:#4A5568;
  --secondary:#4A5568;
  --bg:#F5F7FA;
  --panel:#ffffff;
  --brand:#1F3A5F;
  --brand-2:#162c49;
  --accent:#3B82F6;

  /* layout */
  --max:1200px;

  /* escala tipográfica y medidas de lectura */
  --fs-base: clamp(16px, 1.05vw + 12px, 19px);
  --fs-small: clamp(14px, 0.9vw + 11px, 16px);
  --fs-large: clamp(18px, 1.2vw + 14px, 21px);
  --lh: 1.65;
  --lh-tight: 1.3;
  --measure: 70ch;          /* ancho ideal para cuerpo */
  --measure-wide: 84ch;     /* para páginas con más ancho */
  
  /* espaciados responsive */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2rem, 4vw, 3.5rem);
  
  /* breakpoints como custom properties */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;

  /* ── Transiciones estándar (E3-008) ── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;

  /* ── Radio y borde estándar ── */
  --radius: 8px;
  --border: #e2e8f0;
}

/* ——— Reset mínimo y base ——— */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:72px; /* E4-007 */ }
html{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body{
  margin:0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0.005em;
  font-feature-settings: "liga","clig","calt","kern";
  overflow-x:hidden;
}
body.nav-open{ overflow:hidden; }
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; text-decoration-thickness:.08em; text-underline-offset:.18em; }
a:hover{ text-decoration:underline; }

/* ——— Contenedor principal ——— */
.container{
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: clamp(8px, 2vw, 16px);
  padding-right: clamp(8px, 2vw, 16px);
}

/* ——— Cabecera y navegación ——— */
.header{
  position:sticky; top:0; z-index:40;
  background:#fff; border-bottom:1px solid #e3eaf1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}
/* E4-004: clase aplicada via JS al superar 80px de scroll */
.header--scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-bottom-color: #d0dae5;
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px; gap:12px; padding:8px 0;
}
.brand{ 
  display:flex; align-items:center; gap:10px; white-space:nowrap;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img{ height:50px; width:auto; flex-shrink:0; }

.nav{
  display:flex; align-items:center; gap:2rem;
  margin-left:auto;
  min-width: 0;
  position: relative;              /* ancla del dropdown móvil */
}

@media (min-width: 769px) {
  .nav {
    flex: 1 1 auto;
    margin-left: 0;
    width: auto;
  }

  .nav-lang {
    margin-left: clamp(1.5rem, 3vw, 3rem);
    margin-right: 1rem;
  }

  .nav-main {
    margin-left: auto;
  }
}

/* Skip link para accesibilidad */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  transform: translateY(-160%);
  opacity: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  z-index: 200;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .2s ease, opacity .2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Navegación principal */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main li { position: relative; }

.nav-main a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-main a:hover, 
.nav-main a.active {
  background: #f0f4f8;
  color: var(--accent);
  text-decoration: none;
}

/* Selector de idioma */
.nav-lang {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid #e3eaf1;
}
.nav-lang a {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.2s ease;
}
.nav-lang a:hover,
.nav-lang a.active {
  background: var(--accent);
  color: white;
}

/* Buscador global — trigger button — E4-005 */
.global-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1.5px solid #e3eaf1;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  margin-left: 0.5rem;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.global-search-trigger:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Sector card — F4-006 */
.sector-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.sector-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.sector-card__icon {
  font-size: 2rem;
  line-height: 1;
}
.sector-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.sector-card__title a {
  color: inherit;
  text-decoration: none;
}
.sector-card__title a:hover { color: var(--accent); }
.sector-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.sector-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sector-card__cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.sector-card__cta:hover { text-decoration: underline; }

/* Botón mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
}
.nav-toggle:hover { background: #f0f4f8; }
.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive navigation (móvil + tablet) */
@media (max-width: 1366px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }

  .brand {
    grid-column: 1;
  }

  .nav {
    grid-column: 3;
    justify-self: end;
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    gap: 0.5rem;
  }

  .nav-toggle { display: flex; }
  .nav-main, .nav-lang { display: none; }

  .global-search-trigger {
    margin-left: 0;
  }

  .nav.nav-open {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    width: auto;
    max-height: calc(100dvh - 24px);
    background: #fff;
    border: 1px solid #e3eaf1;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    padding: 0.875rem;
    z-index: 1200;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    overflow: hidden;
  }

  .nav.nav-open .nav-lang {
    display: flex;
    grid-column: 1;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .nav.nav-open .nav-lang a {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .nav.nav-open .global-search-trigger {
    grid-column: 2;
    align-self: center;
  }

  .nav.nav-open .nav-toggle {
    grid-column: 3;
    align-self: center;
    justify-self: end;
  }

  .nav.nav-open .nav-main {
    display: flex;
    flex-direction: column;
    position: static;
    grid-column: 1 / -1;
    background: transparent;
    border: 0;
    border-top: 1px solid #e3eaf1;
    border-radius: 0;
    box-shadow: none;
    padding: 0.75rem 0 0;
    gap: 0.25rem;
    margin: 0;
    min-height: 0;
    max-height: calc(100dvh - 132px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .nav.nav-open .nav-lang {
    border-bottom: 0;
  }

  .nav.nav-open .nav-main li {
    width: 100%;
  }

  .nav.nav-open .nav-main a {
    padding: 0.85rem 0.5rem;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .nav.nav-open .nav-main > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
  }
}

@media (min-width: 769px) and (max-width: 1366px) {
  .container {
    padding-left: clamp(16px, 3vw, 28px);
    padding-right: clamp(16px, 3vw, 28px);
  }
}

/* ── Dropdown nav (DEC-011: dropdown estructurado) ──────────────────────── */
.has-dropdown { position: relative; }

/* Chevron indicator en el link padre */
.nav-chevron {
  display: inline-block;
  margin-left: 0;
  font-size: 0.62em;
  vertical-align: baseline;
  transition: transform 0.2s ease;
  pointer-events: none;
  line-height: 1;
}

.has-dropdown:hover .nav-chevron,
.has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }

/* El panel del dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -0.75rem;
  background: var(--panel);
  border: 1px solid #e3eaf1;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 200px;
  padding: 0.4rem 0;
  z-index: 200;
  list-style: none;
  margin: 0;
}
/* Hover bridge: evita que el dropdown se cierre al cruzar el hueco vertical */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown { display: block; }

/* Nested dropdown inside Productos (e.g., Tierras raras) */
.nav-dropdown > li.has-subdropdown { position: relative; }
.nav-subdropdown {
  display: none;
  position: absolute;
  top: -0.4rem;
  left: calc(100% - 2px);
  background: var(--panel);
  border: 1px solid #e3eaf1;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 190px;
  padding: 0.4rem 0;
  z-index: 205;
  list-style: none;
  margin: 0;
}
/* Hover bridge para subniveles */
.nav-subdropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  bottom: 0;
}
.nav-dropdown > li.has-subdropdown:hover > .nav-subdropdown,
.nav-dropdown > li.has-subdropdown:focus-within > .nav-subdropdown { display: block; }

.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  background: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown a:hover { background: #f0f5ff; color: var(--accent); }

/* Último item: enlace "Ver todos" separado */
.nav-dropdown .dropdown-all {
  border-top: 1px solid #e8eef5;
  margin-top: 0.3rem;
  padding-top: 0.1rem;
}
.nav-dropdown .dropdown-all a {
  color: var(--accent);
  font-weight: 600;
}

/* Menú plegado (móvil + tablet): dropdown visible como sublista con sangría */
@media (max-width: 1366px) {
  .nav.nav-open .has-dropdown > .nav-dropdown {
    display: none;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    border-radius: 0;
  }
  .nav.nav-open .has-dropdown.is-expanded > .nav-dropdown,
  .nav.nav-open .has-subdropdown.is-expanded > .nav-subdropdown {
    display: block;
  }
  .nav.nav-open .nav-subdropdown {
    display: none;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    border-radius: 0;
  }
  .nav.nav-open .nav-subdropdown a {
    margin-left: 1.2rem;
    border-left-color: #d8e2ee;
  }
  .nav.nav-open .nav-dropdown a {
    padding: 0.65rem 0.75rem 0.65rem 1rem;
    font-size: 0.92rem;
    color: var(--muted);
    border-left: 2px solid #e3eaf1;
    margin-left: 0.5rem;
  }
  .nav.nav-open .nav-dropdown a:hover { color: var(--accent); background: none; }
  .nav.nav-open .nav-dropdown .dropdown-all { border-top: none; margin-top: 0; }
  .nav.nav-open .has-dropdown > a .nav-chevron {
    margin-left: auto;
  }
  .nav.nav-open .has-dropdown.is-expanded > a .nav-chevron {
    transform: rotate(180deg);
  }
  .nav.nav-open .has-subdropdown.is-expanded > a .nav-chevron {
    transform: rotate(90deg);
  }
}

/* ——— Breadcrumbs ——— */
/* Ocultar si queda vacío (defensivo) */
.breadcrumbs:empty,
.breadcrumbs .container:empty,
.breadcrumbs .breadcrumb-list:empty { display:none; }
/* Si el nav contiene una lista vacía, ocúltalo (requiere :has soportado) */
.breadcrumbs:has(.breadcrumb-list:empty) { display:none; }

.breadcrumbs {
  background: #f8f9fb;
  border-bottom: 1px solid #e8eef5;
  padding: 0.75rem 0;
  font-size: 0.9rem;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted, #6c7a89);
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
/* Separador: antes de cada ítem excepto el primero */
.breadcrumb-list li + li::before {
  content: "›";
  margin: 0 .25rem;
  color: var(--muted, #6c7a89);
  font-weight: 300;
  line-height: 1;
}
/* Enlaces */
.breadcrumb-list a { color: var(--accent, #245c9c); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Último elemento (página actual) */
.breadcrumb-list li:last-child {
  color: var(--ink, #1c2430);
  font-weight: 600;
}
/* Ajustes responsive */
@media (max-width: 640px) {
  .breadcrumbs { padding: 0.5rem 0; font-size: 0.875rem; }
  .breadcrumb-list { gap: 0.375rem; }
}

/* ——— Hero y tipografía de títulos ——— */
.hero{
  position: relative;
  min-height: clamp(220px, 28vw, 360px);
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position: absolute; inset: 0;
  background: linear-gradient( to bottom, rgba(6,20,32,.18), rgba(6,20,32,.04) 50%, rgba(6,20,32,.18) );
  z-index: -1;
}
.hero-panel{
  width: min(960px, 92vw);
  background: var(--panel, #fff);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(7, 19, 31, .24);
  padding: clamp(12px, 2vw, 20px);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--ink,#0b1f2e) 10%, transparent);
}
.hero .kicker{
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted,#476780);
  margin: 0 0 .25rem;
  font-size: .9rem;
}
.hero h1{
  margin: 0 0 .5rem;
  line-height: 1.15;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  color: var(--ink,#0b1f2e);
}
.hero .intro{
  margin: 0 auto 1.25rem;
  max-width: 60ch;
  color: color-mix(in srgb, var(--ink,#0b1f2e) 80%, #000 20%);
}
.hero-ctas{
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin: .25rem 0 1rem;
}
.hero-icon{ font-size: 2.5rem; line-height: 1; margin: 0 0 .4rem; }
.hero-bullets{
  display: grid; gap: .4rem; margin: .5rem auto 0; padding:0; list-style:none;
}
.hero-bullets li{ font-size: .95rem; color: var(--muted,#476780); }
@media (min-width: 720px){
  .hero-bullets{ grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}

/* Home hero title — single line, modern */
.hero__h1--home{
  font-size: clamp(1.7rem, 1.1rem + 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  white-space: normal;
  text-wrap: balance;
}
@media (min-width: 768px){
  .hero__h1--home{ max-width: 18ch; }
}

.prose{ max-width: var(--measure); margin-inline:auto; color:var(--ink); }
.prose.wide{ max-width: var(--measure-wide); }
p, ul, ol{ margin:0 0 .9em; }
ul, ol{ padding-left:0; }

/* ——— Secciones y headers ——— */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 2rem; }
.section-kicker {
  display: block; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
  line-height: 1.2; margin: 0 0 1rem; color: var(--ink);
}
.section-header p {
  font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto;
}
.intro{ max-width: var(--measure); color: var(--muted); font-size: clamp(18px, 1.2vw + 14px, 21px); }

/* ——— Bandas, figuras y tarjetas ——— */
.band{ background: #f4f7fb; color: var(--ink); margin: 12px 0; padding: 12px 0; }
.band.dark{ background: var(--brand-2); color: #eef5fb; }
.band.trust { background: #f6f8fa; padding: 24px 0 16px 0; margin-bottom: 0; }

.figure img{ width:100%; height:auto; border-radius:8px; border: none; }
.card{ background:var(--panel); border:1px solid #e1e9f2; border-radius:8px; padding:16px; box-shadow:0 1px 0 rgba(10,30,60,.04); }
.list-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.list-links a,
.list-links span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink, #0b1f2e);
  font-weight: 600;
  text-decoration: none;
}
.list-links a {
  padding: 6px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel, #fff) 90%, transparent);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.list-links a:hover,
.list-links a:focus-visible {
  background: color-mix(in srgb, var(--brand,#0e4f83) 10%, #fff 90%);
  border-color: color-mix(in srgb, var(--brand,#0e4f83) 25%, transparent);
  color: var(--brand,#0e4f83);
  outline: none;
}
.list-links .active {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--brand,#0e4f83);
  color: #fff;
  font-weight: 700;
}

/* ——— Grids y layouts responsivos ——— */
.grid-2 { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }

.grid-auto { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-wide { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Utilidades de espaciado */
.space-y-sm > * + * { margin-top: var(--space-sm); }
.space-y-md > * + * { margin-top: var(--space-md); }
.space-y-lg > * + * { margin-top: var(--space-lg); }

/* Containers auxiliares */
.container-tight { max-width: min(800px, 94vw); margin: 0 auto; padding-left: var(--space-sm); padding-right: var(--space-sm); }
.container-wide  { max-width: min(1400px, 96vw); margin: 0 auto; padding-left: var(--space-sm); padding-right: var(--space-sm); }

/* ——— Cards para productos y categorías ——— */
.product-category-card {
  background: var(--panel); border: 1px solid #e1e9f2; border-radius: 12px; padding: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex; flex-direction: column; height: 100%;
}
.product-category-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--accent);
}
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.product-category-card h3 { margin: 0 0 1rem; font-size: 1.3rem; color: var(--ink); }
.product-category-card h3 a { color: inherit; text-decoration: none; }
.product-category-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.product-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.highlight { background: #eaf4ff; color: var(--accent); font-size: 0.85rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px; }
.card-cta { display: inline-flex; align-items: center; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 1rem; text-decoration: none; }
.card-cta:hover { text-decoration: underline; }

/* ——— Productos por categorías ——— */
.product-categories { display: flex; flex-direction: column; gap: 3rem; }
.material-category {
  background: var(--panel); border: 1px solid #e1e9f2; border-radius: 16px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.material-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f4f8;
}
.material-icon {
  font-size: 2rem; background: #eaf4ff; padding: 0.75rem; border-radius: 12px; min-width: 4rem; text-align: center;
}
.material-header h3 { margin: 0; font-size: 1.5rem; color: var(--ink); flex-grow: 1; }
.products-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.product-card {
  background: #f8f9fb; border: 1px solid #e8eef5; border-radius: 8px; padding: var(--space-md); text-decoration: none; color: var(--ink);
  transition: all 0.2s ease; display: flex; flex-direction: column; min-height: 120px; position: relative;
}
.product-card:hover, .product-card:focus {
  background: var(--panel); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none; outline: 2px solid var(--accent); outline-offset: 2px;
}
.product-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; color: var(--ink); }
.product-specs { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ——— Sectores industriales ——— */
.sectors-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.sectors-grid--compact { gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.sector-card {
  background: var(--panel); border: 1px solid #e1e9f2; border-radius: 16px; padding: var(--space-lg); transition: all 0.2s ease;
}
@media (max-width: 640px) { .sector-card { padding: var(--space-md); } }
.sector-card.featured { background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%); }
.sector-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: var(--accent); }
.sector-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sector-icon { font-size: 2rem; background: #eaf4ff; padding: 0.75rem; border-radius: 12px; min-width: 4rem; text-align: center; }
.sector-header h3 { margin: 0; flex-grow: 1; font-size: 1.3rem; }
.sector-header h3 a { color: var(--ink); text-decoration: none; }
.sector-header h3 a:hover { color: var(--accent); }
.sector-badge { background: var(--accent); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 12px; white-space: nowrap; }
.sector-content { margin-bottom: 1rem; }
.sector-highlights { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.highlight-item { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.highlight-item strong { color: var(--ink); font-weight: 600; }
.highlight-item span { color: var(--muted); }
.sector-clients { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.clients-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.client-tag { background: #f0f4f8; color: var(--ink); font-size: 0.8rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 8px; }
.sector-cta { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.sector-cta:hover { text-decoration: underline; }

/* ——— Servicios técnicos ——— */
.services-grid { display: flex; flex-direction: column; gap: 3rem; }
.service-category-section { background: var(--panel); border: 1px solid #e1e9f2; border-radius: 16px; padding: 2rem; }
.category-title { font-size: 1.4rem; color: var(--ink); margin: 0 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f0f4f8; }
.services-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.service-card { background: #f8f9fb; border: 1px solid #e8eef5; border-radius: 12px; padding: 1.5rem; transition: all 0.2s ease; }
.service-card.main { background: var(--panel); }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.service-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-icon { font-size: 1.8rem; background: #eaf4ff; padding: 0.6rem; border-radius: 10px; min-width: 3.5rem; text-align: center; }
.service-header h4 { margin: 0; flex-grow: 1; font-size: 1.2rem; }
.service-header h4 a { color: var(--ink); text-decoration: none; }
.service-header h4 a:hover { color: var(--accent); }
.service-badge { background: var(--accent); color: white; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 10px; }
.service-features { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.feature-tag { background: #eaf4ff; color: var(--accent); font-size: 0.8rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 12px; }
.service-applications { margin-top: 1rem; font-size: 0.9rem; }
.service-applications strong { color: var(--ink); font-weight: 600; }
.service-applications span { color: var(--muted); }
.service-cta { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.9rem; margin-top: 1rem; display: inline-block; }
.service-cta:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .service-category-section { padding: var(--space-md); }
  .service-card { padding: var(--space-md); }
}

/* ——— Servicios adicionales ——— */
.additional-services-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-item { background: var(--panel); border: 1px solid #e1e9f2; border-radius: 12px; padding: 1.5rem; text-align: center; }
.service-icon-lg { font-size: 3rem; margin-bottom: 1rem; }
.service-item h3 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--ink); }
.service-features-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.service-features-list li { padding: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.service-features-list li:before { content: "✓ "; color: var(--accent); font-weight: bold; margin-right: 0.5rem; }

/* ——— Proceso de trabajo ——— */
.process-flow {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.process-step { text-align: center; padding: 1.5rem; min-width: 0; }
.step-number {
  background: var(--accent); color: white; font-size: 1.5rem; font-weight: bold;
  width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.process-step h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--ink); }
.process-step p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.process-arrow { font-size: 2rem; color: var(--accent); text-align: center; display: none; }
@media (max-width: 900px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .process-step {
    padding: var(--space-md);
  }
  .process-step h3,
  .process-step p {
    overflow-wrap: anywhere;
  }
  .process-arrow {
    display: none;
  }
}
@media (min-width: 1024px) {
  .process-flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
  .process-arrow { display: block; }
}

/* ——— Certificaciones ——— */
.certifications-grid {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 800px; margin: 0 auto;
}
.cert-item {
  background: var(--panel); border: 1px solid #e1e9f2; border-radius: 12px; padding: 1.5rem; text-align: center; transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cert-item:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.cert-logo { font-size: 2.5rem; margin-bottom: 1rem; }
.cert-item h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.cert-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ——— Timeline de empresa ——— */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 1rem 0; }
.timeline:before {
  content: ''; position: absolute; left: 2rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent), #e1e9f2);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 5rem; }
.timeline-year {
  position: absolute; left: 0; top: 0; background: var(--accent); color: white;
  font-weight: bold; font-size: 0.9rem; padding: 0.5rem 0.75rem; border-radius: 20px; min-width: 3.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.timeline-content { background: var(--panel); border: 1px solid #e1e9f2; border-radius: 12px; padding: 1.5rem; }
.timeline-content h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ink); }
.timeline-content p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  .timeline-item { padding-left: 0; margin-left: 1rem; }
  .timeline:before { left: 0.5rem; }
  .timeline-year { position: relative; margin-bottom: 1rem; display: inline-block; }
}

/* ——— Propuestas de valor ——— */
.value-propositions { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value-item { text-align: center; padding: 1.5rem; }
.value-icon { font-size: 3rem; margin-bottom: 1rem; }
.value-item h3 { margin: 0 0 1rem; font-size: 1.3rem; color: var(--ink); }
.value-item p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ——— Recursos corporativos ——— */
.corporate-resources { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.resource-category { background: var(--panel); border: 1px solid #e1e9f2; border-radius: 16px; padding: 2rem; }
.resource-category h3 { margin: 0 0 1.5rem; font-size: 1.3rem; color: var(--ink); padding-bottom: 1rem; border-bottom: 2px solid #f0f4f8; }
.resource-links { display: flex; flex-direction: column; gap: 1rem; }
.resource-link {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; background: #f8f9fb; border: 1px solid #e8eef5; border-radius: 8px; text-decoration: none; color: var(--ink); transition: all 0.2s ease;
}
.resource-link:hover { background: var(--panel); border-color: var(--accent); transform: translateX(4px); text-decoration: none; }
.resource-title { font-weight: 600; color: var(--ink); }
.resource-desc { font-size: 0.9rem; color: var(--muted); }

/* ——— Feature grid mejorado ——— */
.feature-grid { gap: 2rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; background: var(--panel);
  border: 1px solid #e1e9f2; border-radius: 12px;
}
.feature-icon { font-size: 2rem; background: #eaf4ff; padding: 0.75rem; border-radius: 12px; min-width: 4rem; text-align: center; }
.feature-item h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ink); }
.feature-item p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ——— CTA sections mejoradas ——— */
.cta-section {
  display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; padding: 2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%); border-radius: 16px; border: 1px solid #e1e9f2;
}
.cta-content h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); color: var(--ink); }
.cta-content p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 600px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-primary { background: var(--brand,#0e4f83); color: #fff; border-color: transparent; }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: white; }
@media (min-width: 768px) {
  .cta-section { flex-direction: row; text-align: left; justify-content: space-between; align-items: center; }
  .cta-content { flex: 1; }
  .cta-actions { flex-shrink: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cta-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cta-content { width: 100%; }
  .cta-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Band variants ——— */
.band-accent  { background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%); }
.band-subtle  { background: var(--bg); }
.band-dark { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%); color: #eef5fb; }
.band-dark .section-kicker { color: #a8c5e0; }
.band-dark h2 { color: white !important; }
.band-dark p { color: #d1e0f0 !important; }
.band-dark .btn-primary { background: white; color: var(--brand); border-color: white; }
.band-dark .btn-primary:hover { background: #f0f4f8; color: var(--brand); }
.band-dark .btn-secondary { background: transparent; color: white; border-color: white; }
.band-dark .btn-secondary:hover { background: white; color: var(--brand); }

/* ——— CTA Standard Section ——— */
.cta-standard { 
  background: linear-gradient(135deg, #0e4f83 0%, #1a5a96 100%); 
  padding: 3rem 0; 
  margin: 2rem 0;
}
.cta-standard .cta-panel {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .cta-standard .cta-panel { padding: var(--space-md); }
}
.cta-standard .cta-panel h2 { 
  color: var(--ink) !important; 
  font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); 
  margin: 0 0 1rem 0;
}
.cta-standard .cta-panel p { 
  color: var(--muted) !important; 
  font-size: 1.1rem; 
  margin: 0 0 2rem 0;
}
.cta-standard .btn-primary { 
  background: var(--brand) !important; 
  color: white !important; 
  border-color: var(--brand) !important; 
  font-weight: 600; 
}
.cta-standard .btn-primary:hover { 
  background: var(--brand-2) !important; 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); 
}
.cta-standard .btn-secondary { 
  background: transparent !important; 
  color: var(--brand) !important; 
  border: 2px solid var(--brand) !important; 
  font-weight: 600; 
}
.cta-standard .btn-secondary:hover { 
  background: var(--brand) !important; 
  color: white !important; 
  transform: translateY(-2px); 
}

/* ——— Layout, grid y sidebar ——— */
.grid{ display:grid; gap:16px; }
.layout{ display:block; }
.sidebar{ position:relative; top:auto; font-size:14px; margin-bottom:12px; }

/* ——— Tablas ——— */
.table{ width:100%; border-collapse:collapse; font-size:.95em; }
.table th, .table td{ border-bottom:1px solid #e6edf5; padding:10px; text-align:left; }
.table th{ color:var(--brand-2); font-weight:700; }

/* ——— Botones ——— */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:10px; border:1px solid #cfe0ee; background:#fff; color:var(--brand); font-weight:600; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast); }
.btn.primary{ background:var(--brand); color:#eaf4ff; border-color:var(--brand-2); }
.btn:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* Asegurar que btn-primary y btn-secondary tengan el mismo formato base */
.btn-primary, .btn-secondary { 
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; 
  font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* ——— Pie ——— */
.footer{ border-top:1px solid #d6e1eb; background: var(--brand); color: rgba(255,255,255,0.75); }

.footer-main { padding: var(--space-xl) 0 var(--space-lg); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo img { filter: none; opacity: 0.95; }
.footer-logo { display: inline-block; margin-bottom: var(--space-sm); }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  max-width: 28ch;
  margin: 0 0 var(--space-sm);
}

.footer-contact {
  font-style: normal;
  font-size: 0.9rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 var(--space-sm);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }

.footer-badge {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.badge-iso {
  display: inline-block;
  background: rgba(59,130,246,0.25);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}
.footer-badge small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-sm) 0;
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.footer-bar small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ——— Responsive amplio ——— */
@media(min-width:700px){
  .grid{ gap:24px; }
  .layout{ display:grid; grid-template-columns:240px 1fr; gap:24px; }
  .sidebar{ position:sticky; top:84px; }
}
@media(min-width:900px){
  .prose{ max-width: var(--measure-wide); }
}

/* Secciones principales de la home y páginas */
.home-sections { background: #f6f8fa; padding: 40px 0 32px 0; }
.sections-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.section-card {
  background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 32px 20px 24px 20px; text-align: center; text-decoration: none; color: #1a2a3a; transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; align-items: center;
}
.section-card:hover { box-shadow: 0 6px 24px rgba(0,95,163,0.10); transform: translateY(-4px) scale(1.03); }
.section-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.section-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: #005fa3; }
.section-card p { font-size: 1rem; color: #2d3b4d; opacity: 0.85; }
/* Responsive para móviles */
@media (max-width: 900px) {
  .sections-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 4px; }
  .section-card { padding: 20px 8px 16px 8px; }
}

.aero-gallery { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 32px 0 0 0; }
.aero-img { max-width: 180px; border-radius: 10px; box-shadow: 0 2px 12px rgba(7,19,31,.10); background: #fff; }
@media (max-width: 700px) { .aero-gallery { gap: 10px; } .aero-img { max-width: 48vw; } }

.sector-block {
  background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(7,19,31,.06); border: 1px solid #e1e9f2; padding: 18px 16px 12px 16px; margin-bottom: 12px;
}
.sector-block h2 { margin: 0 0 .4em 0; font-size: 1.08rem; color: #0e4f83; }
.sector-block ul { margin: 0; padding-left: 1em; }
.sector-block li { margin-bottom: .5em; }

h1, h2, h3 { margin-top: 0.3em; margin-bottom: 0.3em; }
ul, ol { margin-bottom: 0.6em; }
ul { list-style: none; padding-left: 0; }
ul li, ol li { position: relative; padding-left: 0; }

/* ——— Mejoras de accesibilidad (E3-010) ——— */
/* Mostrar outline solo con teclado, nunca con ratón */
*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Modo de reducción de movimiento (E3-011) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in-up { opacity: 1 !important; transform: none !important; animation: none !important; }
}
/* Mejoras de contraste para textos pequeños */
.text-small { font-size: var(--fs-small); color: var(--ink); font-weight: 500; }
/* Estados de focus para botones */
.btn:focus, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(14, 95, 178, 0.2);
}

/* ——————————————————————————————————————————————
   ANIMACIONES DE ENTRADA (E3-011)
   Uso: añadir clase .fade-in-up al elemento.
   Intersection Observer activa .is-visible.
   —————————————————————————————————————————————— */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Brand (M-2) — variante para páginas de sección (sin imagen) ── */
.hero--brand {
  min-height: clamp(260px, 32vw, 440px);
  padding: 0;
}
.hero--brand .hero-bg {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}
.hero--brand .hero-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  color: white;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  max-width: 760px;
}
.hero--brand .hero-panel h1 { color: white; font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem); }
.hero--brand .hero-panel .hero-icon { font-size: 3rem; }
.hero--brand .hero-panel .kicker { color: rgba(255,255,255,.7); }
.hero--brand .hero-panel .intro { color: rgba(255,255,255,.9); }
.hero--brand .btn.primary,
.hero--brand .btn-primary { background: #ffffff; color: var(--brand); border-color: #ffffff; }
.hero--brand .btn.primary:hover,
.hero--brand .btn-primary:hover { background: #f0f5fa; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero--brand .btn:not(.primary):not(.btn-primary) { background: transparent; color: white; border-color: rgba(255,255,255,.7); }
.hero--brand .btn:not(.primary):not(.btn-primary):hover { background: rgba(255,255,255,.12); border-color: white; transform: translateY(-2px); }
.hero--brand .hero-bullets li { color: rgba(255,255,255,.8); }
@media (max-width: 640px) {
  .hero--brand .hero-panel { text-align: center; }
  .hero--brand .hero-ctas { justify-content: center; }
}

/* ── Hero Sector — variante con imagen de fondo por sector ──────────────────
   La imagen llega vía CSS custom property --hero-img, definida inline
   en el elemento <main> por hero.php. El gradient overlay garantiza
   contraste y legibilidad sobre cualquier fotografía.
   ─────────────────────────────────────────────────────────────────────────── */
.hero--sector {
  min-height: clamp(300px, 40vw, 520px);
  padding: 0;
}
.hero--sector .hero-bg {
  background:
    linear-gradient(to bottom,
      rgba(6,20,32,.72) 0%,
      rgba(6,20,32,.28) 55%,
      rgba(6,20,32,.68) 100%
    ),
    var(--hero-img, linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%))
    center / cover no-repeat;
  filter: saturate(1.05);
}
.hero--sector .hero-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  color: white;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  max-width: 760px;
}
.hero--sector .hero-panel h1     { color: white; font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem); text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero--sector .hero-panel .hero-icon { font-size: 3rem; }
.hero--sector .hero-panel .kicker    { color: rgba(255,255,255,.78); }
.hero--sector .hero-panel .intro     { color: rgba(255,255,255,.92); }
.hero--sector .btn.primary,
.hero--sector .btn-primary            { background: #ffffff; color: var(--brand); border-color: #ffffff; }
.hero--sector .btn.primary:hover,
.hero--sector .btn-primary:hover      { background: #f0f5fa; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero--sector .btn:not(.primary):not(.btn-primary)       { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.hero--sector .btn:not(.primary):not(.btn-primary):hover { background: rgba(255,255,255,.18); border-color: white; transform: translateY(-2px); }
.hero--sector .hero-bullets li   { color: rgba(255,255,255,.82); }
@media (max-width: 640px) {
  .hero--sector { min-height: clamp(260px, 55vw, 380px); }
  .hero--sector .hero-panel { text-align: center; }
  .hero--sector .hero-ctas  { justify-content: center; }
}

/* ——————————————————————————————————————————————
   HERO FULLSCREEN (E1-001) — variante pantalla completa.
   Uso: añadir class hero--fullscreen al <main class="hero">.
   Texto directamente sobre el overlay, sin panel blanco.
   —————————————————————————————————————————————— */
.hero--fullscreen {
  min-height: calc(100svh - 64px);
  min-height: calc(100vh - 64px);
  padding: 0;
  align-items: center;
}
.hero--fullscreen .hero-bg {
  background:
    radial-gradient(120% 95% at 22% 44%, rgba(2,10,20,.44) 0%, rgba(2,10,20,0) 58%),
    linear-gradient(to bottom, rgba(2,10,20,.72), rgba(2,10,20,.58)),
    url("/assets/img/hero.webp") center / cover no-repeat;
  filter: saturate(1.03) contrast(1.06);
}
.hero--fullscreen .hero-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  color: white;
  text-align: left;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  width: 100%;
  max-width: min(1120px, 94vw);
  position: relative;
  isolation: isolate;
}
.hero--fullscreen .hero-panel::before {
  content: "";
  position: absolute;
  inset: clamp(.15rem, 1.1vw, .9rem) clamp(-1.1rem, -1vw, -.25rem);
  border-radius: 22px;
  background:
    radial-gradient(120% 110% at 18% 52%, rgba(3, 13, 24, .62) 0%, rgba(3, 13, 24, .3) 58%, rgba(3, 13, 24, .16) 100%),
    linear-gradient(120deg, rgba(2, 10, 20, .52), rgba(2, 10, 20, .22));
  border: 1px solid rgba(156, 189, 227, .24);
  backdrop-filter: blur(2px);
  z-index: -1;
}
.hero--fullscreen .hero-panel h1 {
  color: white;
  max-width: 16ch;
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 1.7rem + 2.6vw, 3.65rem);
  line-height: 1.06;
  text-shadow: 0 3px 16px rgba(0,0,0,.42);
}
.hero--fullscreen .hero-panel h1.hero__h1--home {
  max-width: 100%;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(1.95rem, 1.25rem + 2.2vw, 3.35rem);
}
.hero--fullscreen .hero-panel .kicker {
  margin: 0 0 .8rem;
  color: rgba(234, 244, 255, .84);
  letter-spacing: .08em;
}
.hero--fullscreen .hero-panel .intro {
  margin: 0 0 1.75rem;
  color: rgba(240, 248, 255, .93);
  max-width: 58ch;
  font-size: clamp(1.04rem, .95rem + .45vw, 1.28rem);
  line-height: 1.56;
}
.hero--fullscreen .hero-ctas {
  gap: .9rem;
  justify-content: flex-start;
  margin: .35rem 0 1.35rem;
}
/* CTA primario: azul electrico sólido */
.hero--fullscreen .btn.primary,
.hero--fullscreen .btn-primary {
  background: var(--accent);
  color: #f4f9ff;
  border-color: color-mix(in srgb, var(--accent) 88%, #94b9ff 12%);
  box-shadow: 0 10px 24px rgba(22, 74, 148, .36);
}
.hero--fullscreen .btn.primary:hover,
.hero--fullscreen .btn-primary:hover {
  background: #256fe0;
  border-color: #3d84ef;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 56, 119, .45);
}
/* CTA secundario: outline/glass sutil */
.hero--fullscreen .btn:not(.primary):not(.btn-primary) {
  background: rgba(14, 27, 43, .2);
  color: rgba(238, 247, 255, .95);
  border-color: rgba(189, 216, 248, .62);
  backdrop-filter: blur(4px);
}
.hero--fullscreen .btn:not(.primary):not(.btn-primary):hover {
  background: rgba(20, 38, 61, .32);
  border-color: rgba(220, 236, 255, .9);
  transform: translateY(-2px);
}
/* Bullets hero fullscreen */
.hero--fullscreen .hero-bullets {
  grid-template-columns: 1fr;
  max-width: 760px;
  gap: .55rem;
  margin-top: .25rem;
}
.hero--fullscreen .hero-bullets li {
  color: rgba(229, 241, 255, .86);
  line-height: 1.5;
}
/* Responsive hero fullscreen */
@media (max-width: 640px) {
  .hero--fullscreen {
    min-height: calc(100svh - 58px);
    min-height: calc(100vh - 58px);
  }
  .hero--fullscreen .hero-panel { text-align: center; }
  .hero--fullscreen .hero-ctas { justify-content: center; }
  .hero--fullscreen .hero-panel::before {
    inset: .15rem -.35rem;
    border-radius: 16px;
  }
  .hero--fullscreen .hero-panel h1,
  .hero__h1--home {
    max-width: 100%;
    white-space: normal;
    text-wrap: pretty;
  }
}

/* ——— Ajustes responsive generales ——— */
@media (max-width: 640px) {
  .container { max-width: 100%; }
  .topbar { gap: 0.5rem; min-height: 58px; }
  .brand { min-width: 0; }
  .brand img { height: 40px; }
  .nav { gap: 0.5rem; }

  .hero-panel { width: 100%; max-width: 100%; }
  body { font-size: clamp(15px, 4vw, 17px); }
  .hero-panel { padding: var(--space-md); border-radius: 12px; }
  .hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); line-height: var(--lh-tight); }
  .hero .intro,
  .hero-bullets li { overflow-wrap: anywhere; }
  .hero-ctas { flex-direction: column; align-items: center; gap: var(--space-sm); }
  .btn { min-width: 0; width: min(100%, 320px); padding: var(--space-sm) var(--space-md); }
  .section-header h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .material-header, .sector-header, .service-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .material-icon, .sector-icon, .service-icon { align-self: center; }
}
/* Mejoras para tablets */
@media (min-width: 641px) and (max-width: 1023px) {
  .container { padding-left: var(--space-md); padding-right: var(--space-md); }
  .hero-panel { padding: var(--space-lg); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .topbar {
    min-height: 60px;
    gap: 0.75rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .brand img {
    height: 44px;
  }

  .nav {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
  }

  .nav-lang {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .global-search-trigger {
    order: 2;
  }

  .nav-main {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .nav-main a {
    padding: 0.5rem 0.25rem;
    font-size: 0.9rem;
  }

  .hero--fullscreen {
    min-height: calc(100svh - 60px);
    min-height: calc(100vh - 60px);
  }

  .hero--fullscreen .hero-panel,
  .hero--brand .hero-panel,
  .hero--sector .hero-panel {
    width: min(100%, 860px);
    padding: clamp(1rem, 2vw, 1.5rem);
  }

  .hero--fullscreen .hero-panel h1,
  .hero--brand .hero-panel h1,
  .hero--sector .hero-panel h1 {
    font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem);
  }

  .hero--fullscreen .hero-panel .intro,
  .hero--brand .hero-panel .intro,
  .hero--sector .hero-panel .intro {
    max-width: 64ch;
  }

  .hero-bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .pc-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .grid-2 {
    gap: 1rem;
  }

  .hero__h1--home {
    white-space: normal;
    font-size: clamp(2rem, 3vw + 0.8rem, 2.85rem);
  }
}

@media (min-width: 1024px) {
  .nav-main a {
    font-size: .92rem;
  }

  html[lang="de"] .topbar {
    gap: .55rem;
  }

  html[lang="de"] .nav {
    gap: .95rem;
  }

  html[lang="de"] .nav-main {
    gap: .85rem;
  }

  html[lang="de"] .nav-main a {
    padding-left: .35rem;
    padding-right: .35rem;
  }
}

/* Tipografía fluida mejorada */
.display-1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: var(--lh-tight); font-weight: 700; }
.display-2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); line-height: var(--lh-tight); font-weight: 600; }
.display-3 { font-size: clamp(1.2rem, 2vw + 0.5rem, 1.8rem); line-height: 1.4; font-weight: 600; }
/* Estados hover mejorados para puntero fino */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .sector-card:hover, .service-card:hover { transform: translateY(-2px); }
}
/* Para dispositivos táctiles */
@media (hover: none) {
  .product-card:active, .sector-card:active, .service-card:active { transform: scale(0.98); }
}

/* ── Formulario de contacto: mensajes de respuesta ──────────────────────────── */
.form-message { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; font-weight: 500; }
.form-message--ok    { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.form-message--error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Componente Notice (F2-009) ──────────────────────────────────────────────── */
.notice {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 8px; border-left: 4px solid transparent;
  font-size: 0.93rem; line-height: 1.5;
}
.notice--info    { background: #eff6ff; border-color: var(--accent); color: #1e3a5f; }
.notice--success { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
.notice--warning { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.notice--error   { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
.notice__icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; font-style: normal; }
.notice__body { flex: 1; }
.notice__title { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.notice__close {
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.5;
  padding: 0 0.25rem; line-height: 1; margin-top: 0.1rem; flex-shrink: 0;
  transition: opacity 0.15s;
}
.notice__close:hover { opacity: 1; }

/* ── Página 404 (F1-017) ─────────────────────────────────────────────────────── */
.error-page { padding: var(--space-xl) 0; min-height: 60vh; display: grid; place-items: center; }
.error-page__inner { text-align: center; max-width: 560px; }
.error-page__code {
  font-size: clamp(5rem, 20vw, 10rem); font-weight: 800; line-height: 1;
  color: var(--brand); opacity: 0.12; margin-bottom: -1rem; user-select: none;
}
.error-page__title { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 0.75rem; color: var(--ink); }
.error-page__desc  { color: var(--muted); margin: 0 0 2rem; }
.error-page__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.error-page__suggestion h2 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }
.error-page__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.error-page__links a {
  padding: 0.4rem 0.9rem; border-radius: 6px; background: var(--bg);
  color: var(--brand); font-size: 0.9rem; text-decoration: none; border: 1px solid #d6e1eb;
  transition: background 0.15s;
}
.error-page__links a:hover { background: #e8f0f8; }

/* ======================================================
   PRODUCT CARD COMPONENT — pc-card
   Used on: homepage material spotlight, product indexes
   ====================================================== */
.pc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-lg);
}

.pc-card {
  background: var(--panel);
  border: 1px solid #e1e9f2;
  border-radius: 14px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.pc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.09); border-color: var(--accent); }

.pc-card__icon { font-size: 2.4rem; margin-bottom: 1rem; }

.pc-card__body { flex: 1; }

.pc-card__title { margin: 0 0 0.6rem; font-size: 1.25rem; line-height: 1.25; }
.pc-card__title a { color: var(--ink); text-decoration: none; }
.pc-card__title a:hover { color: var(--accent); }

.pc-card__desc { margin: 0 0 1rem; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

.pc-card__badges {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.pc-badge {
  background: #eaf4ff; color: var(--accent);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.2rem 0.65rem; border-radius: 20px;
}

.pc-card__cta {
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: auto; padding-top: var(--space-sm);
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
}
.pc-card__cta:hover { text-decoration: underline; }

/* "Ver catálogo" placeholder card */
.pc-card--catalog {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: transparent; color: white;
  justify-content: center; align-items: center; text-align: center; min-height: 200px;
}
.pc-card--catalog .pc-card__title a,
.pc-card--catalog .pc-card__cta { color: white; }
.pc-card--catalog .pc-card__desc { color: rgba(255,255,255,.75); }
.pc-card--catalog:hover { box-shadow: 0 10px 30px rgba(31,58,95,.35); border-color: transparent; }

/* ======================================================
   RELATED-NAV COMPONENT — rel-nav
   Used on: product detail pages (sidebar / bottom)
   ====================================================== */
.rel-nav { margin-bottom: var(--space-md); }
.rel-nav__title { margin: 0 0 var(--space-sm); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rel-nav__list { margin-bottom: var(--space-sm); }
.rel-nav__note { margin: var(--space-sm) 0 0; }
.small { font-size: 0.85rem; color: var(--muted); }

/* ======================================================
   TRUST STRIP — .trust-strip
   Homepage "stats" band: 4 KPIs in a row
   DEC-015 resolved 2026-03-15
   ====================================================== */
.trust-strip {
  background: var(--brand);
  color: white;
  padding: var(--space-lg) 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: var(--space-md) var(--space-lg);
  text-align: center;
}
.trust-stat { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.trust-stat__num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: white;
  letter-spacing: -0.02em;
}
.trust-stat__num span { color: var(--accent); }
.trust-stat__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  line-height: 1.3;
  max-width: 140px;
}
.trust-stat__sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   SPECS TABLE — F3-003
   ============================================================ */
.specs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border, #e2e8f0);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.specs-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.specs-table th,
.specs-table td {
  padding: 0.6rem var(--space-md);
  vertical-align: baseline;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }
.specs-table th[scope="row"] {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  background: var(--bg);
  width: 45%;
}
.specs-table td {
  color: var(--secondary);
  background: var(--panel);
}
.specs-table tr:nth-child(even) th[scope="row"] { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.specs-table tr:nth-child(even) td              { background: color-mix(in srgb, var(--bg) 40%, transparent); }
@media (max-width: 480px) {
  .specs-table th[scope="row"] { width: auto; }
}

/* ============================================================
   MISSION COMPONENT — E1-005
   ============================================================ */
.mission {
  padding: var(--space-xl) 0;
  background: var(--panel);
}
.mission__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.mission__media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.mission__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.mission__media:hover img { transform: scale(1.03); }

.mission__content { display: flex; flex-direction: column; gap: var(--space-md); }
.mission__body { color: var(--muted); line-height: 1.7; margin: 0; }

.mission__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.mission__stat {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: var(--space-sm);
  background: var(--bg);
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.mission__stat-num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.mission__stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.mission__stat-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mission__cta { align-self: flex-start; margin-top: var(--space-sm); }

@media (max-width: 768px) {
  .mission__inner { grid-template-columns: 1fr; }
  .mission__media { order: -1; }
  .mission__stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .mission__stats { grid-template-columns: 1fr; }
}

/* ============================================================
   MATERIAL SEARCH COMPONENT — E2-001
   ============================================================ */
.material-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}
.material-search__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.material-search__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.material-search__icon {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 1.1rem;
}
.material-search__input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.material-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.material-search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 100;
  list-style: none;
  margin: 0; padding: 0.4rem 0;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.material-search__results[aria-expanded="true"],
.material-search__results:not(:empty) { display: block; }

.material-search__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.material-search__result:hover,
.material-search__result[aria-selected="true"] {
  background: #f0f5ff;
  color: var(--accent);
}
.material-search__result mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}
.material-search__result-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}
.material-search__empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.material-search__empty a { color: var(--accent); }

/* ============================================================
   NEWS CAROUSEL — E3-005
   ============================================================ */
.news-carousel { padding: var(--space-xl) 0; background: var(--bg); }
.news-carousel__track-wrap { overflow: hidden; position: relative; }
.news-carousel__track {
  display: flex;
  gap: var(--space-md);
  transition: transform var(--transition-base);
  will-change: transform;
}
.news-card {
  flex: 0 0 calc(33.333% - var(--space-md));
  min-width: 0;
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.news-card__img { aspect-ratio: 16/9; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-base); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.news-card__cat {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
}
.news-card__title { margin: 0; font-size: 1rem; line-height: 1.4; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--accent); }
.news-card__date { font-size: 0.8rem; color: var(--muted); }
.news-card__excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.news-card__cta { font-size: 0.875rem; font-weight: 600; color: var(--accent); text-decoration: none; align-self: flex-start; margin-top: auto; }
.news-card__cta:hover { text-decoration: underline; }

.news-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.news-carousel__btn {
  background: var(--panel); border: 2px solid #e2e8f0; border-radius: 50%;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--ink);
  transition: all var(--transition-fast);
}
.news-carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.news-carousel__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.news-carousel__dots { display: flex; gap: 0.4rem; }
.news-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e2e8f0; border: none; cursor: pointer; padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.news-carousel__dot.is-active { background: var(--accent); transform: scale(1.3); }

/* No-JS fallback */
.no-js .news-carousel__track { flex-wrap: wrap; }
.no-js .news-card { flex: 1 1 280px; }
.no-js .news-carousel__controls { display: none; }

@media (max-width: 768px) {
  .news-card { flex: 0 0 calc(50% - var(--space-sm)); }
}
@media (max-width: 480px) {
  .news-card { flex: 0 0 85%; }
}

/* ============================================================
   GLOBAL SEARCH OVERLAY — E4-005/006
   ============================================================ */
.global-search-trigger {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; border-radius: 8px;
  color: var(--muted); font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-left: 0.5rem;
}
.global-search-trigger:hover { background: #f0f4f8; color: var(--accent); }

.global-search-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(11,31,46,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(3rem, 10vh, 6rem);
}
.global-search-overlay.is-open { display: flex; }

.global-search-box {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  width: min(640px, 94vw);
  overflow: hidden;
}
.global-search-box__input-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.global-search-box__icon { color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }
.global-search-box__input {
  flex: 1; border: none; outline: none;
  font-size: 1.1rem; font-family: inherit; color: var(--ink);
  background: transparent;
}
.global-search-box__close {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--muted); line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}
.global-search-box__close:hover { color: var(--ink); }

.global-search-results {
  max-height: 400px; overflow-y: auto;
  padding: 0.5rem 0;
}
.global-search-results:empty + .global-search-empty { display: block; }
.global-search-empty { display: none; padding: 1.5rem; text-align: center; color: var(--muted); }
.global-search-group { padding: 0.25rem 0; }
.global-search-group-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
  padding: 0.5rem 1.25rem 0.25rem;
}
.global-search-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem;
  transition: background var(--transition-fast);
}
.global-search-item:hover,
.global-search-item[aria-selected="true"] {
  background: #f0f5ff; color: var(--accent);
}
.global-search-item mark {
  background: transparent; color: var(--accent); font-weight: 700;
}
.global-search-item__meta { font-size: 0.8rem; color: var(--muted); margin-left: auto; }

.global-search-box__tip {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem; color: var(--muted);
}

/* ============================================================
   T-03 MATERIAL TEMPLATE — F3-004
   ============================================================ */

/* Narrow container variant */
.container--narrow { max-width: 820px; }

/* Section header alignment variants */
.section-header--left { text-align: left; }
.section-header--left h2::after { margin-left: 0; }
.section-header--center { text-align: center; }

/* Alternate band background */
.band-alt { background: var(--bg); }

/* Grades table: override specs-table for 3-col layout */
.grades-table thead th {
  background: var(--brand);
  color: white;
  font-weight: 600;
  white-space: nowrap;
}
.grades-table th[scope="col"] { background: var(--brand); color: white; width: auto; }
.grades-table td:last-child { white-space: normal; }
.grades-table code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--brand);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Formats grid */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-md);
}
.format-card {
  background: var(--panel);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.format-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.format-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.format-card__specs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.format-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.25rem;
  align-self: flex-start;
}
.format-card__link:hover { text-decoration: underline; }

/* Sectors strip */
.sectors-strip { background: var(--bg); }
.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.sectors-list__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* CTA band (brand color) */
.band-brand {
  background: var(--brand);
  color: white;
}
.band-brand h2 { color: white; }
.band-brand p  { color: rgba(255,255,255,.85); margin: 0; }
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.cta-inline__copy { flex: 1 1 300px; }
.cta-inline__copy h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.cta-inline__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.band-brand .btn {
  background: white;
  color: var(--brand);
  border-color: white;
}
.band-brand .btn:hover { background: var(--bg); }
.band-brand .btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.band-brand .btn.primary:hover { background: var(--brand-2, #162c49); border-color: var(--brand-2, #162c49); }

/* ============================================================
   T-04 FORMAT TEMPLATE — F3-005
   ============================================================ */

/* Applications list */
.applications-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-sm) var(--space-md);
}
.applications-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem var(--space-md);
  background: var(--panel);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Cert badges row */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}
.cert-badge code {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Weight Calculator ──────────────────────────────────────────────────────── */
.wc-form {
  background: var(--panel, #fff);
  border: 1px solid #e1e9f2;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.wc-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.wc-row--2col > .wc-field-group { flex: 1 1 200px; }
.wc-row--dim > .wc-field-group--label { flex: 0 0 180px; }
.wc-row--dim > .wc-field-group--input { flex: 1 1 120px; }
.wc-row--dim > .wc-field-group--unit  { flex: 0 0 80px; }
.wc-field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.wc-label  { font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.wc-dim-label { font-size: 0.85rem; font-weight: 600; color: var(--brand); padding-bottom: 0.4rem; }
.wc-input, .wc-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
  width: 100%;
}
.wc-input:focus, .wc-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.wc-input--result {
  background: #f0f6ff;
  font-weight: 700;
  color: var(--brand);
  cursor: default;
}
.wc-select--unit { padding: 0.5rem 0.4rem; }
.wc-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.wc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e1e9f2;
}
.wc-result-item { display: flex; flex-direction: column; gap: 0.35rem; }
@media (max-width: 600px) {
  .wc-row--dim { flex-direction: column; }
  .wc-row--dim > .wc-field-group--label { flex: none; }
  .wc-results { grid-template-columns: 1fr; }
}

/* ── Cookie Consent Banner (GDPR) ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: #f8fbff;
  border-top: 1px solid #c9dbef;
  box-shadow: 0 -10px 26px rgba(8, 37, 74, 0.18);
  padding: 0.85rem 1rem;
}

.cookie-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  color: #0f2f57;
  font-size: 0.98rem;
  line-height: 1.45;
}

.cookie-banner__link {
  color: #1758cc;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #99b9de;
  background: #ffffff;
}

.cookie-banner .btn.primary {
  border-color: #0d4fc5;
  background: #0d4fc5;
  color: #ffffff;
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner .btn {
    flex: 1 1 auto;
  }
}
