/* ============================================================
   GRISMA — Nueva cara / demo "plano de planta"
   Azul corporativo dominante, papel frío muy claro, ámbar de
   seguridad. CSS propio, sin frameworks ni CDN.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --blue-950: #02122f;
  --blue-900: #031a45;
  --blue-800: #052e7a;
  --blue-700: #063a92;
  --blue: #0846af;
  --blue-500: #1a5fd7;
  --cyan: #0d8abc;
  --amber: #ffb81c;
  --amber-deep: #e6a400;

  --paper: #f7f9fd;
  --paper-2: #e9f0fa;
  --white: #ffffff;
  --ink: #04122e;
  --text: #0b1936;
  --muted: #5a6880;
  --muted-blue: #9fb2d4;
  --line: rgba(8, 70, 175, 0.16);
  --line-ink: rgba(255, 255, 255, 0.16);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1300px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
h1,
h2,
h3,
p,
ul,
figure,
fieldset {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--amber);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Intro de marca ---------- */
.intro {
  display: none;
}
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--blue-950);
  animation: introOut 0.35s var(--ease) 0.9s forwards;
  will-change: transform;
}
.js .intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.6;
}
.js .intro.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.intro__inner {
  position: relative;
  width: min(300px, 64vw);
  text-align: center;
}
.intro__inner img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: introIn 0.45s var(--ease) 0.02s forwards;
}
.intro__bar {
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.intro__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: introBar 0.6s var(--ease) 0.12s forwards;
}
.intro__tag {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-blue);
  opacity: 0;
  animation: introFade 0.3s ease 0.25s forwards;
}
.intro__skip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
.intro__skip:hover {
  color: var(--amber);
  border-color: var(--amber);
}
body.is-intro {
  overflow: hidden;
}
@keyframes introOut {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}
@keyframes introIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes introBar {
  to {
    transform: scaleX(1);
  }
}
@keyframes introFade {
  to {
    opacity: 1;
  }
}

/* ---------- Utilidades ---------- */
.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- Entrada de marca ---------- */
.site-head {
  animation: headDrop 0.55s var(--ease) both;
}
.site-head .brand__plate {
  position: relative;
  overflow: hidden;
}
.site-head .brand__plate img {
  animation: brandIn 0.85s var(--ease) 0.12s both;
}
.site-head .brand__plate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: brandLine 0.9s var(--ease) 0.35s forwards;
}
@keyframes headDrop {
  from {
    transform: translateY(-100%);
  }
}
@keyframes brandIn {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.5;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}
@keyframes brandLine {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--btn-bg);
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s,
    box-shadow 0.25s;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(2, 18, 47, 0.85);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: none;
  box-shadow: none;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 4px 4px 0 rgba(255, 184, 28, 0.18);
}
.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--blue-800);
  border-color: #fff;
}
.btn--ink {
  --btn-bg: var(--blue-900);
  --btn-fg: #fff;
  border-color: var(--blue-900);
}

/* ============================================================
   TOPBAR + HEADER
   ============================================================ */
.topbar {
  background: var(--white);
  color: var(--blue-800);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.topbar__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.topbar strong {
  font-weight: 500;
  color: var(--ink);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--blue-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s;
}
.site-head.is-scrolled {
  box-shadow: 0 10px 30px rgba(2, 18, 47, 0.35);
}
.site-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(255, 184, 28, 0) 75%);
  transform: scaleX(0);
  transform-origin: left;
  animation: headLine 1s var(--ease) 0.2s forwards;
}
@keyframes headLine {
  to {
    transform: scaleX(1);
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__plate {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
}
.brand__plate img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.16em;
  color: var(--muted-blue);
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9d7ef;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
  border-color: var(--amber);
}
.nav__cta {
  padding: 12px 18px;
  font-size: 10.5px;
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  align-items: center;
  justify-content: center;
  color: #fff;
}
.burger svg {
  width: 20px;
  height: 20px;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--blue-950);
  color: #fff;
  padding: 22px var(--gutter) 34px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.mobile-menu__close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
}
.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-ink);
}
.mobile-menu nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-ink);
}
.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-blue);
  letter-spacing: 0.1em;
}
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 10px;
}
.mobile-menu__contact {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-blue);
  letter-spacing: 0.06em;
  margin-top: 12px;
}
.mobile-menu__contact a {
  color: var(--amber);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  background: var(--blue-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: min(690px, 84vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 96px;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__slide {
  background-size: cover;
  background-position: center;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      95deg,
      #02122f 4%,
      rgba(3, 26, 69, 0.96) 40%,
      rgba(5, 46, 122, 0.78) 68%,
      rgba(3, 26, 69, 0.6) 100%
    ),
    radial-gradient(circle at 85% 20%, rgba(13, 138, 188, 0.35), transparent 50%);
}
.hero__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(40px, 5vw, 76px) clamp(26px, 3vw, 44px);
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  flex: none;
}
.hero h1 {
  animation: none !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 116%;
  font-size: clamp(2.7rem, 6.2vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
}
.hero h1 .mark {
  display: inline-block;
  color: var(--blue-950);
  background: var(--amber);
  padding: 0 0.1em;
  transform: rotate(-1.1deg);
  margin-block: 0.03em;
}
.hero__sub {
  max-width: 50ch;
  color: #c3d2ea;
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  line-height: 1.62;
  margin-bottom: 26px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
  max-width: 640px;
}
.hero__spec {
  padding: 13px 12px;
  border-right: 1px solid var(--line-ink);
}
.hero__spec:last-child {
  border-right: 0;
}
.hero__spec:first-child {
  padding-left: 0;
}
.hero__spec b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__spec b em {
  font-style: normal;
  color: var(--amber);
}
.hero__spec span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-blue);
}

