/* ============================================================
   AXYZ METROLOGY — Versión 2 · "Laboratorio HUD" (dark tech)
   Paleta corporativa (Manual A.04):
   Navy #283266 · Teal #006975 · Orange #EE5340
   Montserrat (editorial) + Share Tech Mono (acentos técnicos)
   ============================================================ */

:root {
  --navy: #283266;
  --navy-mid: #1b2350;
  --bg: #0d1230;
  --bg-deep: #090d24;
  --teal: #009aab;
  --teal-brand: #006975;
  --orange: #EE5340;
  --orange-dark: #d43f2d;
  --white: #ffffff;
  --text: #c6cbe4;
  --text-dim: #8890b5;
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .04);
  --radius: 12px;
  --nav-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], article[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.mono { font-family: 'Share Tech Mono', 'Consolas', monospace; letter-spacing: .04em; }

/* ============ TEXTURA AXYZ GLOBAL ============
   Retícula de isotipos (Textura Axyz.pdf) fija detrás de todo
   el sitio + rejilla técnica tipo blueprint. */

.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='150' viewBox='0 0 168 150'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='2'%3E%3Cpath d='M14 12h56l-21 30 21 30H14l21-30z'/%3E%3Cpath d='M32 30l20 24M52 30L32 54'/%3E%3Cpath d='M98 87h56l-21 30 21 30H98l21-30z'/%3E%3Cpath d='M116 105l20 24M136 105l-20 24'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 168px 150px, 56px 56px, 56px 56px;
}

body > section, body > footer, body > header { position: relative; z-index: 1; }

/* ============ UTILIDADES ============ */

.glow-orange {
  color: var(--orange);
  text-shadow: 0 0 24px rgba(238, 83, 64, .55);
}
.glow-teal {
  color: var(--teal);
  text-shadow: 0 0 24px rgba(0, 154, 171, .5);
}

h1, h2, h3 { color: var(--white); font-weight: 800; line-height: 1.16; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }

.section { padding: 110px 0; border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head__num {
  display: block;
  color: var(--orange);
  font-size: .95rem;
  margin-bottom: .6rem;
}
.section-head p { margin-top: .9rem; color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: .85em 1.9em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 24px -4px rgba(238, 83, 64, .65);
}
.btn--orange:hover { background: var(--orange-dark); box-shadow: 0 0 34px -4px rgba(238, 83, 64, .85); }
.btn--ghost {
  border-color: rgba(0, 154, 171, .6);
  color: var(--teal);
}
.btn--ghost:hover { background: rgba(0, 154, 171, .12); box-shadow: 0 0 22px -6px rgba(0, 154, 171, .7); }
.btn--block { width: 100%; justify-content: center; }
.btn--nav { padding: .6em 1.4em; font-size: .85rem; }

/* ============ REVEAL ============ */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hud__scan, .terminal__cursor span, .nav__scanline { animation: none !important; }
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 13, 36, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo img { height: 42px; width: auto; }

.nav__scanline {
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: scanline 5s linear infinite;
  opacity: .8;
}
@keyframes scanline {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links > a:not(.btn) {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  transition: color .25s ease;
}
.nav__links > a:not(.btn) .mono { color: var(--orange); font-size: .72rem; margin-right: .15em; }
.nav__links > a:not(.btn):hover,
.nav__links > a.is-active { color: var(--white); text-shadow: 0 0 14px rgba(255,255,255,.4); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span { width: 26px; height: 2px; background: var(--white); transition: transform .3s ease, opacity .3s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -15%;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 105, 117, .28) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -35%; left: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 83, 64, .14) 0%, transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__kicker { color: var(--teal); font-size: .85rem; margin-bottom: 1.1rem; }
.hero__sub { margin: 1.3rem 0 1.9rem; color: var(--text-dim); max-width: 33em; }
.hero__sub strong { color: var(--white); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.8rem; color: var(--white); font-weight: 400; line-height: 1.1; }
.hero__stats li > span { font-size: .76rem; color: var(--text-dim); }

/* Marco HUD para la foto */
.hud {
  position: relative;
  padding: 14px;
}
.hud img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 6px;
  filter: saturate(1.05);
}
.hud figcaption {
  margin-top: .7rem;
  font-size: .74rem;
  color: var(--teal);
}
.hud__corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid var(--orange);
  filter: drop-shadow(0 0 6px rgba(238, 83, 64, .8));
}
.hud__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hud__scan {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 240, .9), transparent);
  box-shadow: 0 0 14px rgba(0, 220, 240, .7);
  animation: hudscan 4.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes hudscan {
  0%, 100% { top: 20px; }
  50% { top: calc(100% - 60px); }
}

