/* ============ SOSIN — Tech/Futurista ============ */

:root {
  --bg-0: #06040a;
  --bg-1: #0d080f;
  --bg-2: #1a0c14;
  --line: rgba(212, 168, 87, 0.12);
  --line-strong: rgba(88, 231, 255, 0.24);
  --ink-0: #f3ece8;
  --ink-1: #c9bdb9;
  --ink-2: #897978;
  --ink-3: #4f4243;
  --accent: #b9304a;        /* vinotinto — marca */
  --accent-soft: #b9304a33;
  --gold: #d4a857;          /* dorado laurel — marca */
  --gold-soft: #d4a85733;
  /* Tech accent — cian instrumental (HUD / datos / hairlines) */
  --tech: #58e7ff;
  --tech-soft: rgba(88, 231, 255, 0.22);
  --tech-dim: rgba(88, 231, 255, 0.55);
  --blue: #58e7ff;
  --blue-soft: rgba(88, 231, 255, 0.20);
  --cyan: #58e7ff;
  --danger: #ff5757;
  --ok: #39e0a8;
  --radius: 14px;
  --maxw: 1320px;
  /* Tipografía (controlable vía Tweaks) */
  --font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;
  /* Escalar de intensidad de efectos (Tweaks) */
  --fx: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(185,48,74,0.12), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(212,168,87,0.06), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(185,48,74,0.08), transparent 70%),
    var(--bg-0);
  min-height: 100vh;
}

/* ============ 3D canvas layer ============ */

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ============ Featured emblem ============ */

.emblem-stage {
  position: fixed;
  top: 50%;
  right: -6%;
  width: min(78vh, 820px);
  z-index: 2;
  pointer-events: none;
  perspective: 1400px;
  transform: translate3d(0%, -50%, 0);
  will-change: transform;
}

.emblem-build {
  position: relative;
  width: 100%;
  aspect-ratio: 2816 / 1536;
  transform-origin: center center;
  will-change: transform;
  filter:
    drop-shadow(0 0 36px rgba(185,48,74,0.55))
    drop-shadow(0 30px 70px rgba(0,0,0,0.7))
    drop-shadow(0 0 8px rgba(212,168,87,0.18));
}

.emblem-piece {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
}

.emblem-piece.is-core {
  left: 0; top: 0;
  width: 100%;
  height: 100%;
}

.emblem-piece.is-badge {
  /* size + position set via JS from data-cx/cy/size */
  display: block;
}

.emblem-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(185,48,74,0.30) 0%,
    rgba(185,48,74,0.10) 35%,
    transparent 65%);
  filter: blur(40px);
  z-index: -1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: opacity, transform;
}

@media (max-width: 1100px) {
  .emblem-stage {
    width: min(60vh, 520px);
    right: -10%;
    top: 38%;
  }
}

@media (max-width: 700px) {
  .emblem-stage {
    width: min(80vw, 420px);
    right: -22%;
    top: 32%;
    opacity: 0.45;
  }
}

#grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
  opacity: 0.6;
}

/* ============ Top nav ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,5,10,0.92), rgba(7,5,10,0.55));
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-0);
  text-decoration: none;
}

.nav__brand img {
  width: 52px;
  height: 52px;
  filter:
    drop-shadow(0 0 14px var(--accent-soft))
    drop-shadow(0 0 4px var(--accent-soft));
}

.nav__brand span {
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav__brand .sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.38em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

.nav__links a:hover { color: var(--ink-0); }

.nav__cta {
  background: var(--accent);
  color: #fff8f0;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 0 var(--accent-soft);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--accent-soft);
}

/* ============ Section scaffold ============ */

main {
  position: relative;
  z-index: 10;
}