/* Rail del slider */
.hero__rail {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(2, 18, 47, 0.72), rgba(2, 18, 47, 0.5));
  padding: 6px 18px 14px;
}
.hero__rail-item {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-ink);
  color: var(--muted-blue);
  transition: color 0.25s, padding 0.3s var(--ease);
}
.hero__rail-item > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.hero__rail-item b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__rail-item svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.hero__rail-item:hover {
  color: #fff;
}
.hero__rail-item.is-active {
  color: #fff;
  padding-left: 10px;
}
.hero__rail-item.is-active > span {
  color: var(--amber);
}
.hero__rail-item.is-active svg {
  opacity: 1;
  transform: none;
  color: var(--amber);
}
.hero__rail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}
.hero__counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-blue);
}
.hero__counter b {
  color: #fff;
  font-weight: 500;
}
.hero__arrows {
  display: flex;
  gap: 6px;
}
.hero__arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero__arrow svg {
  width: 16px;
  height: 16px;
}
.hero__arrow:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--blue-950);
}
.hero__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}
.hero__timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__timer i.is-running {
  animation: slideTimer 7s linear forwards;
}
@keyframes slideTimer {
  to {
    transform: scaleX(1);
  }
}

/* ============================================================
   FRANJA DE CONFIANZA
   ============================================================ */
.trust {
  background: var(--blue-700);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.trust__item:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust__item svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--amber);
}
.trust__item b {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust__item span {
  display: block;
  font-size: 12px;
  color: #c3d2ea;
  margin-top: 2px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section {
  padding-block: clamp(56px, 6.4vw, 96px);
  position: relative;
  scroll-margin-top: 90px;
}
.section--paper {
  background: var(--paper);
}
.section--paper2 {
  background: var(--paper-2);
}
.section--blue {
  background: var(--blue-800);
  color: #fff;
}
.section--deep {
  background: var(--blue-950);
  color: #fff;
}
.sec-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--blue .kicker,
.section--deep .kicker {
  color: var(--amber);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.kicker b {
  font-weight: 500;
  color: var(--blue);
}
.section--blue .kicker b,
.section--deep .kicker b {
  color: #c3d2ea;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 20ch;
}
.sec-head p {
  color: var(--muted);
  max-width: 46ch;
  padding-bottom: 4px;
}
.section--blue .sec-head p,
.section--deep .sec-head p {
  color: var(--muted-blue);
}
.sec-head__aside {
  justify-self: end;
}

/* ============================================================
   CATÁLOGO
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filters button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 13px;
  border: 1px solid rgba(5, 46, 122, 0.22);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover {
  border-color: var(--blue-800);
  color: var(--blue-800);
}
.filters button[aria-pressed="true"] {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
}
.filters button span {
  color: var(--amber);
  margin-left: 6px;
}
.products {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.3vw, 18px);
}
.card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid rgba(5, 46, 122, 0.14);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s,
    border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 70, 175, 0.55);
  box-shadow: 8px 8px 0 rgba(8, 70, 175, 0.12);
}
.card--feature,
.card--wide {
  grid-column: span 4;
}
.card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background-color: #fff;
  background-image: radial-gradient(rgba(8, 70, 175, 0.13) 1px, transparent 1px);
  background-size: 13px 13px;
  border-bottom: 1px solid rgba(5, 46, 122, 0.1);
  overflow: hidden;
}
.card__thumb img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__thumb img {
  transform: scale(1.05);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--amber);
  color: var(--blue-950);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.badge--cyan {
  background: var(--cyan);
  color: #fff;
}
.sku {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 7px;
}
.card__body {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(18px, 0.9vw + 14px, 22px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}
.card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
.card__foot {
  margin-top: auto;
  border-top: 1px solid rgba(5, 46, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: #fbfcff;
}
.card__link {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  border-bottom: 1px solid transparent;
}
.card__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}
.card__link:hover {
  border-color: var(--blue);
}
.card__link:hover svg {
  transform: translateX(3px);
}
.card__wa {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--blue-950);
  padding: 7px 10px;
  border: 1px solid var(--amber);
}
.card__wa svg {
  width: 12px;
  height: 12px;
}
.card__wa:hover {
  background: var(--amber-deep);
  border-color: var(--blue-900);
}
.products__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.products__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SOLUCIONES
   ============================================================ */
.solutions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.solution {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
}
.solution:hover {
  background: #fff;
  color: var(--blue-900);
  transform: translateY(-4px);
}
.solution__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 26px;
}
.solution:hover .solution__num {
  color: var(--blue);
}
.solution svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  stroke: currentColor;
  fill: none;
}
.solution h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.solution p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #c3d2ea;
  margin-bottom: 14px;
}
.solution:hover p {
  color: var(--muted);
}
.solution__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
}
.solution:hover .solution__link {
  color: var(--blue);
}
.solution__link svg {
  width: 12px;
  height: 12px;
  margin: 0;
}