.hero__chip {
  position: absolute;
  bottom: 40px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(13, 18, 48, .9);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: .8rem 1.2rem;
  backdrop-filter: blur(8px);
}
.hero__chip img { height: 34px; width: auto; }
.hero__chip strong { display: block; color: var(--white); font-size: .88rem; }
.hero__chip span { font-size: .72rem; color: var(--teal); }

.hero__media { position: relative; }

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  color: var(--text-dim);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ NOSOTROS ============ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.about__text p { margin-bottom: 1.4rem; }
.about__text strong { color: var(--white); }

.terminal {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem 1.5rem;
  position: relative;
  font-size: .84rem;
  color: var(--teal);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
.terminal__dot {
  position: absolute;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .9;
}
.terminal__dot:nth-child(1) { left: 16px; }
.terminal__dot:nth-child(2) { left: 34px; background: #e8b93e; }
.terminal__dot:nth-child(3) { left: 52px; background: #3ecf6f; }
.terminal p { margin-bottom: .5rem; }
.terminal__hl { color: var(--white); font-size: .92rem; }
.terminal__hl strong { color: var(--orange); font-weight: 400; text-shadow: 0 0 14px rgba(238, 83, 64, .6); }
.terminal__cursor span { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.about__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 83, 64, .6);
  box-shadow: 0 0 30px -10px rgba(238, 83, 64, .45);
}
.card svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: .9rem; }
.card h3 { font-size: .98rem; margin-bottom: .5rem; }
.card p { font-size: .84rem; color: var(--text-dim); }

/* ============ DROPDOWN DE SERVICIOS EN NAV ============ */

.nav__group { position: relative; }
.nav__group-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color .25s ease;
}
.nav__group-link .mono { color: var(--orange); font-size: .72rem; margin-right: .15em; }
.nav__group-link:hover { color: var(--white); }
.nav__drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  background: rgba(9, 13, 36, .97);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .8);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav__group:hover .nav__drop,
.nav__group:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__drop a {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  padding: .55em .9em;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav__drop a .mono { color: var(--orange); font-size: .72rem; margin-right: .5em; }
.nav__drop a:hover { background: rgba(0, 154, 171, .14); color: var(--white); }

/* ============ SERVICIOS: FILAS POR PÁGINA DEL BROCHURE ============ */

.svc-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.svc-row:last-of-type { border-bottom: 0; }
.svc-row--flip .svc-row__body { order: 2; }
.svc-row--flip .hud--row { order: 1; }

.svc-row__num { display: block; color: var(--orange); font-size: .85rem; margin-bottom: .7rem; }
.svc-row__num em { font-style: normal; color: var(--teal); }
.svc-row h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.svc-row__text { color: var(--text-dim); margin-bottom: .9rem; max-width: 36em; }
.svc-row__text strong { color: var(--white); }

.qa2 { margin-bottom: 1.2rem; }
.qa2 h4 { font-size: .8rem; font-weight: 400; color: var(--teal); margin-bottom: .35rem; }
.qa2 p { font-size: .92rem; color: var(--text-dim); max-width: 36em; }
.qa2 p strong { color: var(--white); }

.hud--row img { max-height: 400px; }
.hud--box {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.5rem;
  text-align: center;
}
.hud--box svg { width: 100px; height: 100px; color: var(--teal); }
.hud--box p { font-size: .8rem; color: var(--text-dim); }

/* AJUSTE · MANTENIMIENTO · REPARACIÓN */
.triple { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.triple span {
  font-family: 'Share Tech Mono', monospace;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(238, 83, 64, .6);
  border-radius: 6px;
  padding: .6em 1.3em;
  background: rgba(238, 83, 64, .08);
}

/* ============ SERVICIOS (grid legado) ============ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass);
  transition: transform .35s ease, border-color .35s ease;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  transform: scale(1.06);
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 18, 48, .55) 0%, rgba(9, 13, 36, .92) 75%);
  opacity: 0;
  transition: opacity .45s ease;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(0, 154, 171, .65); }
.svc:hover::before { opacity: 1; transform: scale(1); }
.svc:hover::after { opacity: 1; }

.svc__num {
  color: var(--orange);
  font-size: .8rem;
  margin-bottom: 1rem;
}
.svc h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.svc__tag { font-size: .72rem; color: var(--teal); margin-bottom: .8rem; }
.svc > p:last-child { font-size: .85rem; color: var(--text-dim); margin-top: auto; }
.svc:hover > p:last-child { color: var(--text); }

/* Ticker de magnitudes */
.mag { margin-top: 3rem; }
.mag__label { color: var(--orange); font-size: .8rem; margin-bottom: 1rem; }

.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  gap: .8rem;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker__track--slow { animation-duration: 50s; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  white-space: nowrap;
  font-family: 'Share Tech Mono', monospace;
  font-size: .85rem;
  color: var(--white);
  background: rgba(0, 105, 117, .18);
  border: 1px solid rgba(0, 154, 171, .45);
  border-radius: 6px;
  padding: .55em 1.3em;
}
.ticker--clients { padding: .4rem 0 2.6rem; }
.ticker--clients .ticker__track span {
  display: flex;
  align-items: center;
  background: var(--white);
  border-color: rgba(255, 255, 255, .3);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 12px;
  padding: .75em 1.3em;
}
.ticker--clients .ticker__track span img {
  height: 38px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
}
.ticker--clients .ticker__text { min-height: 38px; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker { mask-image: none; -webkit-mask-image: none; }
}

/* ============ MARCAS ============ */

.brands__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
}
.panel h3 { font-size: .95rem; color: var(--teal); font-weight: 400; margin-bottom: 1.3rem; }
.panel p { font-size: .86rem; color: var(--text-dim); margin-top: 1.2rem; }

.panel__badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.badge {
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55em 1.2em;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.badge:hover {
  border-color: var(--orange);
  box-shadow: 0 0 18px -6px rgba(238, 83, 64, .7);
  transform: translateY(-3px);
}
.badge--lg { font-size: 1.1rem; padding: .7em 1.6em; }

/* Tarjetas blancas con los logotipos oficiales (legibles sobre fondo oscuro) */
.brand-logo {
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: .85rem 1.4rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 26px -8px rgba(238, 83, 64, .7);
}
.brand-logo img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.brand-logo--lg { padding: 1.2rem 2rem; }
.brand-logo--lg img { height: 48px; max-width: 220px; }

/* Imágenes de producto y foto del panel de venta */
.panel__products {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 1.8rem;
}
.panel__products img {
  max-height: 230px;
  width: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6));
}
.panel__photo {
  margin-top: 1.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  width: 100%;
  object-fit: cover;
  max-height: 260px;
}