section {
  position: relative;
  z-index: 10;
  padding: 60px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-num {
  position: absolute;
  top: 80px;
  right: 32px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  line-height: 1.05;
}

.h-display {
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.h-display em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 20%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-section {
  font-size: clamp(36px, 4.6vw, 64px);
  margin-bottom: 24px;
}

.lead {
  color: var(--ink-1);
  font-size: 18px;
  max-width: 640px;
}

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

.hero {
  min-height: 100vh;
  padding-top: 180px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__kicker::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff8f0;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow {
  transition: transform 0.22s ease;
}

.btn:hover .arrow { transform: translateX(4px); }

.hero__meta {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero__meta-item {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero__meta-item:first-child { border-left: none; padding-left: 0; }

.hero__meta-item .num {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.hero__meta-item .num em {
  font-style: normal;
  color: var(--accent);
}

.hero__meta-item .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 6px;
}

/* ============ Servicios ============ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service {
  background: rgba(7, 10, 24, 0.7);
  padding: 36px 28px;
  position: relative;
  transition: background 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service:hover {
  background: rgba(12, 18, 38, 0.85);
}

.service__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
}

.service__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 20px;
  color: var(--accent);
  background: rgba(88, 231, 255, 0.05);
}

.service h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.service p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.service__arrow {
  margin-top: 24px;
  align-self: flex-start;
  color: var(--ink-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.service:hover .service__arrow {
  color: var(--accent);
  transform: translateX(6px);
}

/* ============ Why SOSIN ============ */

.why {
  position: relative;
}

.why__head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 80px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why__card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.why__card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
}

.why__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why__card:hover::before { opacity: 1; }

.why__card .stat {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink-0);
  line-height: 1;
}

.why__card .stat em {
  font-style: normal;
  font-size: 24px;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0;
}

.why__card .lbl {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.5;
}

.why__card .desc {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============ Cobertura ============ */

.coverage {
  position: relative;
}

.coverage__wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: center;
}

.map-wrap {
  position: relative;
  aspect-ratio: 0.78;
  display: flex;
  align-items: center;
  justify-content: center;
}

#map-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(88,231,255,0.20));
}

#map-svg path.country {
  fill: rgba(185, 48, 74, 0.04);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(88,231,255,0.20), 0 0 20px var(--accent);
  transform: translate(-50%, -50%);
}

.pin::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pin-ring 2.4s ease-out infinite;
}

@keyframes pin-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

.pin__label {
  position: absolute;
  left: 18px;
  top: -2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-1);
  white-space: nowrap;
  text-transform: uppercase;
}

.coverage__cities {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 30px;
}

.coverage__cities li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-1);
}

.coverage__cities li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ============ Sectors ============ */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
}

.sector {
  background: rgba(7, 10, 24, 0.6);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: background 0.25s ease;
}

.sector:hover {
  background: rgba(88, 231, 255, 0.06);
}

.sector__icon {
  width: 40px; height: 40px;
  color: var(--ink-1);
  transition: color 0.25s ease;
}

.sector:hover .sector__icon { color: var(--accent); }

.sector__name {
  font-size: 13px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}

.clients-row {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.clients-row .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.client-logo {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 14px;
}

/* ============ Equipo / Certs ============ */

.team-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.team__photo {
  aspect-ratio: 1.1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg,
      rgba(88,231,255,0.05) 0 14px,
      transparent 14px 28px),
    linear-gradient(160deg, rgba(7,10,24,0.9), rgba(12,18,38,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team__photo::before {
  content: '[ team photograph ]';
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
}

.team__photo .corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--accent);
}
.team__photo .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.team__photo .corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.team__photo .corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.team__photo .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.cert {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(7,10,24,0.5);
}

.cert__badge {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(88, 231, 255, 0.08);
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.cert__t {
  font-size: 13.5px;
  color: var(--ink-0);
  font-weight: 500;
  margin-bottom: 3px;
}

.cert__s {
  font-size: 11.5px;
  color: var(--ink-2);
}

.team__facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.team__facts li .n {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.team__facts li .l {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ============ Contacto ============ */

.contact {
  padding-bottom: 200px;
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: rgba(7,10,24,0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-0);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(88, 231, 255, 0.05);
}

.field textarea { resize: vertical; min-height: 120px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact__info {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.contact__info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.info-item {
  margin-bottom: 28px;
}

.info-item .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-item .v {
  font-size: 16px;
  color: var(--ink-0);
}

.info-item .v.small { font-size: 14px; color: var(--ink-1); }

/* ============ Footer ============ */

footer {
  position: relative;
  z-index: 10;
  padding: 60px 32px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--ink-2);
  font-size: 12px;
}

footer .legal {
  display: flex;
  gap: 22px;
}

footer .legal a {
  color: var(--ink-2);
  text-decoration: none;
}

footer .legal a:hover { color: var(--accent); }

/* ============ Scroll progress ============ */

.scroll-meter {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  pointer-events: auto;
}

.scroll-meter a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.scroll-meter a:hover { color: var(--ink-0); }

.scroll-meter a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: all 0.25s ease;
}

.scroll-meter a.is-active { color: var(--accent); }
.scroll-meter a.is-active .dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.4);
}

.scroll-meter a span { opacity: 0; transition: opacity 0.2s ease; }
.scroll-meter a:hover span,
.scroll-meter a.is-active span { opacity: 1; }

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .scroll-meter { display: none; }
  .nav__links { display: none; }
  section { padding: 50px 24px; }
  .services-grid,
  .why__grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr 1fr; }
  .why__head,
  .coverage__wrap,
  .team-wrap,
  .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero__meta-item { border-left: none; padding-left: 0; }
  .contact__info { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 30px; }
}