/* ============================================================
   INGENIERÍA / FICHA
   ============================================================ */
.engineering {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.engineering__media {
  position: relative;
}
.plate {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  border: 1px solid rgba(5, 46, 122, 0.22);
  box-shadow: 14px 14px 0 rgba(8, 70, 175, 0.16);
}
.plate__head,
.plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate__head {
  padding-bottom: 9px;
  padding-right: 58px;
  border-bottom: 1px solid var(--line);
}
.plate__foot {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.plate__foot b {
  color: var(--blue);
  font-weight: 500;
}
.plate__img {
  position: relative;
  margin: 12px 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background-color: #fff;
  background-image: radial-gradient(rgba(8, 70, 175, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  overflow: hidden;
}
.plate__img img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.plate__seal {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--blue-950);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  border: 2px solid var(--blue-950);
  transform: rotate(-9deg);
}
.plate__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--blue);
  border-style: solid;
}
.plate__corner--tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.plate__corner--tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}
.plate__corner--bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}
.plate__corner--br {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}
.engineering__content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.engineering__content > p {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 24px;
}
.specs-list {
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.specs-list div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs-list span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.specs-list b {
  font-weight: 500;
  font-size: 14px;
}
.specs-list em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   POR QUÉ GRISMA
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5.5vw, 80px);
  align-items: start;
}
.why__intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.why__intro h2 em {
  font-style: normal;
  color: var(--amber);
}
.why__intro p {
  color: var(--muted-blue);
  max-width: 38ch;
  margin-bottom: 24px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-ink);
}
.stats div {
  padding: 16px 14px;
  border-right: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.stats div:nth-child(2n) {
  border-right: 0;
}
.stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}
.stats span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-blue);
  margin-top: 6px;
}
.why__rows {
  border-top: 1px solid var(--line-ink);
}
.why__row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-ink);
  transition: transform 0.35s var(--ease);
}
.why__row:hover {
  transform: translateX(7px);
}
.why__row .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--amber);
  padding-top: 5px;
}
.why__row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(19px, 1.3vw + 13px, 24px);
  line-height: 1.15;
  margin-bottom: 6px;
}
.why__row p {
  color: var(--muted-blue);
  font-size: 14px;
  max-width: 52ch;
}

