/* =========================================================
   SAiMON VISION — Home
   Colores de marca: navy #25356d, navy oscuro #16214a / #0f1633,
   acento azul #1e86c4. Tipografía: Avenir / Avenir Next / system fallback.
   ========================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0f1633;
  color: #fff;
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #fff; text-decoration: none; }
a:hover { color: #c3c8d2; }
img { display: block; max-width: 100%; }
::selection { background: #25356d; color: #fff; }

@keyframes roboMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .1s; }
.reveal-d5 { transition-delay: .12s; }
.reveal-sm { transform: translateY(16px); }

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow-line { width: 28px; height: 1px; background: rgba(255,255,255,0.55); }
.eyebrow-label { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.eyebrow-label--dark { color: #25356d; }
.eyebrow-label--muted { color: #767d8d; }
.eyebrow-line--dark { background: rgba(20,22,28,0.35); }

.link-cta { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; color: #fff; }
.link-cta--dark { color: #25356d; }
.btn-circle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: #25356d; transition: transform .3s ease; flex-shrink: 0; }
.link-cta:hover .btn-circle { transform: translateX(4px); }
.btn-circle--dark { background: #25356d; color: #fff; }

.pill-outline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 9px 18px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; }
.pill-outline:hover { background: #fff; color: #25356d; border-color: #fff; }

.pill-outline-lg { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; }
.pill-outline-lg:hover { background: #fff; color: #25356d; border-color: #fff; }

.pill-solid-lg { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; background: #fff; color: #25356d; border-radius: 999px; font-size: 15px; font-weight: 700; }
.pill-solid-lg:hover { background: #e0e3ea; }

/* ---------- placeholder image (sustituir por foto/video real) ---------- */
.placeholder-img {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #1c2b57, #1c2b57 10px, #223269 10px, #223269 20px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(255,255,255,0.65); font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; padding: 16px;
}
.placeholder-img--dark { color: rgba(255,255,255,0.75); }

/* ---------- scanline texture ---------- */
.scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 4px); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 22px 48px;
  background: linear-gradient(180deg, rgba(15,22,51,0.55), rgba(15,22,51,0));
  backdrop-filter: saturate(120%);
  transition: transform 0.6s cubic-bezier(0.34, 1.28, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              padding 0.5s cubic-bezier(.16,1,.3,1);
}

/* ---- logo ---- */
.header__logo {
  height: 44px; width: auto;
  max-width: 198px;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity   0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1),
              max-width 0.55s cubic-bezier(.16,1,.3,1),
              margin    0.55s cubic-bezier(.16,1,.3,1);
}
.header--floating .header__logo {
  opacity: 0;
  transform: scale(0.75) translateX(-8px);
  max-width: 0;
  margin-right: 0;
  pointer-events: none;
}

/* ---- nav pill ---- */
.header__nav {
  display: flex; align-items: center; gap: 34px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  padding: 10px 24px;
  margin-left: auto;  /* empujado a la derecha */
  transition: margin        0.55s cubic-bezier(.16,1,.3,1),
              background   0.4s ease,
              border-color 0.4s ease,
              padding      0.45s cubic-bezier(.16,1,.3,1),
              gap          0.45s cubic-bezier(.16,1,.3,1),
              transform    0.5s  cubic-bezier(0.34, 1.32, 0.64, 1),
              opacity      0.4s  ease,
              box-shadow   0.4s  ease;
}

