/* ===== Nexo Consultoría — Design Tokens ===== */
:root {
  --nexo-blue: #1E3264;            /* primary — logo navy */
  --nexo-blue-deep: #14223F;       /* deep navy */
  --nexo-blue-darker: #0B142A;     /* near-black navy */
  --nexo-blue-soft: #4A5B85;       /* mid navy */
  --nexo-blue-pale: #E6EAF3;       /* navy tinted pearl */
  --nexo-gold: #B5915A;            /* refined champagne */
  --nexo-gold-bright: #D4B27A;     /* light champagne */
  --nexo-gold-deep: #8C6E3F;       /* deep champagne */
  --nexo-gold-soft: rgba(181, 145, 90, 0.14);
  --bg: #FFFFFF;
  --pearl: #F4EEE2;                /* warm pearl */
  --pearl-deep: #E8DFCB;           /* deeper pearl */
  --pearl-light: #FAF6EC;          /* lightest pearl */
  --bg-soft: #F4EEE2;              /* alias: pearl */
  --bg-tint: #E8DFCB;              /* alias: pearl-deep */
  --bg-cream: #FAF6EC;             /* alias: pearl-light */
  --ink: #14223F;                  /* deep navy ink */
  --ink-2: #1E3264;                /* logo navy ink */
  --ink-3: #6B7B9C;                /* muted navy */
  --line: rgba(20, 34, 63, 0.10);
  --line-strong: rgba(20, 34, 63, 0.18);
  --shadow-sm: 0 1px 2px rgba(20, 34, 63, 0.05), 0 1px 3px rgba(20, 34, 63, 0.07);
  --shadow-md: 0 10px 30px -10px rgba(20, 34, 63, 0.18), 0 4px 12px -4px rgba(20, 34, 63, 0.12);
  --shadow-lg: 0 28px 56px -22px rgba(20, 34, 63, 0.40), 0 14px 28px -14px rgba(20, 34, 63, 0.22);
  --shadow-gold: 0 14px 32px -14px rgba(181, 145, 90, 0.55);
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.h-display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.gold { color: var(--nexo-gold); }
.muted { color: var(--ink-3); }

/* ===== Mouse Tracker ===== */
.cursor-dot, .cursor-ring, .cursor-glow {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-glow {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(212, 168, 95, 0.18) 0%, rgba(212, 168, 95, 0.06) 35%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: 0.9;
  transition: opacity 0.35s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease);
}
/* When hovering interactive elements, expand ring */
.cursor-ring.is-hover {
  width: 60px; height: 60px;
  border-color: var(--nexo-gold-bright);
  background: rgba(212, 168, 95, 0.10);
}
.cursor-dot.is-hover {
  width: 4px; height: 4px;
}
/* On text inputs, switch to caret cursor */
.cursor-ring.is-text {
  width: 4px; height: 28px;
  border-radius: 1px;
  border-color: var(--nexo-gold-bright);
  background: rgba(212, 168, 95, 0.45);
}
.cursor-dot.is-text { opacity: 0; }
/* When pressed */
.cursor-ring.is-down {
  width: 28px; height: 28px;
  background: rgba(212, 168, 95, 0.20);
}
/* Hide native cursor on supporting devices */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none !important;
  }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
}

/* ===== FX Ticker ===== */
.fx-ticker {
  background: var(--nexo-blue-deep);
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fx-ticker .fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px;
  gap: 24px;
}
.fx-ticker .fx-quotes {
  display: flex;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}