/* ============================================================
   SECTORES
   ============================================================ */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sector {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.sector:hover {
  border-color: var(--blue);
  box-shadow: 6px 6px 0 rgba(8, 70, 175, 0.1);
  transform: translateY(-3px);
}
.sector__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 3px;
}
.sector h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.sector p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  border-top: 1px solid rgba(5, 46, 122, 0.18);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 180px 50px;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
  padding: 22px 0;
  border-bottom: 1px solid rgba(5, 46, 122, 0.18);
  transition: background 0.35s, padding 0.35s var(--ease);
}
.service__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.service p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 58ch;
}
.service__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(5, 46, 122, 0.18);
}
.service__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.service__arrow {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(5, 46, 122, 0.3);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s,
    transform 0.3s var(--ease);
}
.service__arrow svg {
  width: 18px;
  height: 18px;
}
.service:hover {
  background: rgba(255, 255, 255, 0.62);
  padding-inline: 16px;
}
.service:hover .service__thumb img {
  filter: grayscale(0);
  transform: scale(1.04);
}
.service:hover .service__arrow {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
  transform: translateX(3px);
}
.services__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.services__foot p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   PROCESO
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  counter-reset: step;
}
.step {
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  padding-top: 18px;
  position: relative;
}
.step:hover {
  border-top-color: var(--amber);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--amber);
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(19px, 1.3vw + 13px, 24px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.step p {
  color: #c3d2ea;
  font-size: 13px;
  line-height: 1.55;
}
.process__foot,
.solutions__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-ink);
}
.process__foot p,
.solutions__foot p {
  font-size: 13.5px;
  color: #c3d2ea;
  max-width: 56ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 0.5vw + 14px, 19px);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--muted);
  font-size: 14px;
  max-width: 78ch;
  padding: 0 0 20px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--amber);
  color: var(--blue-950);
  border-block: 2px solid var(--blue-950);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "GRISMA";
  position: absolute;
  right: -2%;
  bottom: -36%;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 22vw;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(3, 26, 69, 0.07);
  pointer-events: none;
  white-space: nowrap;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 5vw, 72px);
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 114%;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 17ch;
}
.cta__sub {
  font-size: clamp(14px, 0.5vw + 12px, 16.5px);
  line-height: 1.6;
  color: rgba(3, 26, 69, 0.75);
  max-width: 46ch;
  margin-top: 16px;
}
.cta__actions {
  justify-self: end;
  display: grid;
  gap: 10px;
  min-width: 250px;
}
.cta__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(3, 26, 69, 0.78);
}
.cta__phone svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-950);
  color: #fff;
  padding-top: clamp(44px, 5vw, 70px);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent 60%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.5vw, 50px);
  padding-bottom: 40px;
}
.footer__brand .brand__plate {
  display: inline-block;
  margin-bottom: 16px;
}
.footer__brand p {
  color: var(--muted-blue);
  font-size: 13px;
  max-width: 31ch;
  margin-bottom: 16px;
}
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer__badges span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-blue);
  border: 1px solid var(--line-ink);
  padding: 4px 7px;
}
.footer h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer li {
  margin-bottom: 9px;
}
.footer li a,
.footer address {
  color: #c3d2ea;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  transition: color 0.2s;
}
.footer li a:hover {
  color: var(--amber);
}
.footer__contact li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.footer__contact svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 4px;
  color: var(--amber);
}
.footer__bottom {
  border-top: 1px solid var(--line-ink);
  padding-block: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93a6c8;
}
.footer__bottom a {
  color: #a8b8d6;
}
.footer__bottom a:hover {
  color: var(--amber);
}