@media (max-width: 600px) {
  .services-grid,
  .why__grid,
  .sectors-grid { grid-template-columns: 1fr; }
}


/* ============ Web3D · Glassmorphism + bloom overrides ============ */

/* Stronger atmospheric base — let bokeh shine */
body {
  background:
    radial-gradient(1400px 900px at 75% -10%, rgba(185,48,74,0.14), transparent 60%),
    radial-gradient(1100px 800px at -10% 30%, rgba(212,168,87,0.07), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(91,232,255,0.08), transparent 70%),
    var(--bg-0);
}

/* Grid background fades a bit more so 3D depth reads */
#grid-bg { opacity: 0.42; }

/* Service cards → glass panels */
.services-grid {
  background: transparent;
  border: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 60px;
}

.service {
  background: rgba(15, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,168,87,0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  background: rgba(28, 14, 26, 0.58);
  border-color: rgba(212,168,87,0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 40px 80px -10px rgba(185,48,74,0.35),
    0 0 0 1px rgba(212,168,87,0.18);
}

.service__icon {
  background: rgba(212,168,87,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 0 14px rgba(185,48,74,0.18);
}

/* Why cards → glass too */
.why__card {
  background: rgba(15, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 26px 50px -20px rgba(0,0,0,0.7);
}

.why__card:hover {
  background: rgba(28, 14, 26, 0.6);
  border-color: rgba(212,168,87,0.25);
}

/* Sector tiles */
.sectors-grid {
  background: transparent;
  border: none;
  gap: 14px;
}

.sector {
  background: rgba(15, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.sector:hover {
  background: rgba(28, 14, 26, 0.6);
  border-color: rgba(212,168,87,0.18);
}

/* Hero meta tiles */
.hero__meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 80px;
  gap: 14px;
}

.hero__meta-item {
  border-left: none;
  background: rgba(15, 8, 16, 0.36);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero__meta-item:hover {
  background: rgba(28, 14, 26, 0.6);
  border-color: rgba(212,168,87,0.22);
}

/* Cert cards */
.cert {
  background: rgba(15, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255,255,255,0.08);
}

.cert__badge {
  background: rgba(212,168,87,0.08);
  border-color: rgba(212,168,87,0.30);
  box-shadow: 0 0 14px rgba(185,48,74,0.18) inset;
}

/* Form fields → glass */
.field input,
.field textarea,
.field select {
  background: rgba(15, 8, 16, 0.46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.10);
}

/* Top navigation → frosted with metallic border */
.nav {
  background: linear-gradient(to bottom, rgba(7,5,10,0.72), rgba(7,5,10,0.34));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Bloom accents — text & accent glows */
.h-display em {
  text-shadow:
    0 0 22px rgba(212,168,87,0.55),
    0 0 60px rgba(185,48,74,0.35);
}

.hero__kicker::before {
  box-shadow: 0 0 14px var(--accent), 0 0 30px var(--accent-soft);
}

.section-tag::before {
  box-shadow: 0 0 10px var(--accent);
}

.section-tag {
  text-shadow: 0 0 14px var(--accent-soft);
}

.btn--primary {
  box-shadow:
    0 0 18px var(--accent-soft),
    0 6px 24px rgba(185,48,74,0.35);
}

.btn--primary:hover {
  box-shadow:
    0 0 26px var(--accent),
    0 12px 40px rgba(185,48,74,0.55);
}

/* Z-index: let some particles render in front. We do this by having the
   3D canvas at z=1 (behind UI z=10) BUT giving certain elements lower z so
   they sit "in" the data space. The 3D canvas has no DOM siblings to swap
   with, so we simulate front-of-text bokeh with the heavy fg particles. */
section { isolation: isolate; }
.armor-section { isolation: isolate; }

/* Don't let the tilt clip-out hover state — give them room */
.service, .why__card, .sector, .cert, .hero__meta-item, .armor-card {
  will-change: transform;
}


/* ============ Tactical HUD (right side) ============ */

.hud-stage {
  position: fixed;
  top: 50%;
  right: -8%;
  width: min(72vh, 720px);
  aspect-ratio: 1 / 1;
  z-index: 2;
  pointer-events: none;
  perspective: 1200px;
  transform: translate(0%, -50%);
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}

.hud-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 80%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(185,48,74,0.30) 0%,
    rgba(212,168,87,0.10) 35%,
    transparent 65%);
  filter: blur(50px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
}

.hud-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  filter:
    drop-shadow(0 0 18px rgba(185,48,74,0.45))
    drop-shadow(0 0 6px rgba(212,168,87,0.35));
}

.hud-pulse-bars rect { animation: hud-pulse-bars 1.4s ease-in-out infinite; transform-origin: center bottom; }
.hud-pulse-bars rect:nth-child(2) { animation-delay: 0.18s; }
.hud-pulse-bars rect:nth-child(3) { animation-delay: 0.36s; }
.hud-pulse-bars rect:nth-child(4) { animation-delay: 0.54s; }
.hud-pulse-bars rect:nth-child(5) { animation-delay: 0.72s; }

@keyframes hud-pulse-bars {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.0); }
}

body.armor-active .hud-stage { opacity: 0.15; }

@media (max-width: 1100px) {
  .hud-stage {
    width: min(55vh, 480px);
    right: -14%;
    top: 38%;
  }
}

@media (max-width: 700px) {
  .hud-stage {
    width: min(80vw, 360px);
    right: -22%;
    top: 32%;
    opacity: 0.5;
  }
}

/* Remove unused emblem styles (they no longer exist in DOM but keep CSS small) */
.emblem-stage { display: none !important; }


/* ============ Armor v3 — robust puzzle layout ============ */

.armor-section {
  position: relative;
  min-height: 320vh;
  padding: 0;
  margin: 0;
  max-width: none;
  z-index: 11;
  background:
    radial-gradient(ellipse at center, rgba(185,48,74,0.10), transparent 70%),
    var(--bg-0);
}

.armor-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 14px 44px 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 80% at 35% 55%, rgba(185,48,74,0.18), transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(91,232,255,0.08), transparent 60%);
}

.armor-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 12px;
}