.fx-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.fx-quote .pair { color: rgba(255,255,255,0.6); font-weight: 500; }
.fx-quote .price { color: #fff; font-weight: 600; }
.fx-quote .delta.up { color: #8FBFA3; }
.fx-quote .delta.down { color: #D49A9A; }
.fx-quote .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nexo-gold-bright);
  box-shadow: 0 0 0 0 rgba(212,168,95,0.55);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(212,168,95,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(212,168,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,95,0); }
}
.fx-ticker .fx-meta { color: rgba(255,255,255,0.55); font-size: 11.5px; }

/* ===== Navbar ===== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border: none;
  box-shadow: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px 24px;
}

/* --- Logo --- */
.nav-logo-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo {
  display: block;
  height: 72px;
  width: auto;
}
.nav-logo-white {
  filter: brightness(0) invert(1);
}
/* Gold spotlight layer — hidden by default, revealed under cursor */
.nav-logo-gold {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: sepia(1) saturate(2.2) brightness(0.85) hue-rotate(5deg);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 48px at var(--spot-x, -200px) var(--spot-y, -200px), #000 30%, transparent 100%);
  mask-image: radial-gradient(circle 48px at var(--spot-x, -200px) var(--spot-y, -200px), #000 30%, transparent 100%);
}

/* --- Desktop nav right group --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}

/* --- CTA button --- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 40px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover {
  background: #fff;
  color: var(--nexo-blue);
  border-color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--nexo-blue-deep);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(11, 20, 42, 0.85) 0%, rgba(20, 34, 63, 0.75) 100%),
    url('assets/hero-exito.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(212, 178, 122, 0.18) 0%, transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 50% at 40% 35%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 50% at 40% 35%, #000 10%, transparent 80%);
}
.hero-chart {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 56%;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 150px 32px 140px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nexo-gold-bright);
  box-shadow: 0 0 0 4px rgba(212,168,95,0.22);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 22px 0 24px;
  line-height: 1.04;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--nexo-gold-bright);
  background: linear-gradient(135deg, #F5D693 0%, #D4A85F 60%, #B08544 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero p.lead .hl { color: var(--nexo-gold-bright); font-weight: 500; }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--nexo-gold);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,95,0.45);
  z-index: -1;
  opacity: 0;
  animation: heartbeat 3.6s ease-out infinite;
}
@keyframes heartbeat {
  0%   { transform: scale(1); opacity: 0; }
  20%  { opacity: 0.55; }
  100% { transform: scale(1.28); opacity: 0; }
}
.btn-primary:hover {
  background: var(--nexo-blue);
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}
.btn-ghost .play {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

/* Diagnostic CTA — lighter conversion entry point */
.hero-diag-cta {
  border-color: rgba(212,168,95,0.45);
  background: rgba(212,168,95,0.08);
}
.hero-diag-cta:hover {
  border-color: var(--nexo-gold);
  background: rgba(212,168,95,0.18);
}
.hero-diag-cta .play {
  background: rgba(212,168,95,0.22);
  color: var(--nexo-gold-bright);
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 560px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-stat .v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .v small { color: var(--nexo-gold-bright); font-size: 22px; }
.hero-stat .k {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Hero visual / cockpit card */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-40px);
}

/* ===== Puzzle Hero ===== */
.puzzle-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.puzzle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* piece base */
.pp {
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}
@keyframes ppSnap {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-rot)) scale(0.7);
    filter: blur(2px) drop-shadow(0 0 0 rgba(212,178,122,0));
  }
  40% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 0 rgba(212,178,122,0));
  }
  62% {
    transform: translate(calc(var(--from-x) * 0.04), calc(var(--from-y) * 0.04)) rotate(calc(var(--from-rot) * 0.05)) scale(1.06);
    filter: blur(0) drop-shadow(0 0 18px rgba(212,178,122,0.75));
  }
  78% {
    transform: translate(0, 0) rotate(0deg) scale(0.97);
    filter: blur(0) drop-shadow(0 0 8px rgba(212,178,122,0.35));
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: blur(0) drop-shadow(0 0 0 rgba(212,178,122,0));
  }
}

/* gentle continuous float after settle (per-piece phase) */
.pp::after { content: none; }
.pp.pp-sat  { animation: ppSnap 1.3s cubic-bezier(0.22,1,0.36,1) 2.2s both, ppFloatA 9s ease-in-out 4.0s infinite; }
.pp.pp-imss { animation: ppSnap 1.3s cubic-bezier(0.22,1,0.36,1) 2.45s both, ppFloatB 9s ease-in-out 4.2s infinite; }
.pp.pp-bc   { animation: ppSnap 1.3s cubic-bezier(0.22,1,0.36,1) 2.70s both, ppFloatC 9s ease-in-out 4.4s infinite; }
.pp.pp-tj   { animation: ppSnap 1.3s cubic-bezier(0.22,1,0.36,1) 2.95s both, ppFloatD 9s ease-in-out 4.6s infinite; }
@keyframes ppFloatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2px, -4px); } }
@keyframes ppFloatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(3px, -3px); } }
@keyframes ppFloatC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-3px, 3px); } }
@keyframes ppFloatD { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px, 4px); } }

.pp.is-hover {
  animation-play-state: paused, paused;
  transform: translateY(-8px) scale(1.03);
  z-index: 2;
}

.pp-fill.pp-cream  { fill: rgba(255, 255, 255, 0.65); }
.pp-fill.pp-navy   { fill: rgba(18, 30, 60, 0.65); }
.pp-stroke {
  fill: none;
  stroke: transparent;
  stroke-width: 0;
  vector-effect: non-scaling-stroke;
}
.pp.is-hover .pp-stroke { stroke: transparent; stroke-width: 0; }