/* Trío de fotos de Ajuste (pág. 7 del brochure) */
.triple--photos { gap: 1rem; }
.triple--photos figure { flex: 1 1 130px; max-width: 180px; text-align: center; }
.triple--photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.triple--photos figcaption {
  margin-top: .55rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--orange);
}

/* Tarjeta blanca para el render CAD */
.cad-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1.2rem;
  max-width: 400px;
}
.cad-card img { width: 100%; height: auto; }

/* ============ CLIENTES / CTA ============ */

.cta-banner {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(40, 50, 102, .5), rgba(0, 105, 117, .25));
  padding: 2.4rem 2.6rem;
}
.cta-banner__label { color: var(--teal); font-size: .74rem; margin-bottom: .5rem; }
.cta-banner h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

/* ============ FICHA DE MAGNITUD (modal) ============ */

.magchips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.magchips li {
  font-family: 'Share Tech Mono', monospace;
  font-size: .82rem;
  color: var(--white);
  background: rgba(0, 105, 117, .18);
  border: 1px solid rgba(0, 154, 171, .45);
  border-radius: 6px;
  padding: .45em 1.1em;
  cursor: pointer;
  user-select: none;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.magchips li:hover {
  background: rgba(238, 83, 64, .2);
  border-color: var(--orange);
  box-shadow: 0 0 16px -6px rgba(238, 83, 64, .8);
}
.magchips li:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.magchips__hint { font-size: .72rem; color: var(--teal); margin-top: .8rem; }

.magmodal {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(9, 13, 36, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.magmodal.is-open { display: flex; }
.magmodal__box {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  width: min(880px, 100%);
  max-height: 88vh;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
}
.magmodal__box > .hud__corner { z-index: 3; }
.magmodal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.magmodal__close:hover { background: var(--orange); }

.magmodal__media {
  position: relative;
  min-height: 260px;
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--bg-deep) 100%);
}
.magmodal__media > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--white);
  padding: 14px;
}
.magmodal__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--teal);
  font-size: .82rem;
}
.magmodal__placeholder img { height: 60px; width: auto; opacity: .8; }