/* ---- estado: flotante (logo colapsa, nav viaja al centro) ---- */
.header--floating {
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--floating.header--scrolled {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--floating .header__nav {
  margin-left: auto;
  margin-right: auto;           /* nav viaja al centro con animación */
  background: rgba(10, 15, 38, 0.86);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-color: rgba(255,255,255,0.11);
  padding: 12px 28px;
  gap: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* ---- estado: oculto (scroll ↓ en zona profunda) ---- */
.header--hidden {
  transform: translateY(-120%);
}
.header--hidden .header__nav {
  opacity: 0.4;
  transform: scale(0.94) translateY(-6px);
}
.header__nav a { font-size: 16px; font-weight: 500; opacity: 0.75; color: #fff; }
.header__nav a.is-active { opacity: 0.92; }

/* ---- hamburger button (hidden on desktop) ---- */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 60;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), opacity 0.25s ease;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- mobile nav panel ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(10,15,38,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-nav__link {
  display: block;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: #fff;
  transform: scale(1.04);
}
.mobile-nav__footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav__footer .lang-toggle {
  font-size: 16px;
}

.lang-toggle {
  display: none !important; /* sitio solo EN — toggle oculto */
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.lang-toggle__active { color: #fff; }
.lang-toggle__sep { color: rgba(255,255,255,0.3); }
.lang-toggle__inactive { color: rgba(255,255,255,0.45); }
.lang-toggle:hover .lang-toggle__inactive { color: rgba(255,255,255,0.8); }

/* =========================================================
   MEGA-MENÚ SOLUCIONES
   ========================================================= */
.megamenu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.megamenu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.megamenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}
.megamenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid #eef0f4;
  flex-shrink: 0;
}
.megamenu__close {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #25356d;
  padding: 0;
  transition: color 0.25s ease;
}
.megamenu__close:hover { color: #1e86c4; }
.megamenu__close svg { width: 20px; height: 20px; }
.megamenu__logo {
  height: 32px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter: brightness(0) saturate(100%) invert(17%) sepia(25%) saturate(2800%) hue-rotate(205deg) brightness(90%) contrast(95%);
}
.megamenu__demo {
  color: #25356d !important;
  border-color: #25356d !important;
  font-size: 13px;
  padding: 10px 24px;
  text-decoration: none;
}
.megamenu__demo:hover {
  background: #25356d !important;
  color: #fff !important;
}

.megamenu__body {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  padding: 36px 48px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.megamenu__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
#megamenu-soluciones .megamenu__body {
  grid-template-columns: 1fr auto;
}
#megamenu-soluciones .megamenu__thumbs--soluciones {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}
.megamenu__thumb {
  text-decoration: none;
  display: block;
}
.megamenu__thumb-img {
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}
.megamenu__thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
.megamenu__thumb:hover .megamenu__thumb-img img {
  transform: scale(1.05);
}
.megamenu__thumb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #25356d;
  transition: color 0.25s ease;
}
.megamenu__thumb-label svg { width: 16px; height: 16px; }
.megamenu__thumb:hover .megamenu__thumb-label { color: #1e86c4; }

.megamenu__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 220px;
}
.megamenu__nav-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.megamenu__nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9fae;
}
.megamenu__nav-item a {
  font-size: 19px;
  font-weight: 600;
  color: #14161c;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.3;
}
.megamenu__nav-item a:hover { color: #25356d; }

.megamenu__contact {
  min-width: 200px;
  padding-top: 4px;
}
.megamenu__contact-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #14161c;
}
.megamenu__contact-email {
  display: block;
  font-size: 14px;
  color: #25356d;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.megamenu__contact-email:hover { color: #1e86c4; }
.megamenu__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25356d;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}
.megamenu__contact-btn:hover { background: #1e86c4; }
.megamenu__contact-btn svg { width: 16px; height: 16px; }

.megamenu__catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  background: #25356d;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .25s;
}
.megamenu__catalog-btn:hover { background: #1e86c4; }
.megamenu__catalog-btn svg { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .megamenu {
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .megamenu__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .megamenu__body,
  #megamenu-soluciones .megamenu__body,
  #megamenu-sectores .megamenu__body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .megamenu__thumbs,
  #megamenu-soluciones .megamenu__thumbs--soluciones {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }
  .megamenu__thumb-img {
    height: 168px;
    margin-bottom: 8px;
  }
  .megamenu__thumb-label { font-size: 12px; }
  .megamenu__contact {
    min-width: 0;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #eef0f4;
  }
  #megamenu-sectores .megamenu__nav {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
  .megamenu__nav-item a { font-size: 17px; }
  .megamenu__bar { padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px; }
}
@media (max-width: 768px) {
  .megamenu__body,
  #megamenu-soluciones .megamenu__body,
  #megamenu-sectores .megamenu__body {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 20px;
  }
  .megamenu__thumbs,
  #megamenu-soluciones .megamenu__thumbs--soluciones {
    gap: 14px;
  }
  .megamenu__thumb-img { height: 148px; }
  .megamenu__bar { padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; }
  .megamenu__logo { height: 26px; }
  .megamenu__demo { display: none; }
  #megamenu-sectores .megamenu__nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .megamenu__nav-item a { font-size: 15px; }
  .megamenu__nav-label { font-size: 9px; }
  .megamenu__contact-title { font-size: 14px; margin-bottom: 10px; }
  .megamenu__contact-email { font-size: 13px; margin-bottom: 14px; word-break: break-word; }
  .megamenu__contact-btn { padding: 10px 20px; font-size: 13px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 48px; overflow: hidden; background: #25356d; }
.hero__bg-wrap { position: absolute; inset: -12% 0 -12% 0; z-index: 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg video, .hero__bg img, .hero__bg .placeholder-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(37,53,109,0.20) 0%, rgba(37,53,109,0.45) 40%, rgba(37,53,109,0.86) 74%, #25356d 100%); }
.hero__content { position: relative; z-index: 5; max-width: 1692px; width: 100%; margin: 0 auto; padding: 0 48px; }
.hero__intro { max-width: 980px; margin: 0 auto 56px; text-align: center; }
.hero__intro .eyebrow { justify-content: center; }
.hero__intro .eyebrow-line { width: 34px; }
.hero__title { margin: 0 0 22px; font-size: clamp(40px, 6vw, 74px); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; }
.hero__subtitle { margin: 0 auto 34px; max-width: 600px; font-size: 20px; line-height: 1.7; font-weight: 400; color: rgba(255,255,255,0.82); padding-bottom: 0.12em; }

.hero__carousel { max-width: 80%; margin-inline: auto; }
.hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero__video-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.hero__video-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s ease;
}
.hero__video-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero__video-btn:hover {
  background: #fff;
  color: #25356d;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,22,51,0.28);
}
.hero__carousel-controls { display: none; }
/* Temporarily hide all Seguritech logos sitewide */
.hero__partner-logo,
.footer__partner-logo,
.nos-hero__partner-logo,
.legado__partner-logo,
.timeline__partner-logo { display: none !important; }
.hero__partner-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 70vw);
  margin: 36px auto 0;
  object-fit: contain;
  opacity: 0.95;
  position: relative;
  z-index: 5;
}
.hero-card { position: relative; height: 228px; border-radius: 14px; overflow: hidden; display: block; box-shadow: 0 12px 28px rgba(15,22,51,0.35); }
.hero-card--featured { box-shadow: 0 18px 40px rgba(15,22,51,0.5); outline: 1px solid rgba(255,255,255,0.18); }
.hero-card__media { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.hero-card:hover .hero-card__media { transform: scale(1.07); }
.hero-card__media img, .hero-card__media .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,51,0.05) 30%, rgba(15,22,51,0.85) 100%); }
.hero-card--featured .hero-card__gradient { background: linear-gradient(180deg, rgba(15,22,51,0.05) 25%, rgba(15,22,51,0.9) 100%); }
.hero-card--dark .hero-card__gradient { background: linear-gradient(180deg, rgba(37,53,109,0.4) 0%, rgba(15,22,51,0.9) 100%); }
.hero-card__body { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.hero-card--featured .hero-card__body { padding: 18px; }
.hero-card__icon { align-self: flex-end; width: 20px; height: 20px; color: #fff; opacity: 0.9; }
.hero-card__label-group { display: flex; flex-direction: column; gap: 3px; }
.hero-card__sublabel { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.52); }
.hero-card__label { font-size: 15px; font-weight: 700; }
.hero-card__badge { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgba(255,255,255,0.14); border-radius: 999px; backdrop-filter: blur(4px); }
.hero-card__badge span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-card__badge svg { width: 16px; height: 16px; }
.hero-card__title-lg { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }

.hero__logo-strip { position: absolute; z-index: 5; left: 0; right: 0; bottom: 40px; width: 100%; padding: 0 24px; overflow: hidden; text-align: center; pointer-events: none; }
.hero__logo-strip img { width: 100%; max-width: 1600px; height: auto; opacity: 0.11; filter: brightness(0) invert(1); margin-top: -29px; margin-bottom: -29px; }

/* =========================================================
   ECOSISTEMA (stats + collage)
   ========================================================= */
.ecosistema { position: relative; background: #25356d; padding: 120px 40px 130px; overflow: hidden; }
.ecosistema__inner { position: relative; max-width: 1792px; margin: 0 auto; }
.ecosistema__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1278px;
  margin: 0 auto 72px;
}
.ecosistema__header .eyebrow { justify-content: center; }
.ecosistema__title { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.18; font-weight: 900; letter-spacing: -0.02em; }

.stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  max-width: 1792px;
  width: 100%;
  margin: 0 auto 96px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
  }
  .stat { padding: 28px 16px; }
  .stat:not(:last-child)::after { display: none; }
  .stat:nth-child(odd):not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .stat:nth-child(-n+6) {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .stat__num { font-size: clamp(32px, 4vw, 44px); }
  .stat__label { font-size: 16px; }
}
.stat {
  text-align: center;
  padding: 36px 18px 0;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat__num {
  font-size: clamp(30px, 2.9vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.stat__num em { color: #c3c8d2; font-style: normal; }
.stat__label {
  margin-top: 10px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}

.collage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; max-width: 1165px; width: 100%; margin: 0 auto; }
.collage__figures { position: relative; height: 440px; }
.collage__big { position: absolute; top: 0; left: 0; width: 78%; height: 82%; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 44px rgba(15,22,51,0.5); }
.collage__small { position: absolute; bottom: 0; right: 0; width: 48%; height: 46%; border-radius: 14px; overflow: hidden; border: 4px solid #25356d; box-shadow: 0 20px 44px rgba(15,22,51,0.6); }
.collage__big img, .collage__small img, .collage__big .placeholder-img, .collage__small .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.collage__text h3 { margin: 0 0 22px; font-size: clamp(28px,3.2vw,42px); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
.collage__text p { margin: 0; font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.8); }
.collage__text .pill-outline-lg { margin-top: 32px; }

/* =========================================================
   ECOSISTEMA TECNOLÓGICO — sticky scroll storytelling
   ========================================================= */

/* Section wrapper — overflow-x: clip permite sticky, corta desbordamientos horizontales */
.eco-tech {
  position: relative;
  background: radial-gradient(120% 60% at 50% 0%, rgba(37,53,109,0.035) 0%, #ffffff 45%), #ffffff;
  color: #14161c;
  overflow-x: clip;
  padding-bottom: 140px;
}

/* Header area (scrolls normalmente) */
.eco-tech__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 48px 0;
}
.eco-tech__header { text-align: center; max-width: 680px; margin: 0 auto 100px; }
.eco-tech__badge { display: inline-flex; align-items: center; padding: 8px 20px; background: #f4f5fa; border: 1px solid #25356d; border-radius: 999px; margin-bottom: 26px; }
.eco-tech__badge span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #25356d; }
.eco-tech__title { margin: 0 0 20px; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; color: #1c2b57; }
.eco-tech__title span { display: block; }
.eco-tech__lead { margin: 0 0 44px; font-size: 19px; line-height: 1.65; color: #4b5163; }
.eco-tech__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid #25356d; border-radius: 50%; }
.eco-tech__arrow svg { width: 18px; height: 18px; color: #25356d; }

/* ---- Scroll track ---- */
.eco-tech__scroll-track {
  position: relative;
  height: 400vh;
}

/* ---- Sticky wrap: viewport fijo ---- */
.eco-tech__sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #14161c;
}

/* ============================================================
   PANEL COMPLETO (un paso = un panel full-width alternado)
   ============================================================ */
.eco-full-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  overflow: hidden;
}
.eco-full-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* Pasos pares invertidos: video izquierda, texto derecha */
.eco-full-panel--reversed {
  grid-template-columns: 55fr 45fr;
}

/* ---- Video de fondo con glass ---- */
.eco-full-panel__bg-video {
  position: absolute;
  inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  z-index: 0;
  filter: blur(18px) saturate(130%);
}
.eco-full-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---- Variante NAVY (pasos 01, 03) ---- */
.eco-full-panel--navy .eco-full-panel__overlay {
  background: rgba(37, 53, 109, 0.82);
  backdrop-filter: blur(6px);
}
.eco-full-panel--navy .eco-full-panel__num { color: #fff; }
.eco-full-panel--navy .eco-full-panel__sep { color: rgba(255,255,255,0.35); }
.eco-full-panel--navy .eco-step__label { color: rgba(255,255,255,0.65); }
.eco-full-panel--navy .eco-step__title { color: #fff; }
.eco-full-panel--navy .eco-step__body { color: rgba(255,255,255,0.78); }
.eco-full-panel--navy .eco-step__cta { color: #fff; }
.eco-full-panel--navy .eco-step__cta .btn-circle { background: #fff; color: #25356d; }
.eco-full-panel--navy .eco-step__cta:hover { color: rgba(255,255,255,0.85); }

/* ---- Variante LIGHT (pasos 02, 04) ---- */
.eco-full-panel--light .eco-full-panel__overlay {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
}

/* ---- Lado texto ---- */
.eco-full-panel__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 80px 72px;
  transform: translateY(18px);
  transition: transform 0.7s 0.1s cubic-bezier(.16,1,.3,1);
}
.eco-full-panel--reversed .eco-full-panel__text {
  padding: 64px 72px 80px 48px;
}
.eco-full-panel.is-active .eco-full-panel__text {
  transform: translateY(0);
}

/* Contador de paso */
.eco-full-panel__counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}
.eco-full-panel__num {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #25356d;
}
.eco-full-panel__sep {
  font-size: 15px;
  font-weight: 600;
  color: rgba(37,53,109,0.32);
  padding-bottom: 10px;
}

/* Texto compartido con el diseño original */
.eco-step__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #25356d;
  margin-bottom: 14px;
}
.eco-step__title {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1c1f2b;
}
.eco-step__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #5b6172;
  max-width: 380px;
}

/* ---- Lado visual ---- */
.eco-full-panel__visual {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: stretch;
  padding: 20px 32px 20px 16px;
  transform: scale(0.97);
  transition: transform 0.8s cubic-bezier(.16,1,.3,1);
}
.eco-full-panel--reversed .eco-full-panel__visual {
  padding: 20px 16px 20px 32px;
}
.eco-full-panel.is-active .eco-full-panel__visual {
  transform: scale(1);
}
.eco-full-panel__visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.eco-full-panel--navy .eco-full-panel__visual video {
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

/* ---- Dots: barra fija en la esquina inferior izquierda ---- */
.eco-tech__dots-bar {
  position: absolute;
  bottom: 40px;
  left: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.eco-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}
.eco-dot.is-active  { background: #fff; transform: scale(1.4); }
.eco-dot.is-passed  { background: rgba(255,255,255,0.55); }
.eco-dot__track {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 6px;
}
.eco-dot__fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(.16,1,.3,1);
}

/* =========================================================
   SOLUCIONES / SECTORES panels (shared split layout)
   ========================================================= */
.split-panel { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; min-height: 640px; }
.split-panel--rounded { border-radius: 28px; overflow: hidden; max-width: 1280px; width: 100%; min-height: 600px; }
.split-panel--reverse { grid-template-columns: 1.08fr 0.92fr; }

.split-panel__text {
  position: relative; background: #25356d; padding: 110px 72px 110px 56px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.split-panel__text--reverse { padding: 110px 56px 110px 72px; }
.split-panel__rings { position: absolute; bottom: -160px; left: -160px; width: 560px; height: 560px; pointer-events: none; opacity: 0.6; }
.split-panel__rings--right { left: auto; right: -160px; }
.split-panel__text-inner { position: relative; max-width: 520px; margin-left: auto; }
.split-panel__text-inner--reverse { margin-left: 0; margin-right: auto; }
.split-panel__title { margin: 0 0 24px; font-size: clamp(30px,3.4vw,46px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.split-panel__body { margin: 0 0 40px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.8); }

.split-panel__media { position: relative; overflow: hidden; min-height: 640px; background: #16214a; }
.split-panel--rounded .split-panel__media { min-height: 600px; }
.split-panel__media-bg { position: absolute; inset: -10% 0; }
.split-panel__media-bg img, .split-panel__media-bg .placeholder-img { width: 100%; height: 100%; object-fit: cover; }

.split-panel__bg-stack { position: absolute; inset: 0; }
.split-panel__bg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s cubic-bezier(.16,1,.3,1); }
.split-panel__bg-slide.is-active { opacity: 1; }
.split-panel__bg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-panel__media-gradient { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(37,53,109,0.55) 0%, rgba(37,53,109,0) 45%); }
.split-panel__media-gradient--reverse { background: linear-gradient(90deg, rgba(37,53,109,0) 55%, rgba(37,53,109,0.55) 100%); }

.floating-card {
  position: absolute; right: 48px; top: 50%; margin-top: -150px; width: 380px;
  background: #fff; color: #14161c; border-radius: 16px; padding: 34px 34px 30px;
  box-shadow: 0 24px 60px rgba(15,22,51,0.4);
}
.floating-card--left { right: auto; left: 48px; }
.floating-card__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #767d8d; margin-bottom: 14px; }
.floating-card__title { margin: 0 0 14px; font-size: 26px; font-weight: 900; letter-spacing: -0.01em; color: #25356d; }
.floating-card__body { margin: 0 0 28px; font-size: 15px; line-height: 1.65; color: #565c6b; min-height: 96px; }
.floating-card__progress { display: flex; align-items: center; gap: 14px; }
.floating-card__count { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: #25356d; white-space: nowrap; }
.floating-card__track { flex: 1; height: 4px; background: #e0e3ea; border-radius: 999px; overflow: hidden; }
.floating-card__fill { height: 100%; background: #25356d; border-radius: 999px; transition: width .5s cubic-bezier(.16,1,.3,1); }

/* =========================================================
   SECTORES (intro header + panels wrapper)
   ========================================================= */
.sectores { position: relative; background: #ffffff; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.sectores__intro { position: relative; width: 100%; max-width: 900px; text-align: center; padding: 20px 24px 56px; overflow: hidden; }
.sectores__intro-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 900px; height: 420px; pointer-events: none; }
.sectores__eyebrow { position: relative; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #767d8d; margin-bottom: 18px; }
.sectores__title { position: relative; margin: 0 0 24px; font-size: clamp(30px,4vw,50px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #3a3f4c; }
.sectores__title strong { color: #25356d; font-weight: 900; }
.sectores__lead { position: relative; margin: 0 auto; max-width: 640px; font-size: 18px; line-height: 1.7; color: #565c6b; }
.sectores__lead strong { font-weight: 700; color: #25356d; }
.sectores__panel-wrap { width: 100%; max-width: 1280px; }

/* =========================================================
   ROBÓTICA (preview) — full-bleed hero + stacked carousel
   ========================================================= */
.robotica {
  position: relative; min-height: 860px; display: flex; align-items: center;
  overflow: hidden; background: #16214a;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
}
.robotica.in-view {
  opacity: 1;
  transform: translateY(0);
}
.robotica__bg-stack { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.robotica__bg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.robotica__bg-slide.is-active { opacity: 1; }
.robotica__bg-slide img, .robotica__bg-slide .placeholder-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.robotica__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(37,53,109,0.1) 0%, rgba(30,40,86,0.55) 45%, rgba(21,29,63,0.94) 100%); }
.robotica__inner { position: relative; z-index: 5; width: 100%; max-width: 1280px; margin: 0 auto; padding: 48px 48px; }
.robotica__text { max-width: 620px; }
.robotica__title { margin: 0 0 20px; font-size: clamp(30px,3.6vw,48px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.robotica__body { margin: 0; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.78); }

.robotica__carousel { position: relative; margin-top: 48px; max-width: 600px; height: 172px; }
.robotica__carousel-layer { position: absolute; border-radius: 18px; }
.robotica__carousel-layer--1 { left: 16px; right: -16px; top: 16px; bottom: -16px; background: rgba(255,255,255,0.35); z-index: 1; }
.robotica__carousel-layer--2 { left: 8px; right: -8px; top: 8px; bottom: -8px; background: rgba(255,255,255,0.65); z-index: 2; }
.robotica__card {
  position: absolute; inset: 0; z-index: 3; background: #fff; border-radius: 18px; padding: 28px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: center;
  box-shadow: 0 24px 60px rgba(15,22,51,0.4); opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.robotica__card.is-active { opacity: 1; pointer-events: auto; }
.robotica__card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #767d8d; margin-bottom: 10px; }
.robotica__card-title { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.01em; color: #25356d; }
.robotica__card-desc { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: #5b6172; font-weight: 400; }
.robotica__card-media { height: 112px; border-radius: 12px; overflow: hidden; background: #e9ebf1; }
.robotica__card-media img, .robotica__card-media .placeholder-img { width: 100%; height: 100%; object-fit: cover; }

.robotica__nav { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.robotica__arrow { width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.robotica__arrow:hover { background: rgba(255,255,255,0.2); }
.robotica__arrow svg { width: 18px; height: 18px; }
.robotica__dots { display: flex; align-items: center; gap: 9px; }
.robotica__dot { width: 8px; height: 8px; border-radius: 999px; cursor: pointer; transition: background .3s ease; background: #c9cedb; }
.robotica__dot.is-active { background: #25356d; }

/* ---------- Robótica: marcas + CTA ---------- */
.robotica-cta { position: relative; background: #ffffff; padding: 0 0 90px; overflow: hidden; }
/* Temporarily hidden — restore by removing display:none */
.marquee { display: none; position: relative; padding: 24px 0; overflow: hidden; border-bottom: 1px solid #e6e8ee; margin-top: 0; }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: roboMarquee 32s linear infinite; }
.marquee__item { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; color: #9aa1b0; white-space: nowrap; }
.robotica-cta__link { padding-top: 44px; text-align: center; }

/* =========================================================
   PROYECTOS
   ========================================================= */
.proyectos { background: #f7f8fa; color: #14161c; padding: 120px 48px 130px; }
.proyectos__inner { max-width: 1180px; margin: 0 auto; }
.proyectos__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.proyectos__title { margin: 0; font-size: clamp(34px,4.5vw,58px); font-weight: 900; letter-spacing: -0.03em; color: #25356d; }
.proyectos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.proyecto-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 12px rgba(15,22,51,0.06); }
.proyecto-card__media { height: 300px; }
.proyecto-card__media img, .proyecto-card__media .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.proyecto-card__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 28px 30px 30px; }
.proyecto-card__name { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.08; color: #25356d; }
.proyecto-card__meta-label { font-size: 12px; font-weight: 700; color: #767d8d; margin-bottom: 6px; }
.proyecto-card__meta-value { font-size: 15px; font-weight: 500; color: #3a3f4b; }
.proyecto-card__meta + .proyecto-card__meta { margin-top: 18px; }

/* =========================================================
   PARTNERS TECNOLÓGICOS
   ========================================================= */
.partners {
  background: #f7f8fa;
  padding: 72px 0 80px;
  overflow: hidden;
}
.partners__inner {
  text-align: center;
  margin-bottom: 40px;
}
.partners__marquee {
  position: relative;
  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%);
}
.partners__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partnersScroll 36s linear infinite;
}
.partners__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9aa1b0;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.partners__logo:hover {
  opacity: 1;
  color: #25356d;
}
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   CONTACTO + FOOTER
   ========================================================= */
.contacto { position: relative; background: #0f1633; overflow: hidden; }
.contacto__bg { position: absolute; inset: 0; z-index: 0; }
.contacto__bg img, .contacto__bg .placeholder-img, .contacto__bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.contacto__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(37,53,109,0.72) 0%, rgba(37,53,109,0.86) 55%, #0f1633 100%); }
.contacto__cta { position: relative; z-index: 5; padding: 190px 48px 150px; text-align: center; }
.contacto__cta-inner { max-width: 760px; margin: 0 auto; }
.contacto__cta-title { margin: 0 0 22px; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.contacto__cta-body { margin: 0 auto 40px; max-width: 560px; font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.72); }

.footer { position: relative; z-index: 5; padding: 0 48px 40px; }
.footer__inner { max-width: 1180px; margin: 0 auto; }
.footer__wordmark { width: 100%; overflow: hidden; margin-bottom: 28px; }
.footer__wordmark-text { font-size: clamp(64px, 11vw, 168px); line-height: 0.92; font-weight: 900; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.footer__wordmark-text em { color: #1e86c4; font-weight: 900; font-style: normal; }
.footer__divider { height: 1px; background: rgba(255,255,255,0.16); margin-bottom: 48px; }
.footer__nav { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 32px; margin-bottom: 56px; }
.footer__col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer__col-links { display: flex; flex-direction: column; gap: 14px; }
.footer__col-links a { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.85); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.footer__contact { display: flex; flex-direction: column; gap: 18px; }
.footer__contact-item { display: flex; flex-direction: column; gap: 4px; }
.footer__contact-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer__contact-value { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; color: rgba(255,255,255,0.92); text-decoration: none; white-space: normal; text-transform: none; letter-spacing: normal; }
a.footer__contact-value:hover { color: #1e86c4; }
.footer__locations { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 28px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.45); }
.footer__bottom-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__bottom-left a:last-of-type { display: none; } /* Términos de Uso — oculto temporalmente */
[data-modal-open="contact"] { display: none !important; } /* Modal contacto — oculto temporalmente */
.footer__bottom a { color: rgba(255,255,255,0.45); }
.footer__partner-logo { height: 42px; width: auto; object-fit: contain; opacity: 0.85; }

/* ---------- header scroll state ---------- */
.header--scrolled {
  background: rgba(15,22,51,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ---------- node activation color ---------- */
.eco-step__node-dot.is-passed {
  background: #1e86c4;
  box-shadow: 0 0 0 7px rgba(30,134,196,0.15);
}

/* ---------- video fill ---------- */
.hero__bg video,
.eco-step__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* =========================================================
   NOSOTROS — PAGE OVERRIDE
   ========================================================= */
.page-nosotros { background: #fff; color: #14161c; }
/* Links solo dentro de las secciones de contenido, NO header/footer */
.proposito a, .timeline a, .mv a, .valores a, .team a { color: #25356d; }
.proposito a:hover, .timeline a:hover, .mv a:hover, .valores a:hover, .team a:hover { color: #1e86c4; }

/* =========================================================
   NOSOTROS — HERO
   ========================================================= */
.nos-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; background: #25356d; }
.nos-hero__bg { position: absolute; inset: 0; z-index: 0; }
.nos-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nos-hero__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(37,53,109,0.25) 0%, rgba(37,53,109,0.55) 45%, #25356d 100%); }
.nos-hero__content { position: relative; z-index: 5; max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 48px 90px; }
.nos-hero__partner-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 70vw);
  margin: 28px 0 0;
  object-fit: contain;
  opacity: 0.95;
}
.nos-hero__title { max-width: 720px; margin: 0 0 22px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.18; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.nos-hero__subtitle { max-width: 600px; margin: 0; font-size: 19px; line-height: 1.75; color: rgba(255,255,255,0.82); padding-bottom: 0.12em; }

/* =========================================================
   NOSOTROS — TECNOLOGÍA CON PROPÓSITO
   ========================================================= */
.proposito { position: relative; background: #fff; padding: 120px 48px; overflow: hidden; }
.proposito__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center; }
.proposito__title { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; color: #1c2b57; }
.proposito__text p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; color: #4b5163; }
.proposito__media { height: 520px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(15,22,51,0.16); }
.proposito__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   NOSOTROS — LEGADO
   ========================================================= */
.legado { position: relative; background: #25356d; padding: 120px 48px; overflow: hidden; }
.legado__grid { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.legado__stat { font-size: clamp(56px, 7vw, 96px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: #fff; margin-bottom: 10px; }
.legado__stat-caption { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 30px; }
.legado__text p { margin: 0; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.82); }
.legado__partner-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 280px;
  margin-top: 28px;
  object-fit: contain;
  opacity: 0.9;
}

.legado__collage { position: relative; min-height: 440px; }
.legado__img-main { position: relative; width: 90%; height: 400px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(15,22,51,0.5); }
.legado__img-main img { width: 100%; height: 100%; object-fit: cover; }
.legado__img-small { position: absolute; bottom: -30px; right: -20px; width: 55%; height: 240px; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,22,51,0.45); border: 4px solid #25356d; }
.legado__img-small img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   NOSOTROS — TIMELINE
   ========================================================= */
.timeline { display: none; position: relative; background: #fff; padding: 150px 0 180px; overflow: hidden; }
.timeline__partner-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 70vw);
  margin: 56px auto 0;
  object-fit: contain;
}
.timeline__top { max-width: 1180px; margin: 0 auto 56px; padding: 0 48px; display: flex; align-items: center; gap: 24px; }
.timeline__heading { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.02em; color: #1c2b57; line-height: 1.18; }
.timeline__controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.circle-btn { width: 44px; height: 44px; border-radius: 999px; background: #f2f3f6; border: 1px solid #e0e3ea; color: #25356d; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.circle-btn:hover { background: #25356d; border-color: #25356d; color: #fff; }
.circle-btn svg { width: 18px; height: 18px; }

.timeline__track {
  display: flex;
  gap: 24px;
  padding: 0 0 0 calc(50vw - 540px);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.timeline__track::-webkit-scrollbar { display: none; }

.timeline__card {
  flex: 0 0 322px;
  background: #25356d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.timeline__card:hover {
  background: #2d3f7a;
  border-color: rgba(255,255,255,0.2);
}
.timeline__card-year {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8ba0e0;
  background: rgba(37,53,109,0.25);
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 22px;
  width: fit-content;
}
.timeline__card-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.timeline__card-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.timeline__card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-top: 32px;
  opacity: 0.3;
}

/* =========================================================
   NOSOTROS — MISIÓN / VISIÓN
   ========================================================= */
.mv { position: relative; background: #14161c; padding: 140px 48px; overflow: hidden; }
.mv__bg { position: absolute; inset: 0; z-index: 0; }
.mv__bg img { width: 100%; height: 100%; object-fit: cover; }
.mv__bg-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(37, 53, 109, 0.85); }
.mv__intro { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto 64px; }
.mv__eyebrow { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.mv__title { text-align: left; margin: 0; font-size: clamp(32px, 4.2vw, 54px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.18; color: #fff; }
.mv__grid { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv__card { background: transparent; border-radius: 0; padding: 0; overflow: hidden; }
.mv__card-media { height: 400px; border-radius: 18px; overflow: hidden; margin-bottom: 0; }
.mv__card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.16,1,.3,1); }
.mv__card:hover .mv__card-media img { transform: scale(1.05); }
.mv__card-footer { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px 12px; }
.mv__card-footer h3 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.mv__card-arrow { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #fff; transition: background 0.25s ease, border-color 0.25s ease; }
.mv__card-arrow:hover { background: #25356d; border-color: #25356d; }
.mv__card-arrow svg { width: 18px; height: 18px; }
.mv__card p { margin: 0; padding: 0 4px; font-size: 17px; line-height: 1.7; color: #fff; }

/* =========================================================
   NOSOTROS — VALORES
   ========================================================= */
.valores { position: relative; background: #fff; padding: 120px 48px; }
.valores__header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.valores__header h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.02em; color: #1c2b57; }
.valores__header p { margin: 0; font-size: 16px; line-height: 1.6; color: #5b6172; }
.valores__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.valor-card { background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 32px 26px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.valor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,22,51,0.1); }
.valor-card__icon { width: 50px; height: 50px; border-radius: 12px; background: #eef1f8; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.valor-card__icon svg { width: 22px; height: 22px; color: #25356d; }
.valor-card h4 { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: #1c1f2b; }
.valor-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5b6172; }

/* =========================================================
   NOSOTROS — EQUIPO
   ========================================================= */
.team { position: relative; background: #fff; padding: 120px 48px 140px; display: none; }
.team__header { max-width: 640px; margin: 0 auto; text-align: center; }
.team__header h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.02em; color: #1c2b57; }
.team__header p { margin: 0 0 56px; font-size: 16px; line-height: 1.65; color: #5b6172; }
.team__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { background: transparent; border-radius: 0; overflow: visible; transition: transform 0.3s ease; }
.team-card:hover { transform: translateY(-4px); }
.team-card__media { height: 480px; border-radius: 20px; overflow: hidden; }
.team-card__media img, .team-card__media .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 24px 4px 0; }
.team-card__name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: #1c1f2b; margin-bottom: 6px; }
.team-card__role { font-size: 14px; font-weight: 500; color: #5b6172; line-height: 1.5; }

/* =========================================================
   MODAL DE VIDEO
   ========================================================= */
.video-modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.video-modal[aria-hidden="false"] { pointer-events: all; }

.video-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 30, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1);
}
.video-modal[aria-hidden="false"] .video-modal__backdrop { opacity: 1; }

.video-modal__panel {
  position: relative;
  width: min(1100px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: #0a1028;
  box-shadow: 0 48px 120px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  filter: blur(6px);
  transition:
    opacity 0.5s cubic-bezier(.16,1,.3,1),
    transform 0.65s cubic-bezier(0.34,1.25,0.64,1),
    filter 0.5s cubic-bezier(.16,1,.3,1);
}
.video-modal[aria-hidden="false"] .video-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.video-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(.16,1,.3,1);
}
.video-modal__close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg) scale(1.05); }
.video-modal__close svg { width: 18px; height: 18px; }

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (max-width: 768px) {
  .video-modal { padding: 12px; }
  .video-modal__panel { border-radius: 14px; }
  .hero__video-cta { margin-top: 20px; }
  .hero__video-btn { font-size: 14px; padding: 11px 20px; }
}

/* =========================================================
   MODAL DE CONTACTO
   ========================================================= */

/* ---- overlay ---- */
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.contact-modal[aria-hidden="false"] { pointer-events: all; }

.contact-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 38, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.contact-modal[aria-hidden="false"] .contact-modal__backdrop { opacity: 1; }

/* ---- panel principal (split: izquierda + derecha) ---- */
.contact-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  max-width: 860px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.5s cubic-bezier(0.34,1.2,0.64,1);
}
.contact-modal[aria-hidden="false"] .contact-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- botón cerrar ---- */
.contact-modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-modal__close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.contact-modal__close svg { width: 18px; height: 18px; }

/* ---- panel izquierdo (branding) ---- */
.contact-modal__left {
  background: linear-gradient(155deg, #25356d 0%, #16214a 60%, #0f1633 100%);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.contact-modal__left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,134,196,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.contact-modal__logo { height: 32px; width: auto; object-fit: contain; flex-shrink: 0; }
.contact-modal__left-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.contact-modal__title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.contact-modal__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}
.contact-modal__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-modal__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-modal__info-icon {
  width: 18px; height: 18px;
  color: #1e86c4;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-modal__info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.contact-modal__info-value {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ---- panel derecho (formulario) ---- */
.contact-modal__right {
  background: #f7f8fa;
  padding: 32px 36px;
  overflow-y: auto;
  display: flex;
  align-items: center;
}

/* ---- formulario ---- */
.contact-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #3a3f4b;
}
.contact-form__optional { font-weight: 400; color: #9aa1b0; font-size: 12px; }
.contact-form__input {
  padding: 12px 16px;
  border: 1.5px solid #dde0e8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #14161c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.contact-form__input::placeholder { color: #b0b6c3; }
.contact-form__input:focus {
  border-color: #1e86c4;
  box-shadow: 0 0 0 3px rgba(30,134,196,0.12);
}
.contact-form__input.is-error { border-color: #e0305a; }
.contact-form__input.is-error:focus { box-shadow: 0 0 0 3px rgba(224,48,90,0.12); }
.contact-form__textarea { resize: vertical; min-height: 100px; }
.contact-form__error {
  font-size: 12px;
  color: #e0305a;
  line-height: 1.3;
}
.contact-form__error:empty { display: none; }

/* ---- botón enviar ---- */
.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: #25356d;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  margin-top: 4px;
}
.contact-form__submit:hover {
  background: #1e86c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30,134,196,0.35);
}
.contact-form__submit:active { transform: translateY(0); }
.contact-form__submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* spinner oculto por defecto */
.contact-form__spinner {
  display: none;
  width: 18px; height: 18px;
  animation: spinnerRotate 0.8s linear infinite;
  flex-shrink: 0;
}
.contact-form__submit[data-loading="true"] .contact-form__submit-text { display: none; }
.contact-form__submit[data-loading="true"] .contact-form__spinner { display: block; }
@keyframes spinnerRotate { to { transform: rotate(360deg); } }

/* mensaje de éxito */
.contact-form__success {
  font-size: 14px;
  font-weight: 600;
  color: #1e86c4;
  text-align: center;
  transition: opacity 0.4s ease;
}
.contact-form__success:empty { display: none; }

/* ---- responsive ---- */
@media (max-width: 700px) {
  .contact-modal__panel { grid-template-columns: 1fr; }
  .contact-modal__left { padding: 28px 24px; }
  .contact-modal__stats { flex-direction: row; flex-wrap: wrap; gap: 12px; border-top: none; padding-top: 0; }
  .contact-modal__right { padding: 28px 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   ANIMACIONES AVANZADAS — SCROLL & PARALLAX
   ========================================================= */

/* ---- barra de progreso de scroll ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #1e86c4, #25356d 60%, #1e86c4);
  background-size: 200% 100%;
  z-index: 999;
  pointer-events: none;
  transition: width 0.08s linear;
  animation: scrollBarShimmer 3s linear infinite;
}
@keyframes scrollBarShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ---- variantes direccionales de reveal ---- */
.reveal.from-left  { transform: translateX(-52px); }
.reveal.from-right { transform: translateX(52px); }
.reveal.from-scale { transform: translateY(10px) scale(0.92); }
/* .reveal.visible ya resetea transform a none — funciona con cualquier variante */

/* ---- eyebrow lines crecen al activarse ---- */
/* Caso A: el eyebrow mismo tiene .reveal */
.eyebrow.reveal .eyebrow-line {
  width: 0;
  transition: width 0.9s 0.45s cubic-bezier(.16,1,.3,1);
}
.eyebrow.reveal.visible .eyebrow-line { width: 28px; }

/* Caso B: el eyebrow está dentro de un .reveal padre */
.reveal .eyebrow .eyebrow-line {
  width: 0;
  transition: width 0.9s 0.55s cubic-bezier(.16,1,.3,1);
}
.reveal.visible .eyebrow .eyebrow-line { width: 28px; }

/* ---- hero title: word-by-word cinematic reveal ---- */
.title-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
  /* Espacio extra para descendentes (g, j, p, q, y) sin que overflow las recorte */
  padding-bottom: 0.18em;
  margin-bottom: -0.12em;
}
.title-word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--wi, 0) * 0.07s);
  /* Evita que métricas de fuente recorten la cola de la g */
  padding-bottom: 0.08em;
}
.hero__title.words-visible .title-word-inner,
.nos-hero__title.words-visible .title-word-inner,
.ps-hero__title.words-visible .title-word-inner,
[data-word-reveal].words-visible .title-word-inner { transform: translateY(0); }

/* Títulos genéricos con data-word-reveal — delay ligeramente mayor entre palabras */
.ecosistema__title .title-word-inner,
.timeline__heading .title-word-inner,
.mv__title .title-word-inner,
.ps-cad__title .title-word-inner,
[data-word-reveal] .title-word-inner {
  transition: transform 0.9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--wi, 0) * 0.06s);
}
.ecosistema__title.words-visible .title-word-inner,
.timeline__heading.words-visible .title-word-inner,
.mv__title.words-visible .title-word-inner,
.ps-cad__title.words-visible .title-word-inner { transform: translateY(0); }

/* ---- hero cards: stagger individual al cargar ---- */
.hero-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(.16,1,.3,1),
              transform 0.65s cubic-bezier(.16,1,.3,1);
}
.hero__cards.cards-active .hero-card { opacity: 1; transform: none; }
.hero__cards.cards-active .hero-card:nth-child(1) { transition-delay: 0.04s; }
.hero__cards.cards-active .hero-card:nth-child(2) { transition-delay: 0.12s; }
.hero__cards.cards-active .hero-card:nth-child(3) { transition-delay: 0.20s; }
/* mantener hover scale en cualquier estado */
.hero-card:hover .hero-card__media { transform: scale(1.07); }

/* ---- proyecto cards: stagger en grid ---- */
.proyectos__grid .proyecto-card:nth-child(2) { transition-delay: 0.14s; }
.proyectos__grid .proyecto-card:nth-child(3) { transition-delay: 0.07s; }
.proyectos__grid .proyecto-card:nth-child(4) { transition-delay: 0.21s; }

/* ---- stat numbers: pop al entrar ---- */
.stat__num {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.stat__num.counting { opacity: 0.85; }

/* ---- ecosistema step: botón conocer más ---- */
.eco-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #25356d;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.eco-full-panel.is-active .eco-step__cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.eco-step__cta:hover { color: #1e86c4; }
.eco-step__cta:hover .btn-circle { transform: translateX(4px); background: #1e86c4; }
.eco-step__cta .btn-circle { width: 40px; height: 40px; }
.eco-step__cta .btn-circle svg { width: 16px; height: 16px; }

/* ---- decorative line — crece horizontalmente ---- */
.deco-line {
  display: block;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  opacity: 0.18;
}
.reveal.visible .deco-line { transform: scaleX(1); }

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

/* ---------- TABLET (≤1080px) ---------- */
@media (max-width: 1080px) {
  /* Header — hamburger on tablet */
  .header { padding: 16px 24px; }
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header--hidden { transform: none; }

  /* Hero */
  .hero { padding: 80px 0 40px; }
  .hero__content { padding: 0 28px; }
  .hero__cards { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-card { height: 196px; }
  .hero__intro { margin-bottom: 40px; }

  /* Ecosistema */
  .collage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-width: 0;
  }
  .collage__figures {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 0;
    padding-bottom: 68%;
    overflow: hidden;
    margin: 0 auto;
  }
  .collage__big { left: 0; width: 78%; height: 82%; }
  .collage__small { right: 0; width: 48%; height: 46%; }
  .collage__text {
    width: 100%;
    max-width: 640px;
    min-width: 0;
    text-align: center;
  }
  .collage__text .eyebrow { justify-content: center; }
  .collage__text p { margin-left: auto; margin-right: auto; }
  .collage__text .pill-outline-lg { margin-left: auto; margin-right: auto; }

  /* Eco-tech */
  .eco-tech { padding-bottom: 80px; }
  .eco-tech__inner { padding: 80px 28px 0; }

  /* Soluciones / Sectores */
  .split-panel, .split-panel--reverse { grid-template-columns: 1fr; }
  .split-panel__media { min-height: 280px; }
  .split-panel--rounded { min-height: 0; }
  .split-panel--rounded .split-panel__media { min-height: 280px; }

  /* Robótica */
  .robotica__inner { padding: 0 28px 72px; }
  .robotica__carousel { max-width: 100%; }

  /* Proyectos */
  .proyectos__grid { grid-template-columns: 1fr; }
  .proyectos__header { flex-direction: column; align-items: flex-start; }

  /* Nosotros */
  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(20px);
  }
  .reveal.from-left.visible,
  .reveal.from-right.visible {
    transform: none;
  }
  .proposito__grid, .legado__grid, .mv__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    min-width: 0;
  }
  .valores__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .proposito__media { height: 360px; width: 100%; }
  .legado__collage {
    min-height: 0;
    height: 0;
    padding-bottom: 70%;
    overflow: hidden;
    position: relative;
  }
  .legado__img-main {
    position: absolute;
    top: 0; left: 0;
    width: 78%;
    height: 82%;
  }
  .legado__img-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 48%;
  }
  .timeline__top { padding: 0 32px; }
  .timeline__track { padding: 0 0 0 32px; }
  .timeline__card { flex: 0 0 290px; }

  /* Footer */
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .floating-card, .floating-card--left {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    margin: 16px auto 0;
    width: calc(100% - 32px);
    max-width: 340px;
    padding: 20px 18px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15,22,51,0.28);
  }
}

/* ---------- MOBILE (≤768px) ---------- */
@media (max-width: 768px) {
  .header { padding: 14px 20px; }
  .header__logo { height: 35px; }

  /* Hero */
  .hero { padding: 88px 0 48px; min-height: auto; }
  .hero__carousel { max-width: 100%; }
  .hero__content { padding: 0 20px; }
  .hero__intro { max-width: 100%; margin-bottom: 48px; }
  .hero__intro .eyebrow { margin-bottom: 32px; }
  .hero__title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 28px; }
  .hero__subtitle { font-size: 15px; max-width: 100%; margin-bottom: 8px; }
  .hero__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .hero__cards::-webkit-scrollbar { display: none; }
  .hero-card {
    flex: 0 0 100%;
    max-width: none;
    width: 100%;
    height: 220px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .hero-card__label { font-size: 14px; }
  .hero-card__sublabel { font-size: 9px; }

  .hero__carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }
  .hero__carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  .hero__carousel-btn:hover,
  .hero__carousel-btn:active {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
  }
  .hero__carousel-btn svg { width: 20px; height: 20px; }
  .hero__carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hero__carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .hero__carousel-dot.is-active {
    background: #fff;
    transform: scale(1.25);
  }
  .hero__partner-logo {
    height: 44px;
    margin-top: 28px;
  }

  /* Ecosistema / collage — layout mobile seguro */
  .ecosistema {
    padding: 80px 20px 80px;
    overflow-x: clip;
  }
  .ecosistema__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .ecosistema__title { font-size: clamp(24px, 6vw, 36px); }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-top: 12px;
    max-width: 100%;
  }
  .stat {
    padding: 22px 14px;
  }
  .stat:not(:last-child)::after { display: none; }
  .stat:nth-child(odd):not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .stat:nth-child(-n+6) {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .stat__num { font-size: clamp(32px, 8vw, 44px); white-space: normal; }
  .stat__label { font-size: 16px; }

  .collage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .collage__figures {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 72%;
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
  }
  .collage__big {
    position: absolute;
    top: 0;
    left: 0;
    width: 78%;
    height: 82%;
    border-radius: 14px;
  }
  .collage__small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48%;
    height: 48%;
    border-radius: 12px;
    border-width: 3px;
  }
  .collage__text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .collage__text .eyebrow { justify-content: center; }
  .collage__text h3 {
    font-size: clamp(22px, 6vw, 30px);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .collage__text p {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
  }
  .collage__text .pill-outline-lg {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    margin: 0 auto;
  }
  /* Evita que el reveal translateX corte el contenido en mobile */
  .collage .reveal.from-left,
  .collage .reveal.from-right {
    transform: translateY(20px);
  }
  .collage .reveal.from-left.visible,
  .collage .reveal.from-right.visible {
    transform: none;
  }

  /* Eco-tech sticky scroll */
  .eco-tech { padding-bottom: 60px; }
  .eco-tech__inner { padding: 60px 20px 0; }
  .eco-tech__header { text-align: center; }
  .eco-tech__scroll-track { height: 500vh; }
  .eco-tech__sticky-wrap { grid-template-columns: 1fr; }
  .eco-full-panel,
  .eco-full-panel--reversed {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .eco-full-panel__text {
    padding: 24px 24px 12px;
    text-align: center;
    align-items: center;
  }
  .eco-full-panel--reversed .eco-full-panel__text { padding: 24px 24px 12px; }
  .eco-full-panel__counter { justify-content: center; }
  .eco-step__body { max-width: 100%; }
  .eco-step__cta { justify-content: center; }
  .eco-full-panel__visual,
  .eco-full-panel--reversed .eco-full-panel__visual {
    order: -1;
    padding: 16px 20px 8px;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }
  .eco-full-panel__visual video {
    width: 100%;
    height: 220px;
    max-height: 220px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
  }
  .eco-full-panel__num { font-size: 40px; }
  .eco-full-panel__sep { font-size: 14px; }
  .eco-step__label { font-size: 11px; }
  .eco-step__title { font-size: 20px; }
  .eco-step__body { font-size: 14px; }
  .eco-step__cta { margin-top: 16px; font-size: 13px; }
  .eco-step__cta .btn-circle { width: 34px; height: 34px; }
  .eco-tech__dots-bar {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    justify-content: center;
  }

  /* Robótica */
  .robotica { min-height: 600px; }
  .robotica__inner {
    padding: 48px 20px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .robotica__text {
    max-width: 100%;
    text-align: center;
  }
  .robotica__text .eyebrow { justify-content: center; }
  .robotica__title { font-size: clamp(24px, 6vw, 36px); }
  .robotica__body { font-size: 14px; margin-left: auto; margin-right: auto; }
  .robotica__carousel {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 160px;
    margin: 36px auto 0;
  }
  .robotica__carousel-layer--1,
  .robotica__carousel-layer--2 {
    left: 0;
    right: 0;
    top: 8px;
    bottom: -8px;
  }
  .robotica__carousel-layer--2 { top: 4px; bottom: -4px; }
  .robotica__card {
    position: relative;
    inset: auto;
    padding: 18px;
    border-radius: 14px;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(15,22,51,0.35);
  }
  .robotica__card:not(.is-active) { display: none; }
  .robotica__card-title { font-size: 18px; }
  .robotica__card-media { height: 96px; }
  .robotica__nav {
    justify-content: center;
    width: 100%;
    margin-top: 22px;
  }

  /* Robotica CTA / marquee */
  .robotica-cta { padding-bottom: 56px; }
  .marquee__item { font-size: 15px; }

  /* Soluciones / Sectores */
  .split-panel, .split-panel--reverse {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .split-panel--rounded {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    margin: 0 auto;
    min-height: 0;
  }
  .split-panel__text, .split-panel__text--reverse { padding: 40px 20px; }
  .split-panel__title { font-size: clamp(22px, 6vw, 30px); }
  .split-panel__body { font-size: 15px; margin-bottom: 28px; }
  .split-panel__media {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 8px;
  }
  .split-panel--rounded .split-panel__media { min-height: 240px; }
  .sectores { padding: 40px 16px; overflow-x: hidden; }
  .sectores__panel-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
  .sectores__intro-text h2 { font-size: clamp(24px, 6vw, 36px); }
  .sectores__lead { font-size: 15px; }

  .floating-card, .floating-card--left {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    margin: 12px auto 20px;
    width: calc(100% - 28px);
    max-width: 320px;
    padding: 18px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15,22,51,0.25);
  }
  .floating-card__label { font-size: 10px; margin-bottom: 8px; }
  .floating-card__title { font-size: 20px; margin-bottom: 8px; }
  .floating-card__body {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
    min-height: 0;
  }
  .floating-card__progress { gap: 10px; }
  .floating-card__count { font-size: 12px; }

  /* Header mobile: siempre visible (hamburguesa) */
  .header--hidden {
    transform: none;
  }
  .header {
    z-index: 60;
  }
  .header__burger {
    display: flex;
  }

  /* Proyectos */
  .proyectos { padding: 60px 20px 70px; }
  .proyectos__title { font-size: clamp(28px, 7vw, 42px); }
  .proyecto-card__body { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .proyecto-card__name { font-size: 20px; }
  .proyecto-card__media { height: 220px; }

  /* Partners */
  .partners { padding: 48px 0 56px; }
  .partners__logo { font-size: 16px; }

  /* Nosotros */
  .nos-hero__content { padding: 0 20px 60px; }
  .nos-hero__title { font-size: clamp(28px, 7vw, 42px); }
  .nos-hero__subtitle { font-size: 15px; }

  /* Evita que from-left/from-right corten texto e imágenes en mobile */
  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(20px);
  }
  .reveal.from-left.visible,
  .reveal.from-right.visible {
    transform: none;
  }

  .proposito {
    padding: 60px 20px;
    overflow-x: clip;
  }
  .proposito__grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 28px;
  }
  .proposito__text,
  .proposito__media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .proposito__text p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .proposito__media {
    height: 260px;
    width: 100%;
  }

  .legado {
    padding: 60px 20px;
    overflow-x: clip;
  }
  .legado__grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 32px;
  }
  .legado__text,
  .legado__collage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .legado__text p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .legado__partner-logo {
    max-width: min(240px, 100%);
    height: auto;
    max-height: 42px;
  }
  .legado__collage {
    min-height: 0;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 16px;
  }
  .legado__img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 78%;
    height: 82%;
  }
  .legado__img-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 48%;
    border-width: 3px;
  }
  .legado__stat { font-size: clamp(44px, 12vw, 72px); }

  .timeline { padding: 90px 0; }
  .timeline__top { padding: 0 20px; flex-wrap: wrap; gap: 16px; }
  .timeline__track { padding: 0 0 0 20px; gap: 16px; }
  .timeline__card { flex: 0 0 260px; padding: 28px 24px; }

  .mv {
    padding: 60px 20px;
    overflow-x: clip;
  }
  .mv__intro {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .mv__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .mv__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .mv__card-media {
    height: 240px;
    width: 100%;
  }
  .mv__card-footer h3,
  .mv__card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .valores { padding: 60px 20px; }
  .valores__grid { grid-template-columns: 1fr 1fr; }
  .team { padding: 60px 20px 80px; }
  .team__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-card__media { height: 380px; }

  /* Contacto + Footer */
  .contacto__cta { padding: 80px 20px 70px; }
  .contacto__cta-title { font-size: clamp(28px, 7vw, 42px); }
  .contacto__cta-body { font-size: 15px; }
  .footer { padding: 0 20px 28px; }
  .footer__nav { grid-template-columns: 1fr; gap: 28px; }
  .footer__addr-break { display: none; }
  .footer__wordmark-text { font-size: clamp(40px, 12vw, 72px); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Modal de contacto */
  .contact-modal { padding: 12px; }
  .contact-modal__panel { grid-template-columns: 1fr; max-width: 100%; }
  .contact-modal__left { padding: 24px 20px; }
  .contact-modal__right { padding: 24px 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ---------- MOBILE SMALL (≤420px) ---------- */
@media (max-width: 420px) {
  .hero { padding: 80px 0 44px; }
  .hero__intro { margin-bottom: 44px; }
  .hero__intro .eyebrow { margin-bottom: 28px; }
  .hero__title { font-size: clamp(28px, 9vw, 40px); margin-bottom: 24px; }
  .hero-card {
    flex: 0 0 100%;
    max-width: none;
    height: 200px;
  }
  .hero-card__label { font-size: 12px; }
  .hero-card__icon { width: 16px; height: 16px; }

  .eco-full-panel__visual video { height: 190px; max-height: 190px; }
  .eco-full-panel__num { font-size: 32px; }

  .robotica__card { grid-template-columns: 1fr; }
  .robotica__card-media { height: 140px; }

  .robotica { min-height: 500px; }
  .valores__grid, .team__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #25356d;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,53,109,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(.16,1,.3,1), background 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: #1e86c4;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 32px rgba(30,134,196,0.35);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
@media (max-width: 768px) {
  .back-to-top { bottom: 24px; right: 24px; width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* =========================================================
   SECTORES · PRIVADO (página dedicada)
   ========================================================= */
.page-sectores { background: #fff; color: #14161c; }

.priv-intro {
  position: relative;
  padding: 180px 48px 120px;
  overflow: hidden;
  background: #25356d;
}
.priv-intro__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.75; }
.priv-intro__bg img { width: 100%; height: 100%; object-fit: cover; }
.priv-intro__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(37,53,109,0.94) 0%, rgba(37,53,109,0.85) 45%, rgba(37,53,109,0.6) 100%);
}
.priv-intro__grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.priv-intro__text .eyebrow { margin-bottom: 22px; }
.priv-intro__text h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.priv-intro__text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.priv-intro__media {
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15,22,51,0.16);
}
.priv-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subsector { position: relative; padding: 100px 48px; }
.subsector--muted { background: #f7f8fa; }
.subsector--white { background: #fff; }
.subsector__header { max-width: 1180px; margin: 0 auto 52px; text-align: center; }
.subsector__header h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c1f2b;
}
.subsector__header p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #5b6172;
}

.ss-carousel { position: relative; max-width: 1180px; margin: 0 auto; }
.ss-carousel__viewport { overflow: hidden; border-radius: 20px; }
.ss-carousel__track { display: flex; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.ss-carousel__slide { flex: 0 0 100%; position: relative; height: 460px; overflow: hidden; }
.ss-carousel__slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ss-carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,22,51,0) 35%, rgba(15,22,51,0.86) 100%);
  pointer-events: none;
}
.ss-carousel__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
}
.ss-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 36px 44px;
  max-width: 620px;
}
.ss-carousel__caption h4 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.ss-carousel__caption p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}
.ss-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d7dae2;
  background: #fff;
  color: #25356d;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,22,51,0.1);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ss-carousel__arrow:hover { background: #25356d; color: #fff; border-color: #25356d; }
.ss-carousel__arrow--prev { left: -8px; }
.ss-carousel__arrow--next { right: -8px; }
.ss-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.ss-carousel__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #d7dae2;
  transition: all .3s ease;
  padding: 0;
}
.ss-carousel__dots button.is-active { width: 26px; background: #25356d; }

@media (max-width: 1080px) {
  .priv-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .priv-intro__media { height: 360px; }
  .ss-carousel__arrow--prev { left: 8px; }
  .ss-carousel__arrow--next { right: 8px; }
}
@media (max-width: 640px) {
  .priv-intro, .subsector { padding-left: 24px; padding-right: 24px; }
  .priv-intro { padding-top: 140px; padding-bottom: 80px; }
  .subsector { padding-top: 72px; padding-bottom: 72px; }
  .ss-carousel__slide { height: 360px; }
  .ss-carousel__caption { padding: 28px 24px; }
}

/* =========================================================
   SECTORES · GOBIERNO (página dedicada)
   ========================================================= */
.page-gobierno { background: #fff; color: #14161c; }

.gob-intro {
  position: relative;
  padding: 140px 48px 100px;
  overflow: hidden;
  background: #25356d;
}
.gob-intro__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.75; }
.gob-intro__bg img { width: 100%; height: 100%; object-fit: cover; }
.gob-intro__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(37,53,109,0.94) 0%, rgba(37,53,109,0.85) 45%, rgba(37,53,109,0.6) 100%);
}
.gob-intro__grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.gob-intro__text .eyebrow { margin-bottom: 22px; }
.gob-intro__text h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.gob-intro__text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
}
.gob-intro__media {
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.3);
}
.gob-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subsector--navy { background: #25356d; }
.subsector--light { background: #ffffff; }
.subsector--navy .subsector__header h3 { color: #fff; }
.subsector--navy .subsector__header p { color: rgba(255,255,255,0.75); }
.subsector--light .subsector__header h3 { color: #1c1f2b; }
.subsector--light .subsector__header p { color: #5b6172; }

.ss-carousel--light .ss-carousel__viewport { box-shadow: none; }
.ss-carousel__arrow--light { border-color: #d7dae2; }
.ss-carousel__dots--light button { background: #d7dae2; }
.ss-carousel__dots--light button.is-active { background: #1c1f2b; }
.subsector--navy .ss-carousel__dots button { background: rgba(255,255,255,0.35); }
.subsector--navy .ss-carousel__dots button.is-active { background: #fff; width: 26px; }

@media (max-width: 1080px) {
  .gob-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .gob-intro__media { height: 360px; }
}
@media (max-width: 640px) {
  .gob-intro, .subsector--navy, .subsector--light { padding-left: 24px; padding-right: 24px; }
  .gob-intro { padding-top: 140px; padding-bottom: 80px; }
}

/* =========================================================
   PUBLIC SAFETY (página dedicada)
   ========================================================= */
.page-public-safety { background: #fff; color: #14161c; }
.page-robotics { background: #fff; color: #14161c; }

.eyebrow--center { justify-content: center; }
.eyebrow--navy .eyebrow-line { background: #25356d; }
.eyebrow--navy .eyebrow-label { color: #25356d; }

.btn-white, .btn-navy {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}
.btn-white { background: #fff; color: #25356d; }
.btn-white:hover { background: #e0e3ea; }
.btn-navy { background: #25356d; color: #fff; }
.btn-navy:hover { background: #1c2b57; }

.ps-hero {
  position: relative;
  min-height: 70.4vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #25356d;
}
.ps-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ps-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ps-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(37,53,109,0.3) 0%, rgba(37,53,109,0.6) 45%, #25356d 100%);
}
.ps-hero__content {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px 100px;
}
.ps-hero__content h1,
.ps-hero__title {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(36px,5.2vw,60px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.ps-hero__content p {
  max-width: 600px;
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.ps-cad {
  position: relative;
  background: #25356d;
  padding: 120px 48px 96px;
  z-index: 2;
}
.ps-cad__inner { max-width: 1180px; margin: 0 auto; }
.ps-cad__intro { text-align: center; margin-bottom: 64px; }
.ps-cad__intro h2,
.ps-cad__title {
  margin: 0 0 20px;
  font-size: clamp(30px,3.6vw,46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.ps-cad__intro p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
}
.ps-cad__media {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1633;
  box-shadow:
    0 28px 60px rgba(15, 22, 51, 0.45),
    0 10px 24px rgba(15, 22, 51, 0.28);
}
.ps-cad__video {
  display: block;
  width: 100%;
  height: auto;
}
.ps-modulos {
  position: relative;
  background: #fff;
  padding: 100px 48px 250px;
  z-index: 1;
  overflow: hidden;
}
.ps-modulos__inner { max-width: 1180px; margin: 0 auto; }
.ps-modulos__header { text-align: center; margin-bottom: 56px; }
.ps-modulos__header h3 {
  margin: 0 0 20px;
  font-size: clamp(26px,3vw,38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1c2b57;
}
.ps-modulos__header p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5163;
}
.ps-modulos__row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.ps-modulos__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.ps-modulo-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 12px 32px rgba(15, 22, 51, 0.08);
}
.ps-modulo-card__text {
  flex: 1;
  min-width: 0;
}
.ps-modulo-card__text h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.ps-modulo-card__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6172;
}
.ps-modulo-card__photo {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
}
.ps-modulo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-modulos__grid .ps-modulo-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}
.ps-modulos__grid .ps-modulo-card__photo {
  flex: none;
  width: 100%;
  height: 140px;
  order: -1;
}
.ps-modulo-photo {
  grid-row: span 2;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
}
.ps-modulo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Assemble: cards converge toward the center image on scroll */
.ps-modulo-card--from-tl,
.ps-modulo-card--from-tc,
.ps-modulo-card--from-tr,
.ps-modulo-card--from-ml,
.ps-modulo-card--from-mr,
.ps-modulo-card--from-bl,
.ps-modulo-card--from-br,
.ps-modulo-photo--from-center {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.95s cubic-bezier(.16, 1, .3, 1),
    transform 0.95s cubic-bezier(.16, 1, .3, 1);
}
.ps-modulo-card--from-tl { transform: translate3d(-110px, -56px, 0); transition-delay: 0.04s; }
.ps-modulo-card--from-tc { transform: translate3d(0, -64px, 0); transition-delay: 0.07s; }
.ps-modulo-card--from-tr { transform: translate3d(110px, -56px, 0); transition-delay: 0.1s; }
.ps-modulo-card--from-ml { transform: translate3d(-120px, 0, 0); transition-delay: 0.16s; }
.ps-modulo-photo--from-center { transform: scale(0.86); transition-delay: 0.22s; }
.ps-modulo-card--from-mr { transform: translate3d(120px, 0, 0); transition-delay: 0.28s; }
.ps-modulo-card--from-bl { transform: translate3d(-110px, 64px, 0); transition-delay: 0.34s; }
.ps-modulo-card--from-br { transform: translate3d(110px, 64px, 0); transition-delay: 0.4s; }

.ps-modulos.is-inview .ps-modulo-card--from-tl,
.ps-modulos.is-inview .ps-modulo-card--from-tc,
.ps-modulos.is-inview .ps-modulo-card--from-tr,
.ps-modulos.is-inview .ps-modulo-card--from-ml,
.ps-modulos.is-inview .ps-modulo-card--from-mr,
.ps-modulos.is-inview .ps-modulo-card--from-bl,
.ps-modulos.is-inview .ps-modulo-card--from-br,
.ps-modulos.is-inview .ps-modulo-photo--from-center {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ps-modulo-card--from-tl,
  .ps-modulo-card--from-tc,
  .ps-modulo-card--from-tr,
  .ps-modulo-card--from-ml,
  .ps-modulo-card--from-mr,
  .ps-modulo-card--from-bl,
  .ps-modulo-card--from-br,
  .ps-modulo-photo--from-center {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.ps-prod { position: relative; min-height: 620px; overflow: hidden; background: #172247; }
.ps-prod__bg {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  will-change: transform;
}
.ps-prod__bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1);
}
.ps-prod__bg-slide.is-active { opacity: 1; }
.ps-prod__bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-prod__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15,22,51,0.94) 0%, rgba(15,22,51,0.78) 32%, rgba(15,22,51,0.15) 62%, rgba(15,22,51,0) 100%);
}
.ps-prod__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 200px 48px 100px;
}
.ps-prod__intro { max-width: 520px; margin-bottom: 44px; }
.ps-prod__intro h3 {
  margin: 0 0 14px;
  font-size: clamp(28px,3.2vw,42px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
}
.ps-prod__intro p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.82); }
.ps-prod__carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.ps-prod__viewport { overflow: hidden; border-radius: 20px; max-width: 460px; }
.ps-prod__track { display: flex; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.ps-prod__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(15,22,51,0.28);
}
.ps-prod__slide-text { flex: 1; min-width: 0; }
.ps-prod__slide-text h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.ps-prod__slide-text p { margin: 0; font-size: 16px; line-height: 1.6; color: #5b6172; }
.ps-prod__slide-photo { flex: 0 0 130px; height: 130px; border-radius: 14px; overflow: hidden; }
.ps-prod__slide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-prod__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ps-prod__arrow:hover { background: rgba(255,255,255,0.26); }
.ps-prod__dots { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.ps-prod__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.3);
  transition: all .3s ease;
  padding: 0;
}
.ps-prod__dots button.is-active { width: 26px; background: #fff; }

.ps-infra { position: relative; background: #25356d; padding: 120px 48px; overflow: hidden; }
.ps-infra__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 5px);
}
.ps-infra__grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.ps-infra__grid h2 {
  margin: 0 0 24px;
  font-size: clamp(30px,3.4vw,44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.ps-infra__grid p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
}
.ps-infra__stat {
  font-size: clamp(48px,6vw,76px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 16px;
}

.ps-proyectos { position: relative; background: #fff; padding: 120px 48px; }
.ps-proyectos__inner { max-width: 1180px; margin: 0 auto; }
.ps-proyectos__header { text-align: center; margin-bottom: 60px; }
.ps-proyectos__header h2 {
  margin: 0;
  font-size: clamp(30px,3.6vw,46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1c2b57;
}
.ps-proyectos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ps-proj-card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,22,51,0.06);
}
.ps-proj-card__photo { height: 200px; overflow: hidden; }
.ps-proj-card__photo img,
.ps-proj-card__photo .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-proj-card__body { padding: 22px 22px 26px; }
.ps-proj-card__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1c1f2b;
  margin-bottom: 6px;
}
.ps-proj-card__client {
  font-size: 13.5px;
  font-weight: 600;
  color: #5b6172;
  margin-bottom: 12px;
}
.ps-proj-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1f8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #25356d;
}


@media (max-width: 1080px) {
  .ps-modulos__row2,
  .ps-modulos__grid { grid-template-columns: 1fr; }
  .ps-modulo-photo {
    grid-row: auto;
    height: 280px;
    min-height: 280px;
  }
  .ps-modulo-card { flex-direction: column; align-items: flex-start; }
  .ps-modulo-card__photo,
  .ps-modulos__grid .ps-modulo-card__photo {
    flex: none;
    width: 100%;
    height: 180px;
  }
  .ps-modulo-card--from-tl,
  .ps-modulo-card--from-tc,
  .ps-modulo-card--from-tr,
  .ps-modulo-card--from-ml,
  .ps-modulo-card--from-mr,
  .ps-modulo-card--from-bl,
  .ps-modulo-card--from-br {
    transform: translate3d(0, 42px, 0);
  }
  .ps-modulo-photo--from-center {
    transform: translate3d(0, 28px, 0) scale(0.94);
  }
  .ps-infra__grid { grid-template-columns: 1fr; gap: 40px; }
  .ps-proyectos__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ps-hero__content, .ps-cad, .ps-modulos, .ps-prod__inner, .ps-infra, .ps-proyectos {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ps-prod__slide { flex-direction: column; }
  .ps-prod__viewport { max-width: 100%; }
  .ps-proyectos__grid { grid-template-columns: 1fr; }
  .ps-cad__arrow { display: none; }
  .ps-cad {
    padding-bottom: 72px;
  }
  .ps-cad__media {
    border-radius: 12px;
  }
}


/* =========================================================
   SAIMON VISION (Videoanalítica)
   ========================================================= */
.v-hero { position: relative; min-height: 70.4vh; display: flex; align-items: flex-end; overflow: hidden; background: #25356d; }
.v-hero__bg { position: absolute; inset: 0; z-index: 0; }
.v-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.v-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(37,53,109,0.3) 0%, rgba(37,53,109,0.6) 45%, #25356d 100%);
}
.v-hero__content {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px 100px;
}
.v-hero__content h1,
.v-hero__title {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(36px,5.2vw,60px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.v-hero__content p {
  max-width: 600px;
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.v-intro { position: relative; background: #fff; padding: 120px 48px; }
.v-intro__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.v-intro__grid h2 {
  margin: 0 0 24px;
  font-size: clamp(28px,3.2vw,42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1c2b57;
}
.v-intro__grid p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; color: #4b5163; }
.v-intro__grid p:last-child { margin-bottom: 0; }
.v-intro__photo { border-radius: 16px; overflow: hidden; aspect-ratio: 6/5; }
.v-intro__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.v-flag { position: relative; background: #25356d; padding: 120px 48px 100px; }
.v-flag__inner { max-width: 1180px; margin: 0 auto; }
.v-flag__intro { text-align: center; margin-bottom: 48px; }
.v-flag__intro h2,
.v-flag__title {
  margin: 0 0 20px;
  font-size: clamp(30px,3.6vw,46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.v-flag__intro p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
}
.v-flag__video {
  border-radius: 20px;
  overflow: hidden;
  background: #0f1633;
  box-shadow: 0 30px 70px rgba(8,12,30,0.4);
  margin-bottom: 56px;
}
.v-flag__video video,
.v-flag__player {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #0f1633;
  object-fit: cover;
}
.v-flag__video-fallback {
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.v-flag__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v-cap-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 18px 22px;
}
.v-cap-card__photo {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.v-cap-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-cap-card h4 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.v-cap-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }

.v-sect { position: relative; background: #fff; padding: 120px 48px 160px; }
.v-sect__inner { max-width: 1180px; margin: 0 auto; }
.v-sect__header { text-align: center; margin-bottom: 56px; }
.v-sect__header h2 {
  margin: 0 0 18px;
  font-size: clamp(28px,3.4vw,44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1c2b57;
}
.v-sect__header p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.75;
  color: #4b5163;
}
.v-sect__carousel { position: relative; }
.v-sect__viewport {
  overflow: hidden;
  border-radius: 24px;
}
.v-sect__track { display: flex; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.v-sect__slide {
  flex: 0 0 100%;
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #1c2b57;
}
.v-sect__slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-sect__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,22,51,0) 32%, rgba(15,22,51,0.78) 100%);
  pointer-events: none;
}
.v-sect__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 40px 48px;
  max-width: 640px;
}
.v-sect__caption h4 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.v-sect__caption p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}
.v-sect__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #1c1f2b;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,22,51,0.18);
}
.v-sect__arrow:hover { background: #f2f3f6; }
.v-sect__arrow--prev { left: 16px; }
.v-sect__arrow--next { right: 16px; }
.v-sect__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.v-sect__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #d7dae2;
  transition: all .3s ease;
  padding: 0;
}
.v-sect__dots button.is-active { width: 26px; background: #1c1f2b; }

.v-plat {
  position: relative;
  background: #25356d;
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
}
.v-plat__scanlines {
  position: absolute;
  inset: 0 55% 0 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 5px);
}
.v-plat__text {
  position: relative;
  z-index: 2;
  padding: 100px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v-plat__text h2 {
  margin: 0 0 22px;
  font-size: clamp(28px,3vw,40px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.v-plat__text p {
  margin: 0;
  max-width: 420px;
  font-size: 17.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
}
.v-plat__photo { position: relative; min-height: 640px; }
.v-plat__photo-stack {
  position: absolute;
  inset: 0;
}
.v-plat__photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1);
}
.v-plat__photo-slide.is-active { opacity: 1; }
.v-plat__photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-plat__photo .placeholder-img { position: absolute; inset: 0; }
.v-plat__card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 340px;
  max-width: calc(100% - 40px);
  margin: 0 40px 40px 0;
  background: #fff;
  border-radius: 16px;
  padding: 32px 30px;
  box-shadow: 0 30px 60px rgba(8,12,30,0.35);
}
.v-plat__card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #25356d;
  margin-bottom: 14px;
}
.v-plat__card h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.v-plat__card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: #5b6172;
}
.v-plat__card-footer { display: flex; align-items: center; gap: 12px; }
.v-plat__card-footer span {
  font-size: 13px;
  font-weight: 700;
  color: #1c2b57;
  flex-shrink: 0;
}
.v-plat__card-bar {
  flex: 1;
  height: 3px;
  background: #e6e8ee;
  border-radius: 999px;
  overflow: hidden;
}
.v-plat__card-bar div {
  height: 100%;
  width: 25%;
  background: #25356d;
  border-radius: 999px;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}

.v-hero__title.words-visible .title-word-inner,
.v-flag__title.words-visible .title-word-inner { transform: translateY(0); }
.v-flag__title .title-word-inner {
  transition: transform 0.9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--wi, 0) * 0.06s);
}

@media (max-width: 1080px) {
  .v-intro__grid { grid-template-columns: 1fr; }
  .v-flag__grid { grid-template-columns: 1fr 1fr; }
  .v-plat { grid-template-columns: 1fr; }
  .v-plat__photo { min-height: 420px; }
  .v-sect__slide { height: 360px; }
  .v-sect__caption { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .v-hero__content,
  .v-intro,
  .v-flag,
  .v-sect,
  .v-plat__text { padding-left: 24px; padding-right: 24px; }
  .v-flag__grid { grid-template-columns: 1fr; }
  .v-plat__card { width: calc(100% - 40px); }
  .v-sect__arrow--prev { left: 10px; }
  .v-sect__arrow--next { right: 10px; }
}


/* =========================================================
   SAIMON ROBOTICS
   ========================================================= */
.eyebrow-line--light { background: rgba(255,255,255,0.55); }
.eyebrow-label--light { color: rgba(255,255,255,0.85); }

.rb-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rb-arrow:hover { background: rgba(255,255,255,0.12); }
.rb-arrow:disabled { opacity: 0.35; cursor: default; }
.btn-white--lg { padding: 18px 34px; font-size: 16px; }

.rb-hero {
  position: relative;
  min-height: max(68vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #16214a;
}
.rb-hero__bg { position: absolute; inset: 0; z-index: 0; }
.rb-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.rb-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22,33,74,0.25) 0%, rgba(21,29,63,0.62) 48%, #25356d 100%);
}
.rb-hero__content {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 120px 48px 96px;
}
.rb-hero__content h1,
.rb-hero__title {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(36px,5.2vw,60px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.rb-hero__content p {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.rb-hero__title.words-visible .title-word-inner { transform: translateY(0); }

.rb-cats { position: relative; overflow: hidden; }
.rb-cats__blue {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 590px;
  background: #25356d;
  z-index: 0;
}
.rb-cats__blue::after {
  content: '';
  position: absolute;
  top: 590px; left: 0; right: 0; bottom: -2000px;
  background: #fff;
}
.rb-cats__inner { position: relative; z-index: 2; padding: 90px 0 100px; }
.rb-cats__head {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rb-cats__head h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(28px,3.4vw,42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.rb-cats__arrows { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rb-cats__viewport {
  overflow: hidden;
  width: 100%;
  /* padding (not margin): initial align matches content; cards can scroll to the left edge */
  padding-left: max(48px, calc((100% - 1280px) / 2 + 48px));
}
.rb-cats__track {
  display: flex;
  gap: 24px;
  will-change: transform;
}
.rb-cats__card {
  flex: 0 0 calc(26.5625% - 18px); /* ~15% smaller than 31.25% */
  min-width: 255px;
  color: inherit;
  text-decoration: none;
}
.rb-cats__card:hover { color: inherit; }
.rb-cats__img {
  aspect-ratio: 3/3.6;
  overflow: hidden;
  border-radius: 10px;
  background: #e9ebf1;
  box-shadow: 0 15px 34px rgba(15,22,51,0.22);
}
.rb-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.rb-cats__card h4 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1c2b57;
}
.rb-cats__card p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #5b6172;
}
.rb-cats__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #25356d;
}
.rb-cats__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #25356d;
  color: #fff;
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease;
}
.rb-cats__link-icon svg { width: 15px; height: 15px; }
.rb-cats__card:hover .rb-cats__link-icon,
.rb-cats__link:hover .rb-cats__link-icon {
  transform: translateX(4px);
  background: #1e86c4;
}

.rb-block { position: relative; padding: 110px 48px; }
.rb-block--white { background: #fff; }
.rb-block--gray { background: #f7f8fa; }
.rb-block__inner {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.rb-block__inner--reverse .rb-block__text { order: 1; }
.rb-block__inner--reverse .rb-block__img { order: 2; }
.rb-block__img {
  aspect-ratio: 4/3.86;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ebf1;
}
.rb-block__img img { width: 100%; height: 100%; object-fit: cover; }
.rb-block__text h2 {
  margin: 0 0 20px;
  font-size: clamp(26px,3vw,38px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.rb-block__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5b6172;
}
.rb-block__text .rb-cats__link {
  margin-top: 28px;
  text-decoration: none;
}

.rb-panels {
  position: relative;
  background: #fff;
  padding: 80px 48px;
  display: flex;
  justify-content: center;
}
.rb-panels--gray { background: #f7f8fa; }
.rb-panels .split-panel__title { color: #fff; }
.rb-panels .split-panel__text { color: #fff; }

.rb-close {
  position: relative;
  background: #25356d;
  padding: 120px 48px;
  text-align: center;
  overflow: hidden;
}
.rb-close__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rb-close__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.45;
}
.rb-close__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(37,53,109,0.55) 0%, rgba(37,53,109,0.72) 50%, rgba(37,53,109,0.88) 100%);
}
.rb-close__scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 5px);
}
.rb-close__inner { position: relative; z-index: 3; max-width: 680px; margin: 0 auto; }
.rb-close__inner h2 {
  margin: 0 0 20px;
  font-size: clamp(30px,3.6vw,46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.rb-close__inner p {
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 1080px) {
  .rb-block__inner { grid-template-columns: 1fr; gap: 36px; }
  .rb-block__inner--reverse .rb-block__text { order: 2; }
  .rb-block__inner--reverse .rb-block__img { order: 1; }
  .rb-cats__card { flex: 0 0 calc(40.8% - 12px); }
  .rb-panels { padding: 56px 24px; }
}
@media (max-width: 640px) {
  .rb-hero__content,
  .rb-cats__head,
  .rb-block,
  .rb-panels,
  .rb-close { padding-left: 24px; padding-right: 24px; }
  .rb-cats__viewport { padding-left: 24px; }
  .rb-cats__card { flex: 0 0 66.3%; }
}


/* =========================================================
   SAIMON ANALYTICS
   ========================================================= */
.page-analytics { background: #fff; color: #14161c; }
.btn-navy--lg { padding: 18px 34px; font-size: 16px; }

.an-hero {
  position: relative;
  min-height: max(68vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #16214a;
}
.an-hero__bg { position: absolute; inset: 0; z-index: 0; }
.an-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.an-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22,33,74,0.25) 0%, rgba(21,29,63,0.62) 48%, #25356d 100%);
}
.an-hero__content {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 120px 48px 96px;
}
.an-hero__content h1,
.an-hero__title {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(36px,5.2vw,60px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.an-hero__content p {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.an-hero__title.words-visible .title-word-inner { transform: translateY(0); }

.an-block { padding: 110px 48px; }
.an-block--white { background: #fff; }
.an-block__inner {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.an-block__img {
  aspect-ratio: 4/3.86;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ebf1;
}
.an-block__img img { width: 100%; height: 100%; object-fit: cover; }
.an-block__text h2 {
  margin: 0 0 24px;
  font-size: clamp(26px,3vw,38px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.an-block__text p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #5b6172;
}
.an-block__text p:last-child { margin-bottom: 0; }

.an-product { padding: 110px 48px; }
.an-product--gray { background: #f7f8fa; }
.an-product__inner { max-width: 1280px; margin: 0 auto; }
.an-product__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.an-product__head h2 {
  margin: 0 0 18px;
  font-size: clamp(26px,3vw,38px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.an-product__head p { margin: 0; font-size: 16px; line-height: 1.7; color: #5b6172; }

.an-cards { display: grid; gap: 24px; }
.an-cards--3 { grid-template-columns: repeat(3, 1fr); }
.an-card {
  background: #fff;
  border: 1px solid #e4e6ec;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15,22,51,0.05);
  overflow: hidden;
}
.an-card--img p {
  margin: 0;
  padding: 24px 28px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  color: #1c2b57;
}
.an-card__media { aspect-ratio: 16/10; background: #e9ebf1; }
.an-card__media img { width: 100%; height: 100%; object-fit: cover; }

.an-links {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #16214a;
}
.an-links__bg { position: absolute; inset: 0; z-index: 0; }
.an-links__bg img { width: 100%; height: 100%; object-fit: cover; }
.an-links__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, #16214a 0%, rgba(22,33,74,0.85) 32%, rgba(22,33,74,0.35) 62%, rgba(22,33,74,0.1) 100%);
}
.an-links__inner {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 48px;
}
.an-links__inner > .eyebrow,
.an-links__inner > h2,
.an-links__inner > p,
.an-links__card,
.an-links__nav { max-width: 640px; }
.an-links__inner h2 {
  margin: 0 0 22px;
  font-size: clamp(30px,4vw,46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.an-links__inner > p {
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.an-links__card {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 24px 60px rgba(8,12,30,0.35);
}
.an-links__cardtext { flex: 1; min-width: 0; }
.an-links__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a90a3;
}
.an-links__cardtext h4 {
  margin: 8px 0 8px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.an-links__cardtext p { margin: 0; font-size: 16px; line-height: 1.5; color: #5b6172; }
.an-links__cardicon {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #25356d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.an-links__cardicon i,
.an-links__cardicon svg { width: 38px; height: 38px; color: #fff; }
.an-links__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.an-links__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.an-links__arrow:hover { background: rgba(255,255,255,0.12); }
.an-links__dots { display: flex; align-items: center; gap: 8px; }
.an-links__dots span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all .25s;
  width: 7px;
}
.an-links__dots span.is-active { width: 24px; background: #fff; }

.an-close {
  position: relative;
  background: #fff;
  padding: 120px 48px;
  text-align: center;
  overflow: hidden;
}
.an-close__inner { position: relative; max-width: 680px; margin: 0 auto; }
.an-close__inner h2 {
  margin: 0 0 40px;
  font-size: clamp(30px,3.6vw,46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1c2b57;
}

@media (max-width: 1080px) {
  .an-block__inner { grid-template-columns: 1fr; gap: 36px; }
  .an-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .an-hero__content,
  .an-block,
  .an-product,
  .an-close { padding-left: 24px; padding-right: 24px; }
  .an-links__inner { padding: 80px 24px; }
  .an-cards--3 { grid-template-columns: 1fr; }
  .an-links__card { flex-direction: column; text-align: center; }
}

/* =========================================================
   LEGAL — Aviso de Privacidad
   ========================================================= */
.page-legal { background: #fff; color: #14161c; }

.legal-hero {
  position: relative;
  padding: 148px 48px 80px;
  background: linear-gradient(155deg, #25356d 0%, #16214a 55%, #0f1633 100%);
  overflow: hidden;
}
.legal-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 80% 0%, rgba(30,134,196,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.legal-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.legal-hero__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.legal-hero__subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.legal {
  padding: 80px 48px 96px;
  background: #fff;
}
.legal__inner {
  max-width: 820px;
  margin: 0 auto;
}
.legal__intro {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.75;
  color: #4b5163;
}
.legal__intro:last-of-type { margin-bottom: 48px; }
.legal__section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e6e8ee;
}
.legal__section:last-of-type { border-bottom: none; padding-bottom: 0; }
.legal__section h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1c2b57;
}
.legal__section p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5163;
}
.legal__section p:last-child { margin-bottom: 0; }
.legal__section ul,
.legal__section ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5163;
}
.legal__section li + li { margin-top: 8px; }
.legal__section strong { color: #1c2b57; font-weight: 700; }
.legal__pending { color: #767d8d; }
.legal__meta {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e6e8ee;
  font-size: 14px;
  color: #767d8d;
}

.contacto--compact .contacto__cta { display: none; }
.contacto--compact .footer { padding-top: 0; }

@media (max-width: 768px) {
  .legal-hero { padding: 120px 20px 56px; }
  .legal { padding: 56px 20px 72px; }
  .legal__intro { font-size: 16px; }
  .legal__section p,
  .legal__section ul,
  .legal__section ol { font-size: 15px; }
}