/* Barra móvil */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  grid-template-columns: 1fr 1fr;
  background: var(--blue-950);
  border-top: 2px solid var(--amber);
  padding: 8px;
  gap: 8px;
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mobile-bar a svg {
  width: 14px;
  height: 14px;
}
.mobile-bar .wa {
  background: var(--amber);
  color: var(--blue-950);
}
.mobile-bar .call {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Progreso */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 130;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.hero__content > * {
  animation: heroIn 0.85s var(--ease) both;
}
.hero__content > :nth-child(1) {
  animation-delay: 0.04s;
}
.hero__content > :nth-child(2) {
  animation-delay: 0.11s;
}
.hero__content > :nth-child(3) {
  animation-delay: 0.18s;
}
.hero__content > :nth-child(4) {
  animation-delay: 0.25s;
}
.hero__content > :nth-child(5) {
  animation-delay: 0.32s;
}
.hero__rail {
  animation: heroIn 0.9s var(--ease) 0.35s both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RENDIMIENTO
   ============================================================ */
/* Sin librerías, sin CDNs: fuentes e imágenes locales.
   Las imágenes declaran width/height para evitar CLS. */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .brand__tag {
    display: none;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
    padding-block: 44px 30px;
  }
  .hero {
    min-height: 0;
  }
  .hero__rail {
    align-self: stretch;
    border-top: 1px solid var(--line-ink);
  }
  .hero__rail-item {
    display: inline-grid;
    grid-template-columns: 24px 1fr;
    width: auto;
    border-bottom: 0;
    padding: 10px 14px 10px 0;
    margin-right: 8px;
  }
  .hero__rail-item svg {
    display: none;
  }
  .hero__rail-nav {
    border-top: 1px solid var(--line-ink);
  }
  .solutions {
    grid-template-columns: repeat(2, 1fr);
  }
  .engineering {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .engineering__media {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .why {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .sectors {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .sec-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }
  .sec-head__aside {
    justify-self: start;
  }
  .card,
  .card--feature,
  .card--wide {
    grid-column: span 6;
  }
  .cta__inner {
    grid-template-columns: 1fr;
  }
  .cta__actions {
    justify-self: start;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }
  .brand__plate img {
    height: 44px;
  }
  .topbar .topbar__mid,
  .topbar .topbar__actions {
    display: none;
  }
  .topbar {
    font-size: 9.5px;
  }
  .topbar .container {
    justify-content: flex-start;
    min-height: 32px;
  }
  .mobile-bar {
    display: grid;
  }
  body {
    padding-bottom: 64px;
  }
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust__item {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 12px 14px 0;
  }
  .trust__item:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 14px;
  }
  .trust__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .hero__specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__spec:nth-child(2) {
    border-right: 0;
  }
  .hero__spec:nth-child(1),
  .hero__spec:nth-child(2) {
    border-bottom: 1px solid var(--line-ink);
  }
  .hero__spec:nth-child(odd) {
    padding-left: 0;
  }
  .hero__spec:nth-child(3) {
    padding-left: 0;
  }
  .hero__spec {
    padding: 12px 10px;
  }
  .service {
    grid-template-columns: 40px 1fr 42px;
    align-items: start;
    gap: 14px;
  }
  .service__thumb {
    display: none;
  }
  .service__arrow {
    width: 42px;
    height: 42px;
    align-self: center;
  }
  .service h3 {
    font-size: clamp(20px, 5.2vw, 28px);
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__rail-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-ink);
  }
  .hero__rail-item b {
    font-size: 10px;
  }
  .hero__counter {
    display: none;
  }
  .solutions,
  .sectors,
  .process {
    grid-template-columns: 1fr;
  }
  .solution {
    min-height: 0;
  }
  .card,
  .card--feature,
  .card--wide {
    grid-column: span 12;
  }
  .filters button {
    padding: 7px 9px;
    font-size: 9px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .plate__seal {
    width: 56px;
    height: 56px;
    font-size: 8.5px;
    top: -12px;
    right: -8px;
  }
  .plate__head span:last-child {
    display: none;
  }
  .stats div {
    padding: 13px 11px;
  }
  .specs-list div {
    grid-template-columns: 28px 1fr;
  }
  .specs-list em {
    display: none;
  }
  .cta::before {
    font-size: 38vw;
  }
}

/* ============================================================
   MOVIMIENTO REDUCIDO / IMPRESIÓN
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__slide img {
    transform: none;
  }
}
@media print {
  .site-head,
  .mobile-bar,
  .hero__media,
  .hero__veil,
  .cta,
  .progress {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- Ajustes dinámicos GRISMA ---------- */
.site-head .brand__plate img,
.mobile-menu .brand__plate img,
.footer .brand__plate img {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
  max-height: 62px;
  height: 62px;
  width: auto;
}
.footer .brand__plate img { height: 56px; max-height: 56px; }
.mobile-menu .brand__plate img { height: 48px; max-height: 48px; }
@media (max-width: 900px) {
  .js .intro { display: none !important; }
  body.is-intro { overflow: auto; }
}

/* ---------- Páginas internas ---------- */
.page-hero {
  background: var(--blue-900);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0 clamp(38px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .5;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-blue); margin-bottom: 18px; }
.crumbs a:hover { color: var(--amber); }
.crumbs span { color: #fff; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; max-width: 18ch; }
.page-hero p { color: #c3d2ea; max-width: 58ch; margin-top: 14px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.catalog-toolbar form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.catalog-toolbar input, .catalog-toolbar select { min-height: 42px; border: 1px solid rgba(5,46,122,.25); background: #fff; color: var(--ink); padding: 9px 12px; font: inherit; font-size: 13px; }
.catalog-toolbar input { min-width: 220px; flex: 1; max-width: 360px; }
.catalog-toolbar button { min-height: 42px; }
.catalog-toolbar .count { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.pagination a, .pagination span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(5,46,122,.22); color: var(--blue-800); }
.pagination a:hover { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }
.pagination .current { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.pagination .dots { border: 0; }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }
.empty-state b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); margin-bottom: 8px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.card__blog, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1020px) { .catalog-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .catalog-grid, .blog-grid { grid-template-columns: 1fr; } .catalog-toolbar input { min-width: 0; max-width: none; } }

/* ---------- Ficha de producto ---------- */
.product { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__gallery { position: sticky; top: 100px; }
.product__main { background: #fff; border: 1px solid rgba(5,46,122,.16); aspect-ratio: 4 / 3; display: grid; place-items: center; background-image: radial-gradient(rgba(8,70,175,.13) 1px, transparent 1px); background-size: 14px 14px; }
.product__main img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product__thumbs button { width: 72px; height: 58px; border: 1px solid rgba(5,46,122,.2); background: #fff; padding: 4px; }
.product__thumbs button.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(8,70,175,.12); }
.product__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__info .kicker { margin-bottom: 12px; }
.product__info h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .96; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 12px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 18px; }
.product__meta b { color: var(--blue); font-weight: 500; }
.product__lead { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 56ch; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.product__specs { border-top: 1px solid var(--line); }
.product__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.product__specs span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legacy-content { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--text); }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 26px 0 10px; }
.legacy-content h1, .legacy-content h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.legacy-content h3 { font-size: 1.05rem; }
.legacy-content p { margin: 0 0 12px; color: var(--muted); }
.legacy-content ul, .legacy-content ol { margin: 0 0 16px 20px; color: var(--muted); }
.legacy-content li { margin-bottom: 5px; }
.legacy-content table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 13px; }
.legacy-content th, .legacy-content td { border: 1px solid rgba(5,46,122,.16); padding: 9px 11px; text-align: left; vertical-align: top; }
.legacy-content th { background: #eef3fb; font-weight: 600; }
.legacy-content img { max-width: 100%; height: auto; margin: 12px 0; }
.related { margin-top: clamp(44px, 6vw, 80px); }
.related h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 18px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product__gallery { position: static; } }
.crumbs--light { color: var(--muted); }
.crumbs--light a { color: var(--blue); }
.crumbs--light span { color: var(--ink); }

/* ---------- Contacto y CTA de sección ---------- */
.section-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-cta p { font-size: 14px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 14px; }
.contact-info p { color: var(--muted); margin-bottom: 20px; max-width: 42ch; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.contact-list > div > div { min-width: 0; word-break: normal; overflow-wrap: break-word; }
.contact-list svg { width: 16px; height: 16px; color: var(--blue); margin-top: 3px; }
.contact-list a { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.contact-form h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(5,46,122,.22); background: var(--paper); padding: 11px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255,184,28,.55); outline-offset: 1px; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { background: #fff3e0; border: 1px solid #f0b429; color: #6b4a00; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.form-error ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map { margin-top: 20px; border: 1px solid var(--line); min-height: 300px; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
.legacy-content--page { max-width: 880px; margin-top: 0; padding-top: 0; border-top: 0; }
.legacy-content--page > h2:first-child, .legacy-content--page > h3:first-child { margin-top: 0; }

/* ---------- Blog ---------- */
.post-cover { aspect-ratio: 16 / 8; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 26px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.post-title { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; max-width: 22ch; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.post-tags span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.25); padding: 5px 8px; color: #c3d2ea; }
.post-content { max-width: 880px; }
.post-content .legacy-content { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .post-cover { aspect-ratio: 16 / 10; } }
.catalog-grid > .card { grid-column: auto; }
.card--post .card__thumb { aspect-ratio: 16 / 9; background: #fff; }
.card--post .card__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.card--post h3 a:hover { color: var(--blue); }
.post-title { font-size: clamp(1.9rem, 3.5vw, 3rem); max-width: 28ch; }

/* ---------- Menú dinámico desde menu_botones ---------- */
.nav__dd { position: relative; display: inline-flex; align-items: center; }
.nav__dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #c9d7ef;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nav__dd-btn svg { width: 12px; height: 12px; transition: transform .25s; }
.nav__dd:hover .nav__dd-btn,
.nav__dd:focus-within .nav__dd-btn,
.nav__dd.is-active .nav__dd-btn { color: #fff; border-color: var(--amber); }
.nav__dd:hover .nav__dd-btn svg,
.nav__dd:focus-within .nav__dd-btn svg { transform: rotate(180deg); }
.nav__dd-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--blue-950);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 45px rgba(0,0,0,.35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .25s var(--ease);
  z-index: 70;
}
.nav__dd:hover .nav__dd-panel,
.nav__dd:focus-within .nav__dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav__dd-panel .dd-title {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 10px 10px 6px;
  margin: 0;
}
.nav__dd-panel .dd-title:not(:first-child) { border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; }
.nav__dd-panel a {
  display: block;
  padding: 8px 10px;
  color: #c9d7ef;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 0;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.nav__dd-panel a:hover { background: rgba(255,255,255,.06); color: var(--amber); border-left-color: var(--amber); }

/* Menú móvil dinámico */
.mobile-menu details { border-bottom: 1px solid var(--line-ink); }
.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: -.02em;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-family: var(--font-mono); font-size: 10px; color: var(--muted-blue); letter-spacing: .1em; }
.mobile-menu details a {
  display: block;
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #b9c8e2;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
.mobile-menu details a:hover { color: var(--amber); }
.mobile-menu details a:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
@media (max-width: 1200px) {
  .nav__links a, .nav__dd-btn { font-size: 9.5px; }
  .nav__links { gap: 12px; }
}

/* ---------- Media en páginas del CMS ---------- */
.page-hero--media { background: var(--blue-950); min-height: 420px; display: flex; align-items: center; }
.page-hero__bg, .page-hero__slides { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg { background-size: cover; background-position: center; }
.page-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.page-hero__slide.is-active { opacity: 1; }
.page-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(2,18,47,.94) 5%, rgba(3,26,69,.82) 48%, rgba(8,70,175,.38) 100%); }
.page-hero--media .container { position: relative; z-index: 2; }
.page-hero__dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.page-hero__dots button { width: 26px; height: 3px; background: rgba(255,255,255,.35); border: 0; padding: 0; }
.page-hero__dots button.is-active { background: var(--amber); }
.page-inline-media { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-width: 880px; margin-bottom: 30px; }
.page-inline-media figure { margin: 0; border: 1px solid var(--line); background: #fff; }
.page-inline-media img { width: 100%; height: auto; display: block; }
.page-gallery { padding-block: clamp(48px, 6vw, 86px); background: var(--paper-2); }
.page-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.page-gallery__grid a { display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.page-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.page-gallery__grid a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .page-inline-media { grid-template-columns: 1fr; } .page-gallery__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .page-gallery__grid { grid-template-columns: 1fr; } }
.mobile-menu summary { position: relative; padding-right: 26px; }
.mobile-menu summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 18px; font-weight: 400; color: var(--amber); }
.mobile-menu details[open] summary::after { content: "–"; }
.filters__select select {
  min-height: 36px;
  padding: 8px 34px 8px 13px;
  border: 1px solid rgba(5, 11, 24, 0.22);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  max-width: 300px;
}
.filters__select select:focus { outline: 3px solid rgba(255,184,28,.55); outline-offset: 1px; }
.intro__inner img { filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }



/* ---------- Navbar clara para logo azul ---------- */
.site-head {
  background: #F7F4EC;
  border-bottom: 1px solid rgba(3, 26, 69, 0.12);
}
.site-head.is-scrolled {
  box-shadow: 0 10px 30px rgba(3, 26, 69, 0.12);
}
.site-head .brand__plate img {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}
.site-head .nav__links a,
.site-head .nav__dd-btn {
  color: var(--blue-950);
}
.site-head .nav__links a:hover,
.site-head .nav__links a[aria-current="page"],
.site-head .nav__dd:hover .nav__dd-btn,
.site-head .nav__dd:focus-within .nav__dd-btn,
.site-head .nav__dd.is-active .nav__dd-btn {
  color: var(--blue);
  border-color: var(--amber);
}
.site-head .nav__dd-panel {
  background: #fff;
  border-color: rgba(3, 26, 69, 0.14);
  box-shadow: 0 16px 40px rgba(3, 26, 69, 0.16);
}
.site-head .nav__dd-panel a {
  color: var(--blue-950);
}
.site-head .nav__dd-panel a:hover {
  background: rgba(8, 70, 175, 0.06);
  color: var(--blue);
}
.site-head .nav__dd-panel .dd-title {
  color: var(--blue);
}
.site-head .nav__dd-panel .dd-title:not(:first-child) {
  border-color: rgba(3, 26, 69, 0.12);
}
.site-head .burger {
  color: var(--blue-950);
  border-color: rgba(3, 26, 69, 0.24);
}

/* Menú móvil claro */
.mobile-menu {
  background: #F7F4EC;
  color: var(--blue-950);
}
.mobile-menu nav,
.mobile-menu details {
  border-color: rgba(3, 26, 69, 0.12);
}
.mobile-menu nav a {
  color: var(--blue-950);
}
.mobile-menu nav a span,
.mobile-menu summary span,
.mobile-menu__contact {
  color: #52657F;
}
.mobile-menu details a {
  color: #14345F;
  border-bottom-color: rgba(3, 26, 69, 0.08);
}
.mobile-menu details a:last-child {
  border-bottom-color: rgba(3, 26, 69, 0.14);
}
.mobile-menu details a:hover,
.mobile-menu__contact a {
  color: var(--blue);
}
.mobile-menu summary {
  color: var(--blue-950);
}
.mobile-menu summary::after {
  color: var(--blue);
}
.mobile-menu__close {
  color: var(--blue-950);
  border-color: rgba(3, 26, 69, 0.24);
}

/* Intro clara para logo azul */
.js .intro {
  background: #F7F4EC;
}
.js .intro::before {
  background-image: linear-gradient(to right, rgba(3, 26, 69, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(3, 26, 69, 0.05) 1px, transparent 1px);
}
.intro__tag,
.intro__skip {
  color: var(--blue-900);
}
.intro__skip {
  border-color: rgba(3, 26, 69, 0.24);
}

/* El footer mantiene el logo blanco por CSS, como se pidió */
.footer .brand__plate img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}

/* ---------- Contenido CMS limpio ---------- */
.legacy-content {
  max-width: 920px;
}
.legacy-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--blue-950);
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legacy-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legacy-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-950);
  margin: 28px 0 8px;
}
.legacy-content p,
.legacy-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.legacy-content p {
  margin: 0 0 14px;
}
.legacy-content strong {
  color: var(--blue-950);
  font-weight: 600;
}
.legacy-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legacy-content a:hover {
  color: var(--blue-950);
}
.legacy-content ul,
.legacy-content ol {
  margin: 0 0 18px 20px;
  padding-left: 4px;
}
.legacy-content li {
  margin-bottom: 7px;
}
.legacy-content table {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 26px;
  border-collapse: collapse;
  font-size: 13px;
}
.legacy-content th,
.legacy-content td {
  padding: 10px 12px;
  line-height: 1.55;
  vertical-align: top;
}
.legacy-content th {
  color: var(--blue-950);
}
.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.legacy-content img {
  border: 1px solid var(--line);
}

.legacy-content ul {
  list-style: disc outside;
  padding-left: 24px;
}
.legacy-content ol {
  list-style: decimal outside;
  padding-left: 24px;
}
.legacy-content li {
  padding-left: 3px;
}
.legacy-content li > p {
  margin: 4px 0 0;
}

/* ---------- Sistema visual para contenido CMS ---------- */
.legacy-content {
  max-width: 980px;
  margin-top: 48px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  box-shadow: 0 18px 44px rgba(3, 26, 69, 0.06);
  counter-reset: cms-section;
}
.legacy-content h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.028em;
  text-transform: uppercase;
  color: var(--blue-950);
  margin: 38px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legacy-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legacy-content h2::before {
  counter-increment: cms-section;
  content: "0" counter(cms-section);
  flex: none;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--amber);
}
.legacy-content h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--blue-950);
  margin: 30px 0 9px;
  padding-left: 14px;
}
.legacy-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 4px;
  height: 1.05em;
  background: var(--amber);
}
.legacy-content > p:first-of-type {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}
.legacy-content p,
.legacy-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.legacy-content p {
  margin: 0 0 14px;
}
.legacy-content strong {
  color: var(--blue-950);
  font-weight: 600;
}
.legacy-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legacy-content a:hover {
  color: var(--blue-950);
}
.legacy-content ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 7px 20px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.legacy-content ul > li {
  position: relative;
  margin: 0;
  padding: 5px 0 5px 25px;
  color: var(--text);
}
.legacy-content ul > li::before {
  content: "✓";
  position: absolute;
  left: 1px;
  top: 4px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}