/* HTML logo overlays positioned over each piece */
.pp-logo {
  position: absolute;
  width: 25%;
  height: 25%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: ppLogoIn 0.6s var(--ease) both;
}
.pp-logo.pp-logo-sat  { animation-delay: 3.0s; }
.pp-logo.pp-logo-imss { animation-delay: 3.25s; }
.pp-logo.pp-logo-bc   { animation-delay: 3.5s; }
.pp-logo.pp-logo-tj   { animation-delay: 3.75s; }
.pp-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.pp-logo-sat img {
  transform: scale(1.7);
}
.pp-logo-bc img,
.pp-logo-tj img {
  max-width: 95%;
  max-height: 95%;
}
@keyframes ppLogoIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.pp-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pp-tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pp-cream-text { fill: #14223F; }
.pp-cream-sub  { fill: rgba(20,34,63,0.62); }
.pp-navy-text  { fill: #F4EEE2; }
.pp-navy-sub   { fill: rgba(244,238,226,0.65); }

/* center node */
.puzzle-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--nexo-gold);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  z-index: 3;
  box-shadow: 0 10px 24px -8px rgba(11,20,42,0.55), 0 0 0 0 rgba(212,178,122,0.45);
  opacity: 0;
  animation: pcFade 0.6s var(--ease) 1.2s forwards, pcPulse 3.6s ease-in-out 2s infinite;
}
.puzzle-center .pc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: pulseDot 2.4s infinite;
}
@keyframes pcFade {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pcPulse {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(11,20,42,0.55), 0 0 0 0 rgba(212,178,122,0.45); }
  50%      { box-shadow: 0 10px 24px -8px rgba(11,20,42,0.55), 0 0 0 14px rgba(212,178,122,0); }
}

/* sparkle particles on the puzzle joints */
.puzzle-spark {
  fill: var(--nexo-gold-bright);
  opacity: 0;
  animation: sparkBlink 4.5s ease-in-out infinite;
}
.puzzle-spark.s1 { animation-delay: 2.2s; }
.puzzle-spark.s2 { animation-delay: 3.0s; }
.puzzle-spark.s3 { animation-delay: 3.6s; }
.puzzle-spark.s4 { animation-delay: 4.2s; }
@keyframes sparkBlink {
  0%, 90%, 100% { opacity: 0; transform: scale(0.6); }
  45%, 55%      { opacity: 1; transform: scale(1.2); }
}

/* faint glow ring behind the whole puzzle */
.puzzle-aura {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,178,122,0.18) 0%, rgba(30,50,100,0.0) 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: auraFade 1.4s var(--ease) 1.0s forwards, auraBreathe 7s ease-in-out 2.6s infinite;
}
@keyframes auraFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes auraBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.7; }
}

/* aux callouts */
.puzzle-aux {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-family: var(--font-display);
  z-index: 4;
  opacity: 0;
  animation: paFade 0.6s var(--ease) 1.4s forwards;
}
.puzzle-aux-tl {
  top: -8px; left: -28px;
  padding: 10px 14px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.puzzle-aux-tl .pa-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nexo-gold-bright);
  box-shadow: 0 0 0 3px rgba(212,168,95,0.22);
}
.puzzle-aux-br {
  bottom: -8px; right: -32px;
  padding: 12px 16px;
  display: inline-flex; align-items: center; gap: 12px;
}
.puzzle-aux-br .pa-num {
  font-size: 26px; font-weight: 700;
  color: var(--nexo-gold-bright);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1;
}
.puzzle-aux-br .pa-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
  line-height: 1.25;
}
@keyframes paFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .puzzle-stage { max-width: 440px; }
  .puzzle-aux-tl { left: 0; }
  .puzzle-aux-br { right: 0; }
}

.cockpit {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.cockpit-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.cockpit-head .label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cockpit-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--nexo-gold-bright); font-weight: 600;
  letter-spacing: 0.08em;
}
.cockpit-head .live .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--nexo-gold-bright);
  box-shadow: 0 0 0 0 rgba(212,168,95,0.55);
  animation: pulseDot 2.4s infinite;
}
.cockpit-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; color: #fff;
  margin-bottom: 4px;
}
.cockpit-sub { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 22px; }