.armor-header .section-tag {
  margin-bottom: 8px;
}

.armor-header .h-section {
  font-size: clamp(22px, 2.6vw, 38px);
  margin-bottom: 4px;
  line-height: 1.05;
}

.armor-header .lead {
  margin: 2px auto 0;
  max-width: 560px;
  font-size: 13px;
}

/* Two-column body: stage on left, cards in 2×2 grid on right */
.armor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: stretch;
  min-height: 0;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

/* Stage */
.armor-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.armor-stage::before {
  content: '';
  position: absolute;
  inset: 4%;
  background-image:
    linear-gradient(to right, rgba(212,168,87,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212,168,87,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 75% at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, black 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.armor-stage::after {
  content: '';
  position: absolute;
  inset: 2%;
  border: 1px solid transparent;
  background:
    linear-gradient(to right, rgba(212,168,87,0.55), transparent 25%, transparent 75%, rgba(212,168,87,0.55)) top/100% 1px no-repeat,
    linear-gradient(to right, rgba(212,168,87,0.55), transparent 25%, transparent 75%, rgba(212,168,87,0.55)) bottom/100% 1px no-repeat,
    linear-gradient(to bottom, rgba(212,168,87,0.55), transparent 25%, transparent 75%, rgba(212,168,87,0.55)) left/1px 100% no-repeat,
    linear-gradient(to bottom, rgba(212,168,87,0.55), transparent 25%, transparent 75%, rgba(212,168,87,0.55)) right/1px 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.armor-floor {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 70%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top,
    rgba(212,168,87,0.34) 0%,
    rgba(185,48,74,0.18) 30%,
    transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.armor-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(212,168,87,0.55));
}
.armor-connectors path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.5s ease, opacity 0.4s ease;
}

/* Ghosts — show silhouette of where pieces will land */
.armor-ghosts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.armor-ghost,
.armor-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  pointer-events: none;
  will-change: transform, opacity;
}

.armor-ghost {
  z-index: 1;
  opacity: 0.12;
  filter: grayscale(0.6) brightness(0.6) blur(0.4px);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.armor-ghost.is-resolved {
  opacity: 0;
}

.armor-piece {
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 20px rgba(185,48,74,0.55))
    drop-shadow(0 24px 36px rgba(0,0,0,0.65));
}

/* Sizing & placement (relative to stage). --px / --py are interpreted by
   armor.js as FRACTIONS OF STAGE width/height (not the element's own size). */
.p-helmet { --w: 24%;  --px: 0%;     --py: -36%; z-index: 5; }
.p-torso  { --w: 48%;  --px: 0%;     --py:  -6%; z-index: 4; }
.p-arm-l  { --w: 21%;  --px: -29%;   --py: -12%; z-index: 3; }
.p-arm-r  { --w: 21%;  --px:  29%;   --py: -12%; z-index: 3; }
.p-leg-l  { --w: 22%;  --px: -15%;   --py:  28%; z-index: 2; }
.p-leg-r  { --w: 22%;  --px:  15%;   --py:  28%; z-index: 2; }

.armor-ghost { width: var(--w); }
.armor-piece { width: var(--w); }

.armor-piece[data-mirror], .armor-ghost[data-mirror] {
  /* Mirror via JS in transform — declared here so we don't double-flip */
}

/* Cards — 2×2 grid for breathing room */
.armor-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
  align-items: stretch;
  min-height: 0;
}

