/* ============================================================
   VIAL CODE — Landing Page
   Paleta base azul + paletas por producto en Soluciones
============================================================ */

:root {
  /* Paleta base */
  --navy-900: #061c33;
  --navy-800: #0a2a4a;   /* principal */
  --navy-700: #0f3a63;
  --blue-500: #1e5f8c;   /* secundario */
  --sky-400:  #5bc0eb;   /* acento */
  --white:    #ffffff;
  --ink:      #12283d;
  --muted:    #5a7186;

  /* Paletas de producto */
  --olimpica-red:    #c8102e;
  --olimpica-red-bg: #7a1220;
  --sic-orange:      #f5820b;
  --sic-orange-bg:   #8a4506;

  /* Red / Blue team */
  --redteam:  #e63946;
  --blueteam: #2f80c2;

  --radius: 16px;
  --nav-h: 72px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: auto; } /* Lenis maneja el scroll */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section { position: relative; padding: 110px 0; }

/* ————— Títulos genéricos ————— */
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 2px;
  background: var(--sky-400);
  vertical-align: middle;
  margin-right: 12px;
}
.section-kicker--light { color: var(--sky-400); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-800);
  margin-bottom: 22px;
}
.section-title--light { color: var(--white); }
.section-title .accent { color: var(--sky-400); }

.section-lead { max-width: 640px; color: var(--muted); }
.section-lead--light { color: rgba(255, 255, 255, 0.82); }

/* ————— Botones ————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--sky-400);
  color: var(--navy-900);
  box-shadow: 0 8px 26px rgba(91, 192, 235, 0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(91, 192, 235, 0.5);
}
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  background: transparent;
}
.navbar.is-solid {
  background: rgba(6, 28, 51, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.navbar__inner {
  width: min(1280px, 94%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.navbar__logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  color: var(--white);
}
.navbar__logo-mark svg { width: 20px; height: 20px; }
.navbar__logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}
.navbar__logo-text b { font-weight: 800; color: var(--sky-400); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}
.navbar__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.navbar__links a.is-active { color: var(--sky-400); }
.navbar__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--sky-400);
}
.navbar__links a.navbar__cta {
  background: var(--sky-400);
  color: var(--navy-900);
  font-weight: 700;
  margin-left: 8px;
}
.navbar__links a.navbar__cta:hover { background: var(--white); }
.navbar__links a.navbar__cta.is-active::after { display: none; }

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 120;
  padding: 8px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay menú mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--blue-500));
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { text-align: center; display: grid; gap: 8px; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  display: inline-block;
  padding: 6px 18px;
  transition: color 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
}
.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
  transition: color 0.25s ease, opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* stagger del overlay */