.cockpit-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.cockpit-row + .cockpit-row { margin-top: 0; }
.cockpit-row .ck-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #fff;
}
.cockpit-row .ck-name .ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; background: rgba(212,168,95,0.16);
  color: var(--nexo-gold-bright);
}
.cockpit-row .ck-state {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.ck-state.ok { background: rgba(110,168,140,0.18); color: #9ECBB1; }
.ck-state.todo { background: rgba(212,168,95,0.20); color: #D7BC85; }
.ck-state.due { background: rgba(196,118,118,0.18); color: #E5A7A7; }

.cockpit-foot {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.55);
}

.float-card {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: 14px 16px;
  box-shadow: 0 24px 44px -16px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-card.fc-1 { left: -28px; top: 40px; }
.float-card.fc-2 { right: -18px; bottom: 30px; animation-delay: -3s; }
.float-card .fc-ico {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
  background: var(--bg-tint);
  color: var(--nexo-blue);
}
.float-card .fc-ico.gold { background: rgba(176,133,68,0.12); color: var(--nexo-gold); }
.float-card .fc-name { font-weight: 600; color: var(--ink); }
.float-card .fc-meta { font-size: 11.5px; color: var(--ink-3); }

/* ===== Section primitives ===== */
section.block { padding: 112px 0; position: relative; }
section.block.tight { padding: 88px 0; }
section.block.soft { background: var(--bg-soft); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexo-gold);
}
.section-eyebrow .ln {
  width: 24px; height: 1px; background: var(--nexo-gold);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.018em;
  margin-top: 14px;
  margin-bottom: 16px;
  line-height: 1.08;
}
.section-title .it { font-style: italic; color: var(--nexo-gold); }
.section-sub { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 620px; }
.section-sub .hl { color: var(--nexo-gold); font-weight: 600; }

/* Reveal — scroll-triggered entrance animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ===== Nosotros ===== */
.nos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nos-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nos-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.nos-icon {
  width: 56px; height: 56px;
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-tint) 0%, #fff 100%);
  color: var(--nexo-blue);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  position: relative;
}
.nos-icon::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nexo-gold);
  top: -3px; right: -3px;
  box-shadow: 0 0 0 3px #fff;
}
.nos-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.nos-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.nos-card .num {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

.values-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.value-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.value-pill:hover { border-color: var(--nexo-gold); transform: translateY(-2px); }
.value-pill .vi {
  width: 32px; height: 32px;
  border-radius: 2px;
  background: rgba(176,133,68,0.12);
  color: var(--nexo-gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.value-pill .vt { font-weight: 600; font-size: 14px; }
.value-pill .vs { font-size: 11.5px; color: var(--ink-3); }

/* ===== Servicios ===== */
.svc-tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 36px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.svc-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-tab:hover { color: var(--nexo-blue); }
.svc-tab.active {
  background: var(--nexo-blue);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(30,58,138,0.5);
}
.svc-tab .badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: inherit;
  font-weight: 600;
}
.svc-tab:not(.active) .badge { background: var(--bg-tint); color: var(--ink-3); }

.svc-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.svc-feature {
  background: linear-gradient(160deg, var(--nexo-blue) 0%, var(--nexo-blue-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.svc-feature::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,133,68,0.32) 0%, transparent 70%);
  top: -80px; right: -100px;
  pointer-events: none;
}
.svc-feature .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nexo-gold-bright);
}
.svc-feature h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  margin: 16px 0 14px;
}
.svc-feature .desc {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}
.svc-feature-stats {
  display: flex; gap: 24px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.svc-feature-stats .v {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
}
.svc-feature-stats .k { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }

.svc-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.svc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
}
.svc-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-item .si-top {
  display: flex; align-items: center; justify-content: space-between;
}
.svc-item .si-ico {
  width: 40px; height: 40px;
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-tint);
  color: var(--nexo-blue);
  transition: all 0.3s var(--ease);
}
.svc-item:hover .si-ico {
  background: var(--nexo-gold);
  color: #fff;
}
.svc-item .si-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 14px;
}
.svc-item .si-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.svc-item .si-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
/* Dependency badges (SAT, IMSS, etc.) */
.si-deps {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.si-dep {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nexo-blue);
  background: var(--nexo-blue-pale);
  border-radius: 3px;
  line-height: 1.3;
}
/* "Aplica para" row */
.si-aplica {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.si-aplica-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.si-aplica-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--nexo-gold-deep);
  background: var(--nexo-gold-soft);
  border-radius: 999px;
  line-height: 1.3;
}
.svc-item .si-arrow {
  align-self: flex-end;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.svc-item:hover .si-arrow {
  background: var(--nexo-blue); color: #fff;
  transform: rotate(-45deg);
}

/* ===== Instituciones ===== */
.inst-wrap {
  background:
    linear-gradient(180deg, #FAF7F0 0%, #F6F2E9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.inst-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(176,133,68,0.10) 0%, transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(58,61,68,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.inst-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.inst-head .section-title { margin-top: 14px; }
.inst-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
}
.inst-meta .m-cell .v {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--nexo-gold);
  line-height: 1;
}
.inst-meta .m-cell .k {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.inst-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.4s var(--ease);
  overflow: hidden;
  text-decoration: none;
}
.inst-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,168,95,0.0) 0%, rgba(212,168,95,0.0) 100%);
  transition: background 0.4s var(--ease);
  pointer-events: none;
}
.inst-card:hover {
  border-color: var(--nexo-gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(176,133,68,0.35), var(--shadow-md);
}
.inst-card:hover::before {
  background: linear-gradient(135deg, rgba(212,168,95,0.06) 0%, rgba(212,168,95,0.0) 60%);
}
.inst-logo {
  height: 92px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.inst-logo img, .inst-logo svg {
  max-height: 100%;
  max-width: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.inst-card:hover .inst-logo img {
  transform: scale(1.04);
}
.inst-logo img { transition: transform 0.4s var(--ease); }
.inst-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nexo-gold);
  background: var(--nexo-gold-soft);
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 1;
}
.inst-tag.federal { color: #8E6A30; background: rgba(176,133,68,0.14); }
.inst-tag.estatal { color: #5B5048; background: rgba(91,80,72,0.10); }
.inst-tag.municipal { color: #6E5A3B; background: rgba(110,90,59,0.12); }
.inst-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.inst-card-link-icon {
  margin-left: 6px;
  opacity: 0.35;
  transition: all 0.3s var(--ease);
}
.inst-card:hover .inst-card-link-icon {
  opacity: 1;
  color: var(--nexo-gold);
  transform: translate(2px, -2px);
}
.inst-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  margin: 0;
}
.inst-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nexo-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.inst-more {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,168,95,0.12) 0%, rgba(176,133,68,0.06) 100%);
  border: 1px solid rgba(176,133,68,0.22);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.inst-more .im-text {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 480px;
}
.inst-more .im-text strong { color: var(--nexo-blue); font-weight: 600; }
.inst-more .im-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.inst-chip {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .inst-inner { grid-template-columns: 1fr; gap: 32px; }
  .inst-grid { grid-template-columns: 1fr; }
}

/* ===== Clientes marquee ===== */
.clients-wrap {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-head {
  text-align: center;
  margin-bottom: 30px;
}
.clients-head .ttl {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scrollX 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX {
  to { transform: translateX(-50%); }
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  height: 152px;
  min-width: 220px;
  max-width: 260px;
  padding: 0 14px;
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
}
.client-logo img {
  max-width: 85%;
  max-height: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.client-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px);
}
/* per-logo size tweaks (visual normalization) */
.client-logo[title="Multitexa Industrial"] img { transform: scale(1.45); }
.client-logo[title="Multitexa Industrial"]:hover img { transform: scale(1.45) translateY(-2px); }
.client-logo[title="SePSO"] img { transform: scale(1.15); }
.client-logo[title="SePSO"]:hover img { transform: scale(1.15) translateY(-2px); }
.client-logo[title="Coventina Beauty Spa"] img { transform: scale(1.15); }
.client-logo[title="Coventina Beauty Spa"]:hover img { transform: scale(1.15) translateY(-2px); }
.client-logo[title="Servicio Técnico STF"] img { transform: scale(1.15); }
.client-logo[title="Servicio Técnico STF"]:hover img { transform: scale(1.15) translateY(-2px); }
.client-logo[title="Venaver Productora"] img {
  filter: invert(1) grayscale(100%) opacity(0.65);
}
.client-logo[title="Venaver Productora"]:hover img {
  filter: invert(1) grayscale(0%) opacity(1);
}

/* ===== Proceso (puzzle-metaphor onboarding) ===== */
.proceso-block {
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(212,178,122,0.08) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 80%, rgba(30,50,100,0.05) 0%, transparent 60%),
    var(--bg);
}
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
/* connector line between steps */
.proceso-grid::before {
  content: "";
  position: absolute;
  top: 68px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--nexo-gold) 0,
    var(--nexo-gold) 8px,
    transparent 8px,
    transparent 18px
  );
  opacity: 0.35;
  z-index: 0;
}
.pz-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.pz-piece {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
}
.pz-piece > svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 20px rgba(20,34,63,0.18));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.pz-step:hover .pz-piece > svg {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 14px 28px rgba(20,34,63,0.28));
}
.pz-cream .pz-piece > svg { color: var(--pearl); }
.pz-navy .pz-piece > svg { color: var(--nexo-blue); }
.pz-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
}
.pz-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pz-cream .pz-icon { color: var(--nexo-blue); }
.pz-navy .pz-icon { color: #fff; }
.pz-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--nexo-gold);
  margin-bottom: 8px;
}
.pz-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pz-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 260px;
  margin: 0 auto;
}
.proceso-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.proceso-cta span {
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
}