.armor-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(15, 8, 16, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 20px 22px 22px;
  opacity: 0.32;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 22px 44px -22px rgba(0,0,0,0.6);
}

.armor-card.is-placed {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(212, 168, 87, 0.3);
}

.armor-card.is-active {
  border-color: var(--accent);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 0 0 1px var(--accent-soft) inset,
    0 14px 40px -8px rgba(185,48,74,0.45);
}

.armor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.armor-card.is-active::before { opacity: 1; }

.armor-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.armor-card__num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: rgba(185,48,74,0.08);
}

.armor-card__layer {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.armor-card__dot {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.armor-card.is-placed .armor-card__dot {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.armor-card.is-active .armor-card__dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.armor-card h3 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 0 12px var(--accent-soft);
}

.armor-card p {
  font-size: 13.5px;
  color: var(--ink-1);
  line-height: 1.55;
  margin: 0;
}

/* Arrival burst particles */
.armor-burst {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 6;
  filter: blur(0.3px);
  box-shadow: 0 0 12px var(--gold), 0 0 28px var(--gold);
  animation: armor-burst 0.8s ease-out forwards;
}

@keyframes armor-burst {
  0%   { transform: translate(0, 0) scale(0); opacity: 1; }
  100% { transform: translate(var(--bx, 0), var(--by, 0)) scale(2); opacity: 0; }
}

/* Status bar */
.armor-status {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.armor-status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.armor-status__text { flex-shrink: 0; }

.armor-status__progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.armor-status__progress .bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--gold));
  transition: width 0.2s ease;
  box-shadow: 0 0 12px var(--accent);
}