.legacy-content ol {
  list-style: decimal outside;
  margin: 0 0 20px 20px;
  padding-left: 6px;
}
.legacy-content ol > li {
  margin-bottom: 7px;
  color: var(--text);
}
.legacy-content table {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 28px;
  border: 1px solid rgba(5, 46, 122, .16);
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.legacy-content th,
.legacy-content td {
  padding: 10px 12px;
  line-height: 1.55;
  vertical-align: top;
  border: 1px solid rgba(5, 46, 122, .14);
}
.legacy-content th {
  background: var(--blue-950);
  color: #fff;
  font-weight: 600;
  text-align: left;
}
.legacy-content tbody tr:nth-child(even) td {
  background: #f6f8fc;
}
.legacy-content td strong,
.legacy-content th strong {
  color: inherit;
}
.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.legacy-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
}
@media (max-width: 700px) {
  .legacy-content {
    padding: 22px 18px;
    margin-top: 32px;
  }
  .legacy-content ul {
    grid-template-columns: 1fr;
  }
  .legacy-content table {
    font-size: 12px;
  }
  .legacy-content th,
  .legacy-content td {
    padding: 9px 10px;
  }
}

/* ---------- Ajustes de contenido por página ---------- */
.legacy-content {
  margin-left: auto;
  margin-right: auto;
}
.legacy-content--page-23 {
  max-width: 1160px;
}
.legacy-content--page-23 > p:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.legacy-content--page-23 p > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 8px 8px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--blue-950);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.legacy-content--page-23 p > a + a {
  background: transparent;
  border-color: var(--blue-950);
}
.legacy-content--page-23 p > a:hover {
  background: var(--blue-950);
  border-color: var(--blue-950);
  color: #fff;
}
@media (max-width: 700px) {
  .legacy-content--page-23 p > a {
    display: flex;
    width: 100%;
    margin-right: 0;
    white-space: normal;
  }
}