@media (max-width: 860px) {
  .proceso-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .proceso-grid::before { display: none; }
  .pz-piece { width: 100px; height: 100px; }
  .pz-icon { width: 44px; height: 44px; }
  .pz-title { font-size: 18px; }
  .pz-desc { font-size: 13px; }
}
@media (max-width: 540px) {
  .proceso-grid { grid-template-columns: 1fr; gap: 28px; }
  .proceso-cta { flex-direction: column; gap: 12px; }
}

/* ===== Diagnóstico lead-magnet band ===== */
.diag-band {
  padding: 72px 0;
  background: linear-gradient(160deg, var(--nexo-blue-deep) 0%, #1a2c54 50%, var(--nexo-blue) 100%);
  position: relative;
  overflow: hidden;
}
.diag-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 90% 20%, rgba(212,178,122,0.16) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 80%, rgba(74,91,133,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.diag-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.diag-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.diag-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,95,0.35);
}
.diag-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexo-gold-bright);
  background: rgba(212,168,95,0.16);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.diag-tag-alt {
  color: #9ECBB1;
  background: rgba(110,168,140,0.16);
}
.diag-icon {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--nexo-gold-bright);
}
.diag-icon svg { width: 28px; height: 28px; }
.diag-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.diag-card p {
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.diag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diag-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
}
.diag-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nexo-gold-bright);
  flex-shrink: 0;
}
.diag-form {
  display: flex;
  gap: 8px;
}
.diag-form input {
  flex: 1;
  padding: 13px 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.diag-form input::placeholder {
  color: rgba(255,255,255,0.45);
}
.diag-form input:focus {
  border-color: var(--nexo-gold);
}
.diag-form button {
  padding: 13px 20px;
  background: var(--nexo-gold);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.diag-form button:hover {
  background: var(--nexo-blue);
  transform: translateY(-1px);
}
.diag-form button:disabled {
  background: #5E8C70;
  cursor: default;
  transform: none;
}
.diag-fineprint {
  display: block;
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.42);
}

@media (max-width: 860px) {
  .diag-grid { grid-template-columns: 1fr; gap: 20px; }
  .diag-card { padding: 28px 22px; }
  .diag-card h3 { font-size: 20px; }
  .diag-form { flex-direction: column; }
}

/* ===== Sticky Mini-CTA Bar ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sc-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--nexo-blue-deep);
  border-top: 1px solid rgba(212,168,95,0.25);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,168,95,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexo-gold-bright);
  flex-shrink: 0;
  animation: pulseDot 2.4s infinite;
}
.sc-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.sc-text strong {
  color: #fff;
  font-weight: 600;
}
.sc-text span {
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
}
.sc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--nexo-gold);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.sc-btn:hover {
  background: var(--nexo-blue);
  transform: translateY(-1px);
}
.sc-btn svg {
  transition: transform 0.3s var(--ease);
}
.sc-btn:hover svg {
  transform: translateX(3px);
}
.sc-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.sc-close:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

@media (max-width: 860px) {
  .sc-inner { padding: 12px 16px; gap: 10px; }
  .sc-text span { display: none; }
  .sc-text strong { font-size: 12.5px; }
}
@media (max-width: 540px) {
  .sc-icon { display: none; }
}

/* ===== FAQ — puzzle-notch decorative borders ===== */
.faq-item {
  position: relative;
}
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: transparent;
  clip-path: polygon(
    0 0, 42% 0,
    42% 100%, 44% 100%, 44% 30%, 46% 30%, 46% 100%, 48% 100%,
    48% 0, 52% 0,
    52% 100%, 54% 100%, 54% 30%, 56% 30%, 56% 100%, 58% 100%,
    58% 0, 100% 0, 100% 100%, 0 100%
  );
  transition: background 0.4s var(--ease);
}
.faq-item.open::before {
  background: var(--nexo-gold);
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
}
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--nexo-blue); }
.faq-q .plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--nexo-blue);
  transition: all 0.4s var(--ease);
}
.faq-item.open .plus {
  background: var(--nexo-gold);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 580px;
}