.armor-status__pct {
  color: var(--ink-0);
  min-width: 48px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Narrow screens — stage on top, cards 2×2 below */
@media (max-width: 920px) {
  .armor-section { min-height: 400vh; }
  .armor-sticky {
    padding: 12px 20px 18px;
  }
  .armor-header { padding-top: 14px; }
  .armor-header .h-section { font-size: clamp(22px, 4vw, 32px); }
  .armor-header .lead { font-size: 13px; }
  .armor-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .armor-stage {
    min-height: 44vh;
  }
  .armor-card {
    padding: 14px 16px 16px;
  }
  .armor-card h3 { font-size: 17px; }
  .armor-card p { font-size: 12.5px; }
}

@media (max-width: 520px) {
  .armor-cards { grid-template-columns: 1fr; }
  .armor-card:nth-child(n+3) { display: none; }
}


/* ==========================================================================
   SOSIN v4 — Capa TECH (cian instrumental) · multipágina · componentes nuevos
   ========================================================================== */

/* ---- Selección + foco accesible en cian ---- */
::selection { background: rgba(88,231,255,0.25); color: #fff; }

/* ---- Hairline data readout (coordenadas tipo instrumento) ---- */
.section-num { color: var(--tech-dim); }
.section-num::before { content: '⌖ '; color: var(--gold); }

/* ---- Nav multipágina ---- */
.nav__links a { position: relative; padding: 6px 2px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--tech);
  box-shadow: 0 0 8px var(--tech);
  transition: right 0.28s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { right: 0; }
.nav__links a.is-current { color: var(--ink-0); }
.nav__links a.is-current::after { right: 0; background: var(--gold); box-shadow: 0 0 8px var(--gold-soft); }

.nav__cta {
  background: linear-gradient(120deg, var(--accent), #8b1f3a);
  border: 1px solid rgba(88,231,255,0.18);
  position: relative; overflow: hidden;
}
.nav__cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(88,231,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.nav__cta:hover::after { transform: translateX(120%); }

/* Hamburguesa móvil */
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; width: 40px; height: 40px; cursor: pointer;
  color: var(--ink-0); align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* ---- Marco de foto reutilizable (.shot) ---- */
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(88,231,255,0.045) 0 11px, transparent 11px 22px),
    linear-gradient(160deg, rgba(15,8,16,0.92), rgba(9,11,20,0.96));
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; isolation: isolate;
}
.shot::before {
  content: attr(data-shot);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-3); text-transform: uppercase; text-align: center;
  padding: 0 24px; max-width: 80%; line-height: 1.8;
}
/* Esquinas tipo visor */
.shot::after {
  content: ''; position: absolute; inset: 12px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--tech),var(--tech)) top left/16px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) top left/1px 16px no-repeat,
    linear-gradient(var(--tech),var(--tech)) top right/16px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) top right/1px 16px no-repeat,
    linear-gradient(var(--tech),var(--tech)) bottom left/16px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) bottom left/1px 16px no-repeat,
    linear-gradient(var(--tech),var(--tech)) bottom right/16px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) bottom right/1px 16px no-repeat;
  opacity: 0.7;
}
.shot[data-tag]{ }
.shot[data-tag]::after { /* keep brackets */ }
.shot .shot-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tech);
  background: rgba(6,4,10,0.6); border: 1px solid var(--tech-soft);
  padding: 4px 8px; border-radius: 5px;
}
.shot.is-tall { min-height: 460px; }
.shot.is-wide { aspect-ratio: 16/9; }
.shot.fill-img { background: none; }
.shot.fill-img::before { content: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Tag genérico mono (kicker tech) ---- */
.tech-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--tech);
}
.tech-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tech); box-shadow: 0 0 10px var(--tech);
}

/* ==========================================================================
   PÁGINAS INTERNAS — hero compacto
   ========================================================================== */
.page-hero {
  min-height: auto; padding-top: 120px; padding-bottom: 24px;
  display: block;
}
.page-hero .breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-2); text-transform: uppercase; margin-bottom: 22px;
  display: flex; gap: 8px; align-items: center;
}
.page-hero .breadcrumb b { color: var(--tech); font-weight: 500; }
.page-hero .h-display { font-size: clamp(40px, 5.6vw, 76px); }
.page-hero .lead { margin-top: 26px; }

/* ==========================================================================
   SERVICIOS — detalle, modalidades, enfoque tecnológico
   ========================================================================== */

/* Filas de servicio detalladas */
.svc-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 64px 0;
  border-top: 1px solid var(--line);
}
.svc-detail:nth-child(even) .svc-detail__media { order: -1; }
.svc-detail__num {
  font-family: var(--font-mono); font-size: 12px; color: var(--tech);
  letter-spacing: 0.2em; margin-bottom: 18px;
}
.svc-detail h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.svc-detail p { color: var(--ink-1); font-size: 15.5px; line-height: 1.65; max-width: 540px; }
.svc-feats { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.svc-feats li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--ink-1);
}
.svc-feats li::before {
  content: ''; flex-shrink: 0; margin-top: 6px;
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--tech),var(--tech)) center/12px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) center/1px 12px no-repeat;
  opacity: 0.9;
}
.svc-detail__media .shot { min-height: 340px; }