.magmodal__info { padding: 2.2rem 2rem; overflow-y: auto; }
.magmodal__kicker { font-size: .74rem; color: var(--teal); }
.magmodal__info h3 { font-size: 1.6rem; margin: .35rem 0 .8rem; }
.magmodal__lead { font-size: .88rem; color: var(--text-dim); margin-bottom: .9rem; }
.magmodal__list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.4rem;
}
.magmodal__list li {
  font-size: .78rem;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .35em 1em;
}

@media (max-width: 720px) {
  .magmodal__box { grid-template-columns: 1fr; overflow-y: auto; display: block; }
  .magmodal__media { min-height: 180px; height: 200px; }
}

/* ============ GALERÍA ============ */

.gallery__hint { color: var(--teal); font-size: .8rem; }

.gallery__grid {
  columns: 4 240px;
  column-gap: 1rem;
}
.gallery__grid img {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
  border-radius: 6px;
  break-inside: avoid;
  cursor: zoom-in;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gallery__grid img:hover {
  transform: scale(1.02);
  border-color: var(--orange);
  box-shadow: 0 0 26px -8px rgba(238, 83, 64, .6);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(9, 13, 36, .96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox > img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, box-shadow .2s ease;
}
.lightbox button:hover { background: var(--orange); box-shadow: 0 0 20px -4px rgba(238, 83, 64, .8); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ============ CONTACTO ============ */

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}

.contact__list { display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(238, 83, 64, .5);
  color: var(--orange);
  background: rgba(238, 83, 64, .08);
}
.contact__icon--wa { border-color: rgba(37, 211, 102, .5); color: #25D366; background: rgba(37, 211, 102, .08); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__list strong { display: block; color: var(--white); font-size: .95rem; }
.contact__list span, .contact__list a { color: var(--text-dim); font-size: .88rem; }
.contact__list a:hover { color: var(--orange); }

.contact__panel {
  position: relative;
  padding: 2.8rem 2.4rem;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
}
.contact__logo { max-width: 190px; margin: 0 auto 1.2rem; }
.contact__tagline { color: var(--teal); font-size: .8rem; margin-bottom: 1rem; }
.contact__panel > p:not(.mono) { font-size: .88rem; color: var(--text-dim); font-style: italic; margin-bottom: 1.8rem; }

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 2.2rem 0;
  text-align: center;
  font-size: .84rem;
  color: var(--text-dim);
}
.footer__iso { height: 40px; width: auto; margin: 0 auto .9rem; opacity: .85; }
.footer__small { margin-top: .4rem; font-size: .72rem; color: rgba(255, 255, 255, .3); }

/* ============ BOTÓN SUBIR AL INICIO ============ */

.totop {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(238, 83, 64, .6);
  display: grid;
  place-items: center;
  background: rgba(13, 18, 48, .9);
  color: var(--orange);
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease, box-shadow .25s ease;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 24px -6px rgba(238, 83, 64, .8);
}
.totop svg { width: 22px; height: 22px; }

/* ============ WHATSAPP FAB ============ */

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 0 30px -6px rgba(37, 211, 102, .8);
  transition: transform .25s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ============================================================
   ACABADO METÁLICO (petición del cliente)
   Titulares y números en acero cepillado, bordes con destello
   metálico y resplandores fríos. El naranja de marca se mantiene
   como acento; el teal queda en los detalles pequeños.
   ============================================================ */

:root {
  --steel-hi: #ffffff;
  --steel: #c3ccda;
  --steel-mid: #97a3b8;
  --steel-edge: rgba(195, 204, 218, .22);
}

/* Titulares en acero cepillado */
h1, h2 {
  background: linear-gradient(180deg, #ffffff 0%, #dde3ec 42%, #98a4b8 55%, #eef2f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Las palabras acentuadas conservan su color de marca */
.glow-orange {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--orange);
}
/* El acento secundario pasa de teal a plata pulida */
.glow-teal {
  background: linear-gradient(180deg, #ffffff 0%, #cfd7e2 45%, #8e9ab0 58%, #e6ebf2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(200, 214, 235, .35));
}

/* Números de estadísticas metálicos */
.hero__stats strong {
  background: linear-gradient(180deg, #ffffff 0%, #d6dde7 45%, #93a0b5 58%, #eaeef5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bordes con destello acero */
.card, .panel, .terminal, .contact__panel, .svc,
.about__card, .brand-logo, .magmodal__box {
  border-color: var(--steel-edge);
}
.card:hover {
  border-color: rgba(220, 228, 240, .55);
  box-shadow: 0 0 30px -10px rgba(195, 210, 230, .35);
}
.panel { border-top-color: var(--orange); }

/* Resplandor de fondo más frío (acero) en el hero */
.hero::before {
  background: radial-gradient(circle, rgba(140, 160, 190, .22) 0%, transparent 65%);
}

/* Botón fantasma en acero */
.btn--ghost {
  border-color: rgba(195, 204, 218, .55);
  color: #e3e9f1;
}
.btn--ghost:hover {
  background: rgba(195, 204, 218, .1);
  box-shadow: 0 0 22px -6px rgba(195, 204, 218, .55);
  color: #fff;
}

/* Chips de magnitudes y ticker con marco acero */
.magchips li,
.ticker__track span {
  border-color: rgba(195, 204, 218, .35);
  background: rgba(195, 204, 218, .08);
}
.magchips li:hover {
  border-color: var(--orange);
  background: rgba(238, 83, 64, .18);
}

/* Divisores de sección y filas de servicio */
.section { border-top-color: var(--steel-edge); }
.svc-row { border-bottom-color: rgba(195, 204, 218, .18); }

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .hero__grid, .about__grid, .contact__grid, .brands__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; }
  .hero__chip { left: 10px; }
  .hero__scroll { display: none; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-deep);
    padding: 1.4rem 6%;
    gap: .2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: .8em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }
  .nav__burger { display: flex; }
  .about__cards { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .hero__stats { gap: 1.4rem; }
  .cta-banner { justify-content: center; text-align: center; }
  /* Submenú de servicios expandido en móvil */
  .nav__group-link { display: flex; justify-content: space-between; padding: .8em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__group-link svg { display: none; }
  .nav__drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 .4rem .8rem;
    min-width: 0;
    background: transparent;
  }
  .svc-row, .svc-row--flip { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.4rem 0; }
  .svc-row--flip .svc-row__body { order: 1; }
  .svc-row--flip .hud--row { order: 0; }
}