/* ===== Contacto ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.contact-left h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.contact-left h3 .it { font-style: italic; color: var(--nexo-gold); }
.contact-left p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.contact-channels { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.channel:hover { border-color: var(--nexo-gold); background: #fff; transform: translateX(4px); }
.channel .ci {
  width: 40px; height: 40px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--nexo-blue);
}
.channel .ck { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.channel .cv { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.channel-whatsapp:hover { border-color: #25D366; }
.channel-whatsapp:hover .ci { color: #25D366; border-color: rgba(37, 211, 102, 0.25); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 14px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: all 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--nexo-blue);
  box-shadow: 0 0 0 4px rgba(30,58,138,0.10);
}
.field textarea { min-height: 110px; resize: vertical; }

.submit-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.priv { font-size: 12px; color: var(--ink-3); max-width: 280px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--nexo-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.btn-submit:hover { background: var(--nexo-gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-submit svg { transition: transform 0.3s var(--ease); }
.btn-submit:hover svg { transform: translateX(4px); }
.btn-submit.sent { background: #5E8C70 !important; }

/* ===== Footer ===== */
footer.foot {
  background: var(--nexo-blue-deep);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 36px;
  position: relative;
  overflow: hidden;
}
footer.foot::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 90% 10%, rgba(176,133,68,0.16) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(58,61,68,0.55) 0%, transparent 70%);
  pointer-events: none;
}
.foot-inner { position: relative; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.foot-brand img.logo {
  height: 56px;
  width: auto;
  margin-bottom: 8px;
}
.foot-brand p {
  margin-top: 18px; max-width: 320px;
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.foot-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  font-weight: 600;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14.5px; color: rgba(255,255,255,0.82); transition: color 0.25s var(--ease); }
.foot-col a:hover { color: var(--nexo-gold-bright); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.foot-bottom .legal { display: flex; gap: 18px; }
.legal-link-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.legal-link-pdf:hover {
  color: var(--nexo-gold) !important;
  transform: translateY(-1px);
}
.legal-link-pdf svg {
  opacity: 0.7;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.legal-link-pdf:hover svg {
  opacity: 1;
  color: var(--nexo-gold) !important;
  transform: scale(1.08);
}

/* ===== Burger button + mobile menu ===== */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  align-items: center; justify-content: center;
  padding: 0;
}
.nav-burger span {
  position: absolute;
  left: 7px;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile dropdown panel */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(20, 34, 63, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s;
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 100px 32px 40px;
}
.nav-mobile-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 0;
  transition: color 0.25s ease;
}
.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: #fff;
}
.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-mobile-cta:hover {
  background: #fff;
  color: var(--nexo-blue);
}

/* ===== Responsive (limited) ===== */
@media (max-width: 1024px) {
  /* Navbar collapses */
  .nav-right { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { padding: 32px 16px 16px; }
  .nav-logo { height: 48px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .nos-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .svc-panel { grid-template-columns: 1fr; }
  .svc-items { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; padding: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {

  /* FX ticker — scroll horizontally, hide some quotes */
  .fx-ticker { padding: 8px 0; }
  .fx-row {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .fx-quotes {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fx-quotes::-webkit-scrollbar { display: none; }
  .fx-quote { flex-shrink: 0; }
  .fx-meta { font-size: 11px; opacity: 0.7; }

  /* Hero */
  .hero-inner {
    padding: 90px 20px 100px;
    gap: 48px;
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 52px);
    margin: 18px 0 20px;
  }
  .hero p.lead { font-size: 16px; }
  .hero-eyebrow {
    font-size: 11px;
    padding: 5px 10px 5px 7px;
  }
  .hero-cta-row { flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
  .btn-primary, .btn-ghost {
    padding: 14px 20px;
    font-size: 14px;
  }
  .hero-stats {
    margin-top: 36px;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .hero-stat .v { font-size: 26px; }
  .hero-stat .v small { font-size: 16px; }
  .hero-stat .k { font-size: 11px; }
  .hero-visual { height: auto; }

  /* Puzzle scales down natively via SVG, remove broken fixed values */
  .puzzle-stage { max-width: 100%; padding: 0 10px; margin: 0 auto; }
  .puzzle-aux-tl {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 8px 12px;
  }
  .puzzle-center {
    font-size: 9.5px;
    padding: 5px 10px 5px 7px;
    letter-spacing: 0.18em;
  }
  .puzzle-center .pc-dot { width: 6px; height: 6px; }

  /* Section heads */
  section.block { padding: 72px 0; }
  .section-title {
    font-size: clamp(30px, 7.5vw, 44px);
  }
  .section-eyebrow {
    font-size: 11px;
  }
  .section-sub { font-size: 15px; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 20px; }

  /* Nosotros */
  .nos-card { padding: 26px; }
  .values-row { padding: 22px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .value-pill { padding: 12px 14px; }
  .value-pill .vt { font-size: 14px; }
  .value-pill .vs { font-size: 12px; }

  /* Instituciones */
  .inst-inner { gap: 36px; }
  .inst-meta { gap: 18px; flex-wrap: wrap; }
  .inst-meta .m-cell .v { font-size: 24px; }
  .inst-meta .m-cell .k { font-size: 11px; }
  .inst-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .inst-card { padding: 22px 16px 18px; }
  .inst-name { font-size: 15px; }
  .inst-desc { font-size: 12.5px; }
  .inst-more { padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Servicios */
  .svc-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px;
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { flex-shrink: 0; font-size: 13px; padding: 9px 16px; }
  .svc-feature { padding: 28px 22px; }
  .svc-feature h3 { font-size: 26px; }
  .svc-feature-stats { gap: 24px; }
  .svc-feature-stats .v { font-size: 22px; }
  .svc-item { padding: 20px; }
  .svc-item .si-title { font-size: 15px; }
  .svc-item .si-desc { font-size: 13px; }

  /* Clientes marquee */
  .clients-wrap { padding: 70px 0; }
  .clients-head .ttl { font-size: 12px; padding: 0 20px; text-align: center; }
  .marquee-track { gap: 40px; }
  .client-logo { height: 110px; min-width: 170px; max-width: 200px; padding: 0 8px; }

  /* FAQ */
  .faq-q { font-size: 15px; padding: 18px 0; gap: 14px; }
  .faq-a-inner { font-size: 14px; }

  /* Contacto */
  .contact-wrap { padding: 28px 22px !important; gap: 32px; }
  .contact-left h3 { font-size: 26px; }
  .channel { padding: 12px 14px; }
  .channel .ck { font-size: 12px; }
  .channel .cv { font-size: 13.5px; word-break: break-all; }
  .submit-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .submit-row .priv { max-width: 100%; }

  /* Footer */
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand img.logo { height: 44px; }
  .foot-brand p { max-width: 100%; }
  .foot-bottom { font-size: 12px; }
  .foot-bottom .legal { gap: 14px; flex-wrap: wrap; }
  footer.foot { padding: 56px 0 28px; }

  /* Hide cursor tracker on touch */
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
}

@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .hero-stats .hero-stat:last-child { grid-column: 1 / -1; }
  .hero-visual { padding: 0 4px; }

  .inst-grid { grid-template-columns: 1fr; gap: 14px; }
  .values-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-brand { grid-column: auto; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }

  .nav-mobile-link { font-size: 16px; padding: 10px 0; }
  .nav-mobile-inner { padding: 84px 22px 24px; gap: 12px; }
}

/* ===== Loader Animation ===== */
.loader-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--nexo-blue-deep);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid var(--nexo-blue);
  border-right: 4px solid var(--nexo-blue);
  animation: loader-spin 1.5s linear infinite;
  filter: drop-shadow(0 0 18px rgba(32,72,180,.7));
}
.loader-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom: 3px solid rgba(85,130,255,.9);
  animation: loader-spinReverse 2s linear infinite;
}
.loader-logo {
  width: 140px;
  animation: loader-pulse 2s ease-in-out infinite;
  z-index: 2;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(32,72,180,.5));
}
.loader-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--nexo-blue);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: loader-glowPulse 2s ease-in-out infinite;
}


@keyframes loader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loader-spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
@keyframes loader-glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.25); opacity: 0.35; }
}