/* Modalidades (con arma / sin arma) */
.modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px;
}
.mode {
  position: relative; padding: 34px 30px 30px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(15,8,16,0.5);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden; transition: border-color .3s ease, transform .3s ease;
}
.mode:hover { transform: translateY(-4px); border-color: var(--tech-soft); }
.mode::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--mode-c, var(--tech)), transparent);
}
.mode__icon {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  color: var(--mode-c, var(--tech)); margin-bottom: 22px;
  background: rgba(88,231,255,0.05);
}
.mode--armed { --mode-c: var(--accent); }
.mode--armed .mode__icon { color: var(--accent); border-color: var(--accent-soft); background: rgba(185,48,74,0.06); }
.mode h4 { font-size: 22px; margin-bottom: 6px; }
.mode .mode__sub {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px;
}
.mode p { font-size: 14px; color: var(--ink-1); line-height: 1.6; }
.mode__list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.mode__list li { font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.mode__list li::before { content: '▹'; color: var(--mode-c, var(--tech)); }

/* Enfoque tecnológico — grid de capacidades */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px;
}
.tech-cap {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(9,11,20,0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.tech-cap:hover { border-color: var(--tech-soft); background: rgba(12,18,30,0.66); }
.tech-cap__k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--tech); margin-bottom: 16px;
}
.tech-cap__ic { width: 38px; height: 38px; color: var(--gold); margin-bottom: 16px; }
.tech-cap h4 { font-size: 18px; margin-bottom: 8px; }
.tech-cap p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* Banda de proceso / pasos */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 56px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--line);
}
.flow__step { background: rgba(9,11,20,0.7); padding: 30px 24px; position: relative; }
.flow__step .n {
  font-family: var(--font-mono); font-size: 13px; color: var(--tech); letter-spacing: 0.1em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.flow__step .n::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.flow__step h5 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.flow__step p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* ==========================================================================
   NOSOTROS — historia, misión/visión/valores
   ========================================================================== */
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.mvv__card {
  padding: 36px 32px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(15,8,16,0.5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.mvv__card .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 16px;
}
.mvv__card p { font-size: 15px; color: var(--ink-1); line-height: 1.7; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.value {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(9,11,20,0.45); transition: border-color .3s, transform .3s;
}
.value:hover { border-color: var(--tech-soft); transform: translateY(-3px); }
.value__ic { width: 34px; height: 34px; color: var(--tech); margin-bottom: 14px; }
.value h5 { font-size: 16px; margin-bottom: 7px; }
.value p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* Timeline historia */
.timeline { margin-top: 56px; position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(to bottom, var(--tech), var(--accent), transparent);
}
.tl-item { position: relative; padding: 0 0 38px 32px; }
.tl-item::before {
  content: ''; position: absolute; left: -28px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--tech); box-shadow: 0 0 12px var(--tech);
  transform: translateX(-1px);
}
.tl-item .yr {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 6px;
}
.tl-item h5 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 620px; }

/* ==========================================================================
   CONTACTO — canales reales
   ========================================================================== */
.channels { display: grid; gap: 12px; margin-top: 8px; }
.channel {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(9,11,20,0.5); transition: border-color .25s, transform .25s, background .25s;
}
.channel:hover { transform: translateX(4px); border-color: var(--tech-soft); background: rgba(12,18,30,0.6); }
.channel__ic {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--tech);
}
.channel--wa .channel__ic { color: #25d366; border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.06); }
.channel--ig .channel__ic { color: #e1306c; border-color: rgba(225,48,108,0.4); background: rgba(225,48,108,0.06); }
.channel__t { font-size: 15px; color: var(--ink-0); font-weight: 500; }
.channel__s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.channel .channel__go { margin-left: auto; color: var(--ink-3); transition: color .2s, transform .2s; }
.channel:hover .channel__go { color: var(--tech); transform: translateX(3px); }

/* ==========================================================================
   Toggles de sección (Tweaks → body[data-*])
   ========================================================================== */
body[data-hud="0"] .hud-stage { display: none !important; }
body[data-armor="0"] #armor { display: none !important; }
body[data-coverage="0"] #cobertura { display: none !important; }
body[data-clients="0"] .clients-row { display: none !important; }
body[data-scanlines="1"]::after {
  content: ''; position: fixed; inset: 0; z-index: 9; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(88,231,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

/* Intensidad de efectos baja → reduce animaciones decorativas */
body[data-fxlow="1"] .hero__kicker::before,
body[data-fxlow="1"] .armor-status__dot,
body[data-fxlow="1"] .pin::after { animation: none !important; }

/* ==========================================================================
   Responsive de los componentes nuevos
   ========================================================================== */
@media (max-width: 980px) {
  .svc-detail { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .modes, .mvv { grid-template-columns: 1fr; }
  .tech-grid, .values { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .nav__links { 
    position: fixed; inset: 64px 12px auto 12px; flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 14px;
    background: rgba(8,6,12,0.96); border: 1px solid var(--line); border-radius: 14px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav.is-open .nav__links { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { width: 100%; padding: 10px 4px; font-size: 15px; }
  .nav__toggle { display: flex; }
}
@media (max-width: 600px) {
  .tech-grid, .values, .flow { grid-template-columns: 1fr; }
}


/* ---- Reveal on scroll ---- */
[data-reveal]{ opacity:0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in{ opacity:1; transform: none; }
[data-reveal][data-reveal="2"]{ transition-delay:.08s; }
[data-reveal][data-reveal="3"]{ transition-delay:.16s; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ opacity:1; transform:none; transition:none; } }

/* ---- CTA band (cierre de página) ---- */
.cta-band{
  position:relative; z-index:10; max-width:var(--maxw); margin:0 auto;
  padding:80px 40px; margin-top:40px; text-align:center;
  border:1px solid var(--line); border-radius:24px; overflow:hidden;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(185,48,74,0.14), transparent 70%),
    linear-gradient(160deg, rgba(15,8,16,0.7), rgba(9,11,20,0.85));
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.cta-band::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(var(--tech),var(--tech)) 24px 24px/30px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) 24px 24px/1px 30px no-repeat,
    linear-gradient(var(--tech),var(--tech)) right 24px top 24px/30px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) right 24px top 24px/1px 30px no-repeat,
    linear-gradient(var(--tech),var(--tech)) 24px bottom 24px/30px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) 24px bottom 24px/1px 30px no-repeat,
    linear-gradient(var(--tech),var(--tech)) right 24px bottom 24px/30px 1px no-repeat,
    linear-gradient(var(--tech),var(--tech)) right 24px bottom 24px/1px 30px no-repeat;
  opacity:.5;
}
.cta-band h2{ font-size:clamp(30px,4vw,52px); margin-bottom:18px; }
.cta-band p{ color:var(--ink-1); max-width:560px; margin:0 auto 32px; font-size:16px; }
.cta-band .hero__cta{ justify-content:center; margin-top:0; }

/* ---- Footer multipágina ---- */
.footer-grid{
  position:relative; z-index:10; max-width:var(--maxw); margin:0 auto;
  padding:64px 32px 28px; border-top:1px solid var(--line);
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
}
.footer-grid .fcol h5{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-2); margin-bottom:16px; font-weight:600; }
.footer-grid .fcol a{ display:block; color:var(--ink-1); text-decoration:none; font-size:13.5px; margin-bottom:10px; transition:color .2s; }
.footer-grid .fcol a:hover{ color:var(--tech); }
.footer-grid .fbrand{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.footer-grid .fbrand img{ width:46px; height:46px; }
.footer-grid .fbrand b{ font-size:17px; letter-spacing:.04em; }
.footer-grid .fbrand .sub{ display:block; font-size:9.5px; letter-spacing:.34em; color:var(--accent); text-transform:uppercase; margin-top:3px; }
.footer-grid .fcol p{ font-size:13px; color:var(--ink-2); line-height:1.6; max-width:280px; }
@media (max-width:980px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }


/* ---- Nav right group + footer legal ---- */
.nav__right{ display:flex; align-items:center; gap:14px; }
.footer-legal{
  position:relative; z-index:10; max-width:var(--maxw); margin:0 auto;
  padding:18px 32px 48px; color:var(--ink-3); font-size:11.5px;
  font-family:var(--font-mono); letter-spacing:.04em;
  border-top:1px solid var(--line);
}