.mobile-menu__links li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu__links li:nth-child(2) a { transition-delay: 0.1s; }
.mobile-menu__links li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-menu__links li:nth-child(4) a { transition-delay: 0.2s; }
.mobile-menu__links li:nth-child(5) a { transition-delay: 0.25s; }
.mobile-menu__links li:nth-child(6) a { transition-delay: 0.3s; }
.mobile-menu__links li:nth-child(7) a { transition-delay: 0.35s; }
.mobile-menu__links li:nth-child(8) a { transition-delay: 0.4s; }
.mobile-menu__links a:hover, .mobile-menu__links a.is-active { color: var(--sky-400); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__layer { position: absolute; inset: 0; will-change: transform; }

.hero__layer--bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(30, 95, 140, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(91, 192, 235, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  inset: -12% 0;
}
.hero__layer--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 192, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 192, 235, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
}

.hero__layer--icons { color: var(--sky-400); inset: -8% 0; }
.float-icon {
  position: absolute;
  width: 54px; height: 54px;
  opacity: 0.32;
  filter: drop-shadow(0 0 12px rgba(91, 192, 235, 0.4));
  animation: heroFloat 7s ease-in-out infinite;
}
.fi-1 { top: 18%; left: 10%; animation-delay: 0s; }
.fi-2 { top: 26%; right: 12%; width: 68px; height: 68px; animation-delay: -1.5s; }
.fi-3 { bottom: 24%; left: 16%; animation-delay: -3s; }
.fi-4 { bottom: 30%; right: 18%; width: 60px; height: 60px; animation-delay: -4.5s; }
.fi-5 { top: 58%; left: 46%; width: 44px; height: 44px; animation-delay: -2s; opacity: 0.2; }
.fi-6 { top: 12%; left: 42%; width: 40px; height: 40px; animation-delay: -5.5s; opacity: 0.22; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
}
.hero__kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sky-400);
  margin-bottom: 22px;
}
.hero__title { font-family: var(--font-display); color: var(--white); }
.hero__title-line {
  display: block;
  font-size: clamp(3rem, 10vw, 6.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.hero__title-line b {
  background: linear-gradient(120deg, var(--sky-400), #8fd8f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.hero__title-sub em { color: var(--sky-400); font-style: normal; }
.hero__desc {
  max-width: 520px;
  margin: 22px auto 36px;
  color: rgba(255, 255, 255, 0.65);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--sky-400);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   QUIÉNES SOMOS
============================================================ */
.about { background: #f4f9fd; overflow: hidden; }
.about__bg {
  position: absolute;
  inset: -20% 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(91, 192, 235, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 35% at 8% 75%, rgba(30, 95, 140, 0.1), transparent 65%);
  will-change: transform;
  pointer-events: none;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__text p + p { margin-top: 16px; }
.about__text p { color: var(--muted); }

.about__pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pill-card {
  background: var(--white);
  border: 1px solid rgba(30, 95, 140, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 42, 74, 0.12);
  border-color: var(--sky-400);
}
.pill-card svg {
  width: 34px; height: 34px;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.pill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.pill-card p { font-size: 0.86rem; color: var(--muted); }

/* ============================================================
   SOLUCIONES — fondo animado por producto (JS cambia el color)
============================================================ */
.solutions {
  background-color: var(--navy-800); /* color inicial; GSAP lo anima */
  padding-bottom: 0;
  color: var(--white);
}
.solutions__header { text-align: center; margin-bottom: 70px; }
.solutions__header .section-kicker::before { background: rgba(255,255,255,0.5); }

.product { padding: 60px 0 110px; }
.product__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.product__grid--reverse .product__info { order: 2; }
.product__grid--reverse .product__shots { order: 1; }

.product__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.product__icon svg { width: 32px; height: 32px; color: var(--white); }

.product__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.product__name b { font-weight: 400; opacity: 0.85; }
.product__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.9);
}
.product__desc { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.product__features { margin-top: 22px; display: grid; gap: 10px; }
.product__features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.product__features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
  display: grid;
  place-items: center;
}

/* Acentos por producto */
.product--olimpica .product__tagline { color: #ffd7dd; }
.product--sic .product__tagline { color: #ffe3c4; }

/* ————— Mockups de capturas ————— */
.product__shots {
  display: grid;
  gap: 26px;
}
.product__shots .mockup:nth-child(2) { margin-left: 12%; }
.product__shots .mockup:nth-child(3) { margin-left: 4%; }

.mockup { width: min(420px, 100%); }
.mockup--laptop .mockup__screen {
  background: #0d1420;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px 12px 4px 4px;
  padding: 10px;
  aspect-ratio: 16 / 9.5;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.mockup--laptop .mockup__base {
  height: 12px;
  margin: 0 -5%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.12));
  border-radius: 0 0 14px 14px;
}
.mockup:hover .mockup__screen {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}

/* Placeholder de captura — REEMPLAZAR por <img> del software real */
.mockup__placeholder {
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}
.mockup__placeholder span { font-weight: 600; font-size: 0.9rem; }
.mockup__placeholder small { font-size: 0.72rem; opacity: 0.7; }
/* Capturas reales: "contain" para que nunca se recorte el software
   (las capturas suelen ser más panorámicas que el marco del mockup);
   el fondo oscuro de .mockup__screen rellena los bordes sobrantes. */
.mockup__screen img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Flotación continua de los mockups (el wrapper evita conflicto con GSAP) */
.mockup__float { animation: mockFloat 5.2s ease-in-out infinite; }
.mockup:nth-child(2) .mockup__float { animation-delay: -1.8s; }
.mockup:nth-child(3) .mockup__float { animation-delay: -3.4s; }
@keyframes mockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ————— Ícono Olímpica Music: nota "tocada" + ondas + notas flotando ————— */
.product__icon { overflow: visible; position: relative; }
.product__icon .icon-main { position: relative; z-index: 2; }

.icon-ripple {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: iconRipple 2.2s ease-out infinite;
  pointer-events: none;
}
.icon-ripple--2 { animation-delay: 1.1s; }
@keyframes iconRipple {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.mini-note {
  position: absolute;
  left: 50%;
  bottom: 65%;
  font-size: 1.05rem;
  color: #ffd7dd;
  opacity: 0;
  z-index: 1;
  animation: noteRise 2.6s ease-in infinite;
  pointer-events: none;
}
.mini-note--2 { left: 18%; font-size: 0.85rem; animation-delay: 0.9s; }
.mini-note--3 { left: 78%; animation-delay: 1.7s; }
@keyframes noteRise {
  0% { transform: translate(-50%, 0) rotate(-12deg) scale(0.7); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -70px) rotate(16deg) scale(1.1); opacity: 0; }
}

/* ————— Ícono SIC: monedas cayendo dentro de la billetera ————— */
.coin {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: #ffd166;
  color: #7a4a06;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  opacity: 0;
  z-index: 1;
  animation: coinDrop 2.4s cubic-bezier(0.55, 0, 0.7, 0.4) infinite;
  pointer-events: none;
}
.coin--1 { margin-left: -22px; animation-delay: 0s; }
.coin--2 { animation-delay: 0.8s; }
.coin--3 { margin-left: 4px; animation-delay: 1.6s; }
@keyframes coinDrop {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translateY(42px) rotate(160deg); opacity: 1; }
  70% { transform: translateY(48px) rotate(180deg); opacity: 0; }
  100% { opacity: 0; }
}
/* La billetera "rebota" cada vez que cae una moneda */
.product__icon--wallet .icon-main { animation: walletBounce 0.8s ease-in-out infinite; }
@keyframes walletBounce {
  0%, 55%, 100% { transform: scale(1); }
  72% { transform: scale(1.07, 0.93); }
}

/* ============================================================
   CIBERSEGURIDAD — paneles full-width, uno por servicio
============================================================ */
.cyber {
  background: #07101d;
  color: var(--white);
  padding-top: 110px;
}
.cyber__header {
  text-align: center;
  max-width: 780px;
  padding-bottom: 90px;
}
.cyber__header .section-lead { margin-inline: auto; }

.cyber-panel {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}
.cyber-panel__grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.cyber-panel--flip .cyber-panel__text { order: 2; }
.cyber-panel--flip .cyber-panel__scene { order: 1; }

/* Paletas por panel */
.cyber-panel--red   { background: linear-gradient(160deg, #23050a, #57101c 55%, #7a1220); }
.cyber-panel--blue  { background: linear-gradient(160deg, #04101f, #08335e 60%, #0a4a80); }
.cyber-panel--green { background: linear-gradient(160deg, #04180f, #0b4028 60%, #12603c); }
.cyber-panel--steel { background: linear-gradient(160deg, #0a1622, #14293c 60%, #1e3d57); }
.cyber-panel--cyan  { background: linear-gradient(160deg, #03202c, #065a74 65%, #0a7d9e); }

.cyber-panel__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.13;
  margin-bottom: 6px;
}
.cyber-panel__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
}
.cyber-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin: 20px 0 16px;
  line-height: 1.15;
}
.cyber-panel__text > p { color: rgba(255, 255, 255, 0.82); max-width: 520px; }
.cyber-panel__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.cyber-panel__tags li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

/* Lluvia de caracteres (canvas, panel Red Team).
   Un <canvas> es un elemento reemplazado: inset:0 por sí solo NO lo
   estira (usa su tamaño intrínseco 300x150), por eso se fija
   width/height explícitos al 100% del panel. */
.cyber-panel__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0.55;
}

/* Anillos de radar (panel Blue Team) */
.panel-rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.panel-rings i {
  position: absolute;
  left: 30%; top: 50%;
  width: 46vmin; height: 46vmin;
  border: 1px solid rgba(124, 192, 238, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ringPulse 4.5s ease-out infinite;
}
.panel-rings i:nth-child(2) { animation-delay: 1.5s; }
.panel-rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ————— Escenas ilustradas ————— */
.scene { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }

/* Escena hacker: terminal que "tipea" + figura encapuchada */
.hack-terminal {
  background: rgba(10, 3, 5, 0.88);
  border: 1px solid rgba(255, 139, 149, 0.45);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.76rem;
  overflow: hidden;
}
.hack-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 139, 149, 0.25);
}
.hack-terminal__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.hack-terminal__bar i:first-child { background: #e63946; }
.hack-terminal__bar b {
  margin-left: auto;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}
.hack-terminal__body { padding: 16px 18px 20px; display: grid; gap: 10px; }
.tline {
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  color: rgba(255, 214, 220, 0.85);
}
.tline--alert { color: #ff8b95; font-weight: 700; }
.hack-terminal.is-typing .tline-1 { animation: typeLine 1s steps(30, end) 0.2s forwards; }
.hack-terminal.is-typing .tline-2 { animation: typeLine 1s steps(30, end) 1.4s forwards; }
.hack-terminal.is-typing .tline-3 { animation: typeLine 1s steps(30, end) 2.6s forwards; }
.hack-terminal.is-typing .tline-4 { animation: typeLine 1s steps(30, end) 3.8s forwards; }
@keyframes typeLine { to { width: 100%; } }
.tline--alert::after {
  content: "▊";
  animation: caretBlink 0.8s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hacker-fig {
  width: 150px;
  margin: 20px auto 0;
  color: #ff9aa4;
  filter: drop-shadow(0 0 14px rgba(230, 57, 70, 0.4));
  animation: hackerBob 2.2s ease-in-out infinite;
}
@keyframes hackerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hacker-arm { animation: armType 0.45s ease-in-out infinite alternate; transform-origin: top center; }
.hacker-arm--r { animation-delay: 0.22s; }
@keyframes armType { to { transform: translateY(2.5px); } }

/* Escena defensa: solo el escudo, pulsando, con los virus impactando (GSAP) */
.scene--defense {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.defender-fig {
  width: min(300px, 85%);
  height: auto;
  color: #a9d6f5;
}
.def-shield {
  transform-origin: 110px 86px;
  transform-box: view-box;
  animation: shieldPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(91, 192, 235, 0.55));
}
@keyframes shieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.def-check { stroke: var(--sky-400); }
.virus {
  position: absolute;
  left: 50%; top: 47%;
  width: 36px; height: 36px;
  color: #ff8b95;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.55));
}

/* Escena charla: orador + pantalla + birretes flotando */
.scene--talk { padding: 20px 0; }
.talk-fig { width: 100%; color: #bfe8d2; }
.talk-chart {
  stroke: #8fe0b0;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: chartDraw 3.2s ease-in-out infinite;
}
@keyframes chartDraw {
  0% { stroke-dashoffset: 120; }
  45%, 75% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.talk-arm { transform-origin: 168px 66px; transform-box: view-box; animation: armPoint 2.4s ease-in-out infinite; }
@keyframes armPoint {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-9deg); }
}
.talk-wave { opacity: 0; animation: wavePulse 2s ease-out infinite; }
.tw2 { animation-delay: 0.35s; }
@keyframes wavePulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
.grad-cap {
  position: absolute;
  width: 30px;
  color: #8fe0b0;
  animation: capFloat 5s ease-in-out infinite;
}
.gc1 { top: -6%; left: 8%; }
.gc2 { top: 4%; right: 6%; width: 24px; animation-delay: -1.8s; }
.gc3 { bottom: -4%; left: 30%; width: 22px; animation-delay: -3.2s; }
@keyframes capFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

/* Escena ISO: carpeta + documentos + candado que se cierra */
.scene--iso { padding: 10px 0; }
.iso-fig { width: 100%; color: #cfe3f5; }
.iso-doc { animation: docFloat 4s ease-in-out infinite; }
.iso-doc--2 { animation-delay: -2s; }
@keyframes docFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.iso-shackle { animation: lockClose 3.2s ease-in-out infinite; }
@keyframes lockClose {
  0%, 20% { transform: translateY(-6px); }
  35%, 80% { transform: translateY(0); }
  95%, 100% { transform: translateY(-6px); }
}
.iso-lock rect { filter: drop-shadow(0 0 10px rgba(91, 192, 235, 0.4)); }
.iso-check { stroke: var(--sky-400); animation: wavePulse 2.6s ease-in-out infinite; }

/* Escena IA: cerebro con red neuronal pulsante */
.scene--ia { padding: 10px 0; }
.ia-fig { width: min(340px, 100%); margin-inline: auto; display: block; color: #b8ecfa; }
.ia-brain { filter: drop-shadow(0 0 16px rgba(91, 192, 235, 0.45)); }
.ia-link {
  stroke-dasharray: 5 6;
  animation: dashFlow 1.6s linear infinite;
  opacity: 0.8;
}
@keyframes dashFlow { to { stroke-dashoffset: -22; } }
.ia-node { fill: rgba(91, 192, 235, 0.35); animation: nodePulse 1.8s ease-in-out infinite; }
.ia-node.n2 { animation-delay: 0.3s; }
.ia-node.n3 { animation-delay: 0.6s; }
.ia-node.n4 { animation-delay: 0.9s; }
@keyframes nodePulse {
  0%, 100% { fill: rgba(91, 192, 235, 0.25); r: 5; }
  50% { fill: rgba(91, 192, 235, 0.9); r: 6.5; }
}

/* ============================================================
   SECTORES
============================================================ */
.sectors { background: var(--white); }
.sectors__grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sector-card {
  background: #f4f9fd;
  border: 1px solid rgba(30, 95, 140, 0.1);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.sector-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 20px 44px rgba(10, 42, 74, 0.12);
}
.sector-card svg {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  color: var(--blue-500);
  transition: color 0.3s ease, transform 0.3s ease;
}
.sector-card:hover svg { color: var(--sky-400); transform: scale(1.12); }
.sector-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.sector-card p { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   CLIENTES — carrusel infinito de logos
============================================================ */
.clients { background: var(--white); overflow: hidden; }
.clients__marquee {
  margin-top: 54px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients__set {
  display: flex;
  gap: 26px;
  padding-right: 26px;
}
/* Logo placeholder — REEMPLAZAR por <img> del cliente real */
.client-logo {
  flex-shrink: 0;
  width: 190px; height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(30, 95, 140, 0.35);
  border-radius: 14px;
  background: #f4f9fd;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--sky-400);
  transform: translateY(-4px);
}
.client-logo img { max-height: 56px; max-width: 150px; object-fit: contain; }

/* ============================================================
   VENTAJAS
============================================================ */
.advantages { background: #f4f9fd; }

/* Cifras con contador animado */
.stats {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(91, 192, 235, 0.25), transparent);
  transform: skewX(-20deg);
  animation: statShine 3.6s ease-in-out infinite;
}
.stat:nth-child(2)::after { animation-delay: 0.4s; }
.stat:nth-child(3)::after { animation-delay: 0.8s; }
.stat:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes statShine {
  0%, 60% { left: -80%; }
  100% { left: 130%; }
}
.stat:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10, 42, 74, 0.3); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--sky-400);
  line-height: 1.2;
}
.stat__label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }
.advantages__list {
  margin-top: 54px;
  display: grid;
  gap: 18px;
  max-width: 780px;
}
.advantage {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(30, 95, 140, 0.1);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.advantage:hover {
  transform: translateX(8px);
  box-shadow: 0 14px 34px rgba(10, 42, 74, 0.1);
  border-color: var(--sky-400);
}
/* Destello que cruza la tarjeta al pasar el mouse */
.advantage::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(91, 192, 235, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.advantage:hover::after { left: 130%; }
.advantage__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: var(--sky-400);
  animation: advGlow 3s ease-in-out infinite;
}
@keyframes advGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 192, 235, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(91, 192, 235, 0); }
}
.advantage__icon svg { width: 26px; height: 26px; }
.advantage h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.advantage p { font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   EQUIPO
============================================================ */
.team { background: var(--white); }
.team__grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.team-card {
  background: #f4f9fd;
  border: 1px solid rgba(30, 95, 140, 0.1);
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(10, 42, 74, 0.14);
}
/* Foto placeholder circular — REEMPLAZAR por:
   <img src="assets/img/equipo/nombre.jpg" alt="Nombre"> dentro de .team-card__photo */
.team-card__photo {
  width: 108px; height: 108px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  border: 4px solid var(--white);
  box-shadow: 0 10px 26px rgba(10, 42, 74, 0.2);
  overflow: hidden;
}
.team-card__photo span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-800);
  line-height: 1.3;
  margin-bottom: 4px;
}
.team-card > p { font-size: 0.82rem; color: var(--blue-500); font-weight: 600; }
.team-card__bio {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  line-height: 1.55;
  margin-top: 10px;
}
.team-card__social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.team-card__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(30, 95, 140, 0.16);
  color: var(--blue-500);
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
.team-card__social a:hover {
  background: var(--navy-800);
  color: var(--sky-400);
  transform: translateY(-3px);
}
.team-card__social svg { width: 17px; height: 17px; }

/* ============================================================
   CONTACTO + FOOTER
============================================================ */
.contact {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding-bottom: 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  padding-bottom: 110px;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sky-400);
  transition: color 0.25s ease;
}
.contact__email:hover { color: var(--white); }
.contact__email svg {
  width: 22px; height: 22px;
  animation: mailPulse 2.4s ease-in-out infinite;
}
@keyframes mailPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18) rotate(-4deg); }
}
.contact__location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}
.contact__location svg { width: 20px; height: 20px; color: var(--sky-400); }

.contact__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 38px 32px;
  backdrop-filter: blur(6px);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sky-400);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(91, 192, 235, 0.18);
}
.form-field input.is-error,
.form-field textarea.is-error { border-color: var(--redteam); }
.form-success {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
  color: var(--sky-400);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
.footer__social a:hover {
  background: var(--sky-400);
  color: var(--navy-900);
  transform: translateY(-3px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ============================================================
   ESTADOS INICIALES DE ANIMACIÓN (GSAP los revela)
   Con .no-js o sin GSAP todo queda visible.
============================================================ */
.js [data-reveal],
.js [data-reveal-stagger] > *,
.js [data-adv],
.js [data-shots] .mockup,
.js [data-team-grid] .team-card,
.js [data-panel-el],
.js .contact__form .form-field,
.js .contact__form .btn {
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
============================================================ */
/* El menú de escritorio (9 links) ya no cabe entre ~740px y 1180px:
   el hamburguesa toma el control antes de que se desborde. */
@media (max-width: 1180px) {
  .navbar__links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .product__grid { grid-template-columns: 1fr; gap: 44px; }
  .product__grid--reverse .product__info { order: 1; }
  .product__grid--reverse .product__shots { order: 2; }
  .product__shots .mockup { margin-left: 0 !important; width: min(480px, 100%); margin-inline: auto; }
  .cyber-panel { min-height: 0; padding: 80px 0; }
  .cyber-panel__grid { grid-template-columns: 1fr; gap: 48px; }
  .cyber-panel--flip .cyber-panel__text { order: 1; }
  .cyber-panel--flip .cyber-panel__scene { order: 2; }
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .cyber { padding-top: 80px; }
  .cyber__header { padding-bottom: 60px; }
  .cyber-panel { padding: 64px 0; }
  .scene--defense { height: 250px; }
  .defender-fig { width: min(280px, 100%); }
  .client-logo { width: 150px; height: 76px; font-size: 0.72rem; }
  .about__pills { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .advantage { flex-direction: column; gap: 14px; }
  .float-icon { width: 38px; height: 38px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