/* Mini loader for submit button */
.loader-mini {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: loader-spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============ Sede — contorno de Baja California ============ */
.sede {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px 4px 6px;
}

.sede-map {
  flex: none;
  position: relative;
  width: clamp(170px, 18vw, 240px);
}

.sede-img {
  width: 100%;
  aspect-ratio: 1076 / 1348; /* Proporciones exactas de la imagen baja-line.png */
  display: block;
  background-color: var(--nexo-blue-soft);
  -webkit-mask-image: url("assets/baja-line.png");
  mask-image: url("assets/baja-line.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 0.3s ease;
  opacity: 0.8;
}

.sede-marker {
  position: absolute;
  left: 17.5%; /* Posicionamiento X del pin (Tijuana) */
  top: 6.5%;   /* Posicionamiento Y del pin (Tijuana) */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  animation: ping 2.6s ease-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Efecto radial pulsante (Ping) */
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--nexo-gold) 70%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px transparent;
  }
}

.sede-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sede-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nexo-gold);
  font-weight: 600;
}

.sede-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  line-height: 1.1;
}

.sede-note {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 34ch;
}

/* Soporte para desactivación de animaciones */
html.motion-off .sede-marker,
@media (prefers-reduced-motion: reduce) {
  .sede-marker {
    animation: none;
  }
}
