/* ═══════════════════════════════════════════════════════════════════════════
   APAXI THEME — CSS principal
   Combina la estructura de muestra con la paleta navy/metálica de Apaxi.
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables globales ──────────────────────────────────────────────────── */
:root {
  --navy-deep:    #050d1a;
  --navy-surface: #0d1f3c;
  --navy-card:    #0f2441;
  --navy-elevated:#1a3060;
  --tech:         #4a9eff;
  --tech-dim:     rgba(74,158,255,0.12);
  --tech-glow:    rgba(74,158,255,0.35);
  --gold:         #c9a84c;
  --gold-light:   #e8c56a;
  --gold-dim:     rgba(201,168,76,0.12);
  --steel:        #7a8fa6;
  --steel-light:  #b0bfd0;
  --text-primary: #e8edf2;
  --text-sec:     #8a9bb8;
  --text-muted:   #4a5a6e;
  --border:       rgba(74,158,255,0.14);
  --border-gold:  rgba(201,168,76,0.22);
  --font-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --font-serif:   'STIX Two Text', Georgia, serif;
  --shadow-card:  0 4px 32px rgba(0,0,0,0.55);
  --shadow-tech:  0 0 24px rgba(74,158,255,0.28);
  --shadow-gold:  0 0 24px rgba(201,168,76,0.28);
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px;
  --tr: 280ms ease;
  /* Placa clara que aparece al hover tras los logos de clientes a color */
  --surface-light: #eef3f9;
}

/* ─── Reset base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  background: var(--navy-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 0;
}
p { color: var(--text-sec); margin-bottom: 15px; }
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }
a { color: var(--tech); transition: color var(--tr); }
a:hover { color: var(--gold-light); }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tech); }

/* ─── Selección ───────────────────────────────────────────────────────────── */
::selection { background: rgba(74,158,255,0.25); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════════════════════ */
#preloader-active {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.preloader { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Cuadrícula de fondo */
.preloader-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(74,158,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridFadeIn 0.8s ease forwards;
}
@keyframes gridFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Línea de escaneo */
.preloader-scan {
  position: absolute;
  top: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(74,158,255,0.7) 50%, transparent 100%);
  animation: scanDown 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanDown {
  0%   { top: -2px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Esquinas decorativas */
.preloader-corner {
  position: absolute;
  width: 28px; height: 28px;
  opacity: 0;
  animation: cornerIn 0.5s ease 0.2s forwards;
}
.preloader-corner--tl { top: 32px;  left: 32px;  border-top:    1px solid rgba(74,158,255,0.5); border-left:   1px solid rgba(74,158,255,0.5); }
.preloader-corner--tr { top: 32px;  right: 32px; border-top:    1px solid rgba(74,158,255,0.5); border-right:  1px solid rgba(74,158,255,0.5); }
.preloader-corner--bl { bottom: 32px; left: 32px;  border-bottom: 1px solid rgba(74,158,255,0.5); border-left:   1px solid rgba(74,158,255,0.5); }
.preloader-corner--br { bottom: 32px; right: 32px; border-bottom: 1px solid rgba(74,158,255,0.5); border-right:  1px solid rgba(74,158,255,0.5); }
@keyframes cornerIn { to { opacity: 1; } }

/* Stage — anillos orbitales */
.preloader-stage {
  position: relative;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}

.preloader-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}

/* Anillo exterior — gira CW, acento cyan */
.preloader-ring--outer {
  width: 316px; height: 316px;
  border-width: 1px;
  border-color: rgba(74,158,255,0.1);
  border-top-color: var(--tech);
  border-right-color: rgba(74,158,255,0.35);
  animation: spinCW 4s linear infinite;
}

/* Anillo medio — gira CCW, estilo dashed dorado */
.preloader-ring--mid {
  width: 248px; height: 248px;
  border-width: 1px;
  border-style: dashed;
  border-color: rgba(201,168,76,0.12);
  border-bottom-color: var(--gold);
  border-left-color: rgba(201,168,76,0.3);
  animation: spinCCW 7s linear infinite;
}

/* Anillo interior — gira CW rápido, cyan tenue */
.preloader-ring--inner {
  width: 180px; height: 180px;
  border-width: 1px;
  border-color: rgba(74,158,255,0.08);
  border-left-color: rgba(74,158,255,0.45);
  animation: spinCW 2.5s linear infinite;
}

/* Punto orbitante sobre el anillo exterior */
.preloader-orbit {
  position: absolute;
  width: 316px; height: 316px;
  border-radius: 50%;
  animation: spinCW 4s linear infinite;
  pointer-events: none;
}
.preloader-orbit__dot {
  position: absolute;
  top: -5px; left: 50%; margin-left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 8px var(--tech), 0 0 18px rgba(74,158,255,0.55);
}

/* Logo central */
.preloader-center {
  position: relative; z-index: 2; text-align: center;
  opacity: 0;
  animation: centerReveal 0.7s cubic-bezier(.2,.8,.4,1) 0.35s forwards;
}
@keyframes centerReveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.preloader-logo {
  font-family: var(--font-sans);
  font-size: 3rem; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  line-height: 1;
}
.preloader-logo span { color: var(--tech); }

.preloader-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.8s forwards;
}

/* Barra de progreso */
.preloader-bar-wrap {
  position: absolute;
  bottom: 140px; left: 50%; transform: translateX(-50%);
  width: min(480px, 72vw);
  height: 4px;
  background: rgba(74,158,255,0.18);
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.5s forwards;
}
.preloader-bar {
  height: 100%; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tech) 0%, var(--gold) 50%, var(--tech) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(74,158,255,0.55), 0 0 4px rgba(201,168,76,0.3);
  animation: barFill 2.8s cubic-bezier(.4,0,.2,1) 0.6s forwards,
             barShimmer 1.2s linear 0.8s infinite;
}
@keyframes barFill    { to { width: 90%; } }
@keyframes barShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Texto de estado */
.preloader-status {
  position: absolute;
  bottom: 116px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--steel);
  opacity: 0;
  animation: fadeIn 0.4s ease 0.7s forwards;
}
.preloader-status__prompt { color: var(--tech); font-weight: 600; }
.preloader-status__text   { color: var(--steel-light); }
.preloader-cursor {
  color: var(--tech);
  animation: cursorBlink 1s step-end infinite;
}

/* Keyframes compartidos */
@keyframes spinCW    { to { transform: rotate(360deg); } }
@keyframes spinCCW   { to { transform: rotate(-360deg); } }
@keyframes fadeIn    { to { opacity: 1; } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════════════ */
.header-area { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.header-transparent { background: transparent; }

.header-bottom { padding: 0 60px; }
@media (max-width: 1199px) { .header-bottom { padding: 0 20px; } }
@media (max-width: 991px)  { .header-bottom { padding: 14px 20px; } }

/* Header compacto para laptops de pantalla pequeña:
   - Logo toma ancho natural (no 16.67% fijo de Bootstrap)
   - Nav llena el resto como flex container con nowrap */
@media (max-width: 1650px) {
  .header-bottom .col-xl-2,
  .header-bottom .col-lg-2  { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
  .header-bottom .col-xl-10,
  .header-bottom .col-lg-10 { flex: 1 !important; max-width: none !important; min-width: 0 !important; }

  .main-menu nav ul {
    display: flex; flex-wrap: nowrap;
    align-items: center; justify-content: flex-end;
    width: 100%;
  }
  .main-menu ul li { flex-shrink: 1; margin: 0 12px; }
  .main-menu ul li a { white-space: nowrap; }
  .apaxi-logo-text { font-size: 2rem; }
}
@media (max-width: 1380px) {
  .main-menu ul li { margin: 0 8px; }
  .main-menu ul li a { letter-spacing: 0.05em; }
  .apaxi-logo-text { font-size: 1.75rem; }
}
@media (max-width: 1150px) {
  .main-menu ul li { margin: 0 4px; }
  .main-menu ul li a { font-size: 0.72rem; letter-spacing: 0.03em; }
  .apaxi-logo-text { font-size: 1.5rem; }
}

/* Logo texto */
.apaxi-logo-text {
  font-size: 2.3rem; font-weight: 800;
  letter-spacing: -0.05em; text-decoration: none;
  display: inline-block;
  position: relative;
  background: linear-gradient(90deg,
    #e8edf2  0%,  #e8edf2  25%,
    #90b4d4  36%,
    #3a5878  44%,  #2e4870  50%,  #3a5878  56%,
    #90b4d4  64%,
    #e8edf2  75%,  #e8edf2 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8edf2;
  animation: logoSheen 7s ease-in-out infinite, logoGlow 7s ease-in-out infinite;
}
.apaxi-logo-text:hover { text-decoration: none; }

/* Línea animada bajo el logo en hover */
.apaxi-logo-text::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--tech) 30%, var(--gold) 60%, var(--tech) 85%, transparent 100%);
  box-shadow: 0 0 8px rgba(74,158,255,0.7), 0 0 18px rgba(74,158,255,0.3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.apaxi-logo-text:hover::after {
  transform: scaleX(1);
}

.apaxi-logo-text span {
  color: var(--tech);
  -webkit-text-fill-color: var(--tech);
}

@keyframes logoSheen {
  0%   { background-position: 100% center; }
  28%  { background-position:   0% center; }
  100% { background-position:   0% center; }
}

@keyframes logoGlow {
  0%   { text-shadow: 0 0 12px rgba(74,158,255,0),    0 0 28px rgba(46,72,112,0);    }
  14%  { text-shadow: 0 0 12px rgba(74,158,255,0.65), 0 0 28px rgba(46,72,112,0.45); }
  28%  { text-shadow: 0 0 12px rgba(74,158,255,0),    0 0 28px rgba(46,72,112,0);    }
  100% { text-shadow: 0 0 12px rgba(74,158,255,0),    0 0 28px rgba(46,72,112,0);    }
}

/* Nav links */
.main-menu ul li { display: inline-block; margin: 0 18px; position: relative; vertical-align: middle; }
.main-menu ul li.button-header { display: inline-flex; align-items: center; }
.main-menu ul li a {
  color: var(--steel-light); font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 32px 2px; display: block;
  text-decoration: none;
  transition: color var(--tr);
  position: relative;
}
/* Línea deslizante */
.main-menu ul li a::after {
  content: ''; position: absolute; bottom: 26px; left: 0; right: 0;
  height: 1px; background: var(--tech);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--tr);
}
.main-menu ul li a:hover,
.main-menu ul li a:focus { color: var(--tech); text-decoration: none; }
.main-menu ul li a:hover::after { transform: scaleX(1); }
/* Los botones del nav no llevan la línea */
.main-menu ul li.button-header a::after { display: none; }
/* Evitar que el letter-spacing del hover de btn3 desplace el resto del nav */
.main-menu ul li.button-header a.btn3:hover { letter-spacing: 0.08em !important; }

/* EnerPhys button */
.btn-enerphys {
  display: inline-flex; align-items: center;
  position: relative; overflow: hidden;
  background: transparent;
  border: 1px solid #00e676;
  color: #00e676 !important;
  padding: 8px 26px !important;
  border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-enerphys::before {
  content: '';
  position: absolute; top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(to right, rgba(0,230,118,0) 0%, rgba(0,230,118,0.18) 50%, rgba(0,230,118,0) 100%);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-enerphys:hover {
  background: rgba(0,230,118,0.1) !important;
  box-shadow: 0 0 14px rgba(0,230,118,0.45), 0 0 0 2px rgba(0,230,118,0.18);
  color: #00e676 !important;
}
.btn-enerphys:hover::before { left: 120%; }
.main-menu ul li.button-header a.btn-enerphys::after { display: none; }

/* Igualar altura de los botones CTA del header (Recursos / EnerPhys).
   El botón Recursos hereda padding vertical de `.main-menu ul li a` (32px);
   se normaliza junto al de EnerPhys para que ambos tengan la misma altura. */
.main-menu ul li.button-header a.btn,
.main-menu ul li.button-header a.btn-enerphys {
  padding-top:    8px !important;
  padding-bottom: 8px !important;
  line-height:    1.2 !important;
}

/* Sticky */
.header-sticky.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(5,13,26,0.95) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.header-sticky.sticky-bar .main-menu ul li a { padding: 20px 2px; }
.header-sticky.sticky-bar .main-menu ul li a::after { bottom: 14px; }


/* ── Botones — animación: sheen + lift + glow ── */
.btn, .radius-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-sm);
  transition:
    background   .3s ease,
    border-color .3s ease,
    box-shadow   .3s ease,
    transform    .25s ease !important;
}

/* Sheen sweep — reflexo metálico diagonal */
.btn::after, .radius-btn::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0)    100%
  );
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::after, .radius-btn:hover::after { left: 120%; }

/* Outline ghost button */
.btn {
  background: transparent;
  border: 1px solid var(--tech);
  color: #fff !important;
  padding: 8px 22px !important;
}
.btn:hover {
  background:   var(--tech) !important;
  border-color: var(--tech) !important;
  box-shadow:   0 0 10px rgba(74,158,255,0.18) !important;
  transform:    translateY(-2px) !important;
  color: #fff !important;
}
.btn:active { transform: translateY(0) !important; }

/* CTA primario — relleno sólido */
.radius-btn {
  background:   var(--tech) !important;
  border:       1px solid var(--tech) !important;
  color:        #fff !important;
  border-radius: 50px !important;
  padding:      12px 32px !important;
}
.radius-btn:hover {
  background:   #2d6eb5 !important;
  border-color: rgba(74,158,255,0.6) !important;
  box-shadow:   0 0 10px rgba(74,158,255,0.18) !important;
  transform:    translateY(-2px) !important;
  color: #fff !important;
}
.radius-btn:active { transform: translateY(-1px) !important; }

/* Botón secundario de texto */
.btn3 {
  position: relative;
  display: inline-block;
  background: none;
  color: var(--steel-light) !important;
  padding: 8px 16px !important;
  font-size: 0.78rem;
  transition: color .25s ease, letter-spacing .25s ease !important;
}
.btn3::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--tech);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.btn3:hover {
  color: var(--tech) !important;
  letter-spacing: 0.1em !important;
}
.btn3:hover::after { transform: scaleX(1); }

.ml-20 { margin-left: 20px; }

/* Mobile menu */
.mobile_menu { position: absolute; right: 0; width: 100%; z-index: 99; }
.slicknav_menu { background: transparent !important; }
.slicknav_btn .slicknav_icon-bar { background: var(--text-primary) !important; }
.slicknav_nav { background: var(--navy-surface) !important; border: 1px solid var(--border) !important; margin-top: 10px !important; }
.slicknav_nav a { color: var(--steel-light) !important; padding: 10px 16px !important; }
.slicknav_nav a:hover { color: var(--tech) !important; background: transparent !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════════════════════════════ */
.slider-area { position: relative; overflow: visible; }
/* Slick en fade mode usa opacity; overflow:hidden no es necesario y recorta el edificio */
.slider-area .slick-list { overflow: visible; }
/* Slick wrapper por encima del canvas de circuitos */
.slider-area .slick-slider { position: relative; z-index: 1; }
.slider-bg { background: var(--navy-deep); }

.slider-height {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 70% at 15% 50%, rgba(74,158,255,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 85% 30%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.hero__caption { overflow: visible; position: relative; padding-top: 100px; }
@media (max-width: 991px) { .hero__caption { padding-top: 80px; } }

.hero__caption > span {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding-bottom: 7px; margin-bottom: 26px;
  border-bottom: 1px solid var(--border-gold);
}
.hero__caption > span i { font-size: 1.7em; opacity: 0.95; }

.hero__caption h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-connector {
  font-size: 0.5em;
  vertical-align: super;
}
.hero-em {
  background: linear-gradient(135deg, var(--tech) 0%, var(--tech) 40%, #fff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.hero-em--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, #fff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero__caption p {
  color: var(--steel-light); font-size: 1.1rem; line-height: 1.7;
  max-width: 520px; margin-bottom: 32px;
}

.slider-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.slider-btns .btn, .slider-btns .btn3 { margin: 0 !important; }

/* Circuit board strip — solo visible en slide 1, mitad derecha */
.hero-circuit-canvas {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 148px;
  display: block;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.hero-circuit-canvas.hcc-off { opacity: 0; pointer-events: none; }

/* ── Contenedor visual del slide 2 — hermano del canvas PCB, position:absolute en .slider-area ── */
.hero__building {
  position: absolute;
  right: -4%;
  bottom: 0;           /* base = borde superior de la sección ESTADÍSTICAS */
  width: 68%;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.hero__building.bld-off { opacity: 0; }

.hero__building-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* ── Ilustración LegalTech (slide 2) — escena isométrica Derecho × Tecnología ── */
/* Detrás del texto del slide (los badges pueden desbordar sobre la escena y
   deben permanecer legibles). La esquina de la laptop ya no se recorta porque
   el viewBox del SVG la incluye. */
.hero__legaltech { right: -1%; width: 62%; bottom: 3%; }
.legaltech-svg {
  width: 100%;
  height: auto;
  max-height: 82vh;
  display: block;
  /* Sin filter en el <svg>: envolver contenido animado en un drop-shadow obliga
     a recalcular el desenfoque en cada frame → jank. La profundidad la dan los
     degradados y el fondo oscuro. */
}
.legaltech-svg .lt-scale-sway,
.legaltech-svg .lt-gavel { transform-box: view-box; }

@keyframes ltSway   { 0%,100% { transform: rotate(-1.6deg);   } 50% { transform: rotate(1.6deg);   } }
@keyframes ltStream { 0% { stroke-dashoffset: 44; opacity: .25; } 50% { opacity: .9; } 100% { stroke-dashoffset: -44; opacity: .25; } }
@keyframes ltNode   { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ltBlink  { 0%,100% { opacity: 1; } 50% { opacity: .2;  } }
@keyframes ltSpark  { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ltGleam  { 0% { transform: translateX(-22px); opacity: 0; } 30% { opacity: .8; } 60% { opacity: 0; } 100% { transform: translateX(22px); opacity: 0; } }
@keyframes ltTap    { 0%,100% { transform: rotate(0); } 12% { transform: rotate(-9deg); } 24% { transform: rotate(0); } }
@keyframes ltBob    { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-4px); } }

.legaltech-svg .lt-scale-sway { animation: ltSway 6s ease-in-out infinite; transform-origin: 260px 150px; }
.legaltech-svg .lt-stream     { stroke-dasharray: 5 11; animation: ltStream 4.8s linear infinite; }
.legaltech-svg .lt-stream.b   { animation-delay: 1.2s; }
.legaltech-svg .lt-stream.c   { animation-delay: 2.4s; }
.legaltech-svg .lt-stream.d   { animation-delay: 3.6s; }
.legaltech-svg .lt-node       { animation: ltNode 3.4s ease-in-out infinite; }
.legaltech-svg .lt-node.b     { animation-delay: 1.1s; }
.legaltech-svg .lt-node.c     { animation-delay: 2.2s; }
.legaltech-svg .lt-node.d     { animation-delay: .6s;  }
.legaltech-svg .lt-cursor     { animation: ltBlink 1.1s steps(1, end) infinite; }
.legaltech-svg .lt-spark      { animation: ltSpark 2.6s ease-in-out infinite; }
.legaltech-svg .lt-gleam      { animation: ltGleam 4.5s ease-in-out infinite; }
.legaltech-svg .lt-gavel      { animation: ltTap 5.5s ease-in-out infinite; transform-origin: 489px 422px; }
.legaltech-svg .lt-mag        { animation: ltBob 6.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .legaltech-svg .lt-scale-sway, .legaltech-svg .lt-stream,
  .legaltech-svg .lt-node, .legaltech-svg .lt-cursor, .legaltech-svg .lt-spark,
  .legaltech-svg .lt-gleam, .legaltech-svg .lt-gavel, .legaltech-svg .lt-mag { animation: none; }
}

/* Credenciales — franja tipo "hoja de especificaciones", sin chips/píldoras */
.hero-badges {
  display: flex; flex-wrap: wrap;
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
/* En desktop la fila se ajusta a su contenido y la línea (border-top) sobrepasa
   un poco el último badge. */
@media (min-width: 992px) { .hero-badges { flex-wrap: nowrap; width: max-content; padding-right: 22px; } }
.hbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  padding: 0 10px; border-left: 1px solid var(--border);
}
@media (min-width: 1400px) { .hbadge { font-size: 0.68rem; padding: 0 13px; gap: 6px; } }
.hbadge:first-child { padding-left: 0; border-left: none; }
.hbadge--tech { color: var(--tech); }
.hbadge--legal { color: var(--gold); }
.hbadge i { font-size: 1.4em; }

/* Misma marca, pero como etiqueta sobre una foto: necesita fondo para legibilidad */
.about-img__badge .hbadge {
  border-left: 2px solid currentColor; border-top: none; padding: 9px 14px 9px 12px;
  background: rgba(8,14,28,0.62); backdrop-filter: blur(4px);
}

/* ── Chip SVG + orbital carousel — hero slide 1 ── */
.hero-visual {
  position: relative; width: 380px; height: 380px;
  margin: 0 auto;
  overflow: visible;
}
@media (max-width: 1199px) { .hero-visual { width: 300px; height: 300px; } }

/* Chip centered */
.hero-visual__core--chip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
}

.chip-svg {
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(74,158,255,0.22));
}

/* Orbital rings */
.hero-visual__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(74,158,255,0.15);
  animation: rotateCW 25s linear infinite;
  pointer-events: none;
}
.hero-visual__ring--2 {
  inset: 28px;
  border-color: rgba(201,168,76,0.12);
  animation: rotateCCW 18s linear infinite;
}

/* Orbit panels — tarjetas SVG interactivas */
.hero-visual__orbit {
  position: absolute; top: 50%; left: 50%;
  width: 180px; height: 132px;
  margin-left: -90px; margin-top: -66px;
  pointer-events: all;
  cursor: pointer;
}
.hero-visual__orbit:hover { animation-play-state: paused !important; }
.orbit-svg {
  width: 100%; height: 100%; overflow: visible;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}
.hero-visual__orbit:hover .orbit-svg { transform: scale(1.35); }

.hero-visual__orbit--1 { transform: rotate(0deg)   translateX(185px) rotate(0deg);   animation: orbit1 20s linear infinite; }
.hero-visual__orbit--2 { transform: rotate(90deg)  translateX(185px) rotate(-90deg);  animation: orbit2 20s linear infinite; }
.hero-visual__orbit--3 { transform: rotate(180deg) translateX(185px) rotate(-180deg); animation: orbit3 20s linear infinite; }
.hero-visual__orbit--4 { transform: rotate(270deg) translateX(185px) rotate(-270deg); animation: orbit4 20s linear infinite; }

/* ── Python: cursor parpadeante + línea extra + plot chart en hover ── */
@keyframes pyCursor { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.py-cursor  { animation: pyCursor 1s step-end infinite; }
.py-extra   { opacity: 0; transition: opacity 0.45s ease; }
.py-plot    { opacity: 0; transition: opacity 0.4s ease; }
.code-bracket { transform-box: fill-box; transform-origin: center; transform: scale(0.55); transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s; }
.hero-visual__orbit:hover .py-extra { opacity: 1; }
.hero-visual__orbit:hover .py-plot  { opacity: 1; transition-delay: 0.85s; }
.hero-visual__orbit:hover .code-bracket { transform: scale(1); filter: drop-shadow(0 0 6px rgba(74,158,255,0.8)); }

/* Raspberry Pi dev board */
.py-raspi { opacity: 0; transition: opacity 0.4s ease; }
.hero-visual__orbit:hover .py-raspi { opacity: 1; }
@keyframes raspiAct  { 0%,40%{opacity:1} 45%,90%{opacity:0.1} 95%,100%{opacity:1} }
@keyframes raspiEth  { 0%,30%{opacity:1} 35%,65%{opacity:0.15} 70%,100%{opacity:1} }
@keyframes raspiLink { 0%,100%{opacity:0.8} 50%{opacity:0.2} }
.raspi-act-led  { animation: raspiAct  0.9s step-end infinite; }
.raspi-eth-led  { animation: raspiEth  0.5s step-end infinite; }
.raspi-link-led { animation: raspiLink 1.2s ease-in-out infinite; }
.raspi-pwr-led  { filter: drop-shadow(0 0 3px rgba(57,255,20,0.9)); }

/* ── Ciberseguridad: scan beam + texto estado ── */
@keyframes scanY { 0%{transform:translateY(-32px)} 100%{transform:translateY(32px)} }
.scan-line  { animation: scanY 2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero-visual__orbit:hover .scan-line  { animation-duration: 1.1s; }
.hero-visual__orbit:hover .scan-line line { stroke: #ff4444 !important; }
.hero-visual__orbit:hover .scan-line rect { opacity: 0.7; }
.sec-status { transition: opacity 0.25s; }
.sec-alert  { opacity: 0; }
.sec-found  { opacity: 0; }
.hero-visual__orbit:hover .sec-status  { opacity: 0; }
.hero-visual__orbit:hover .sec-alert   { animation: scanningThenHide 2.5s ease forwards; }
.hero-visual__orbit:hover .sec-found   { animation: foundAppear 0.4s ease-out 2.2s forwards; }
.hero-visual__orbit:hover .sec-shield  { animation: shieldBreached 0.5s ease-out 2.4s forwards; }
@keyframes scanningThenHide { 0%{opacity:1} 8%{opacity:0.4} 16%{opacity:1} 24%{opacity:0.4} 32%{opacity:1} 40%{opacity:0.4} 48%{opacity:1} 56%{opacity:0.4} 64%{opacity:1} 72%{opacity:0.4} 80%{opacity:1} 100%{opacity:0} }
@keyframes foundAppear    { from{opacity:0} to{opacity:1} }
@keyframes shieldBreached  { from{stroke:#4a9eff; fill:rgba(74,158,255,0.05)} to{stroke:#ff3030; fill:rgba(255,40,40,0.10)} }
@keyframes candadoBreached {
  0%   { transform: translateX(0)    rotate(0deg);  opacity: 1; }
  12%  { transform: translateX(-3px) rotate(-5deg); opacity: 1; }
  24%  { transform: translateX(3px)  rotate(5deg);  opacity: 1; }
  36%  { transform: translateX(-3px) rotate(-4deg); opacity: 1; }
  48%  { transform: translateX(3px)  rotate(4deg);  opacity: 1; }
  60%  { transform: translateX(-1px) rotate(-2deg); opacity: 1; filter: brightness(2); }
  80%  { transform: scale(1.15);                    opacity: 0.6; }
  100% { transform: scale(0.7);                     opacity: 0; }
}
@keyframes candadoOpenAppear {
  0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  55%  { transform: scale(1.15) rotate(4deg);  opacity: 1; }
  75%  { transform: scale(0.93) rotate(-2deg); opacity: 1; }
  90%  { transform: scale(1.04) rotate(1deg);  opacity: 1; }
  100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}
.sec-candado, .sec-candado-open { transform-box: fill-box; transform-origin: center; }
.hero-visual__orbit:hover .sec-candado      { animation: candadoBreached   0.85s ease-in-out 2.4s forwards; }
.sec-candado-open { opacity: 0; }
.hero-visual__orbit:hover .sec-candado-open { animation: candadoOpenAppear 0.65s cubic-bezier(0.34,1.56,0.64,1) 3.1s forwards; }
/* Cerebro IA — pulso de activación neuronal */
@keyframes brainPulse { 0%,100%{opacity:0.25} 50%{opacity:0.95} }
.brain-pulse { animation: brainPulse 1.8s ease-in-out infinite; }

/* Texto AI — más visible en hover */
.orbit-svg--ai text { transition: fill 0.4s ease; }
.hero-visual__orbit:hover .orbit-svg--ai text { fill: rgba(124,58,237,0.72); }

/* ML Pipeline — DB → Server → μService */
.ai-ml-pipeline { opacity: 0; transition: opacity 0.4s ease; }
.hero-visual__orbit:hover .ai-ml-pipeline { opacity: 1; }
@keyframes aiSrvLed { 0%,49%{opacity:1} 50%,100%{opacity:0.15} }
.ai-srv-led { animation: aiSrvLed 1.4s step-end infinite; }

/* LEDs PLC parpadeantes */
@keyframes ledBlink { 0%,49%{opacity:0.9} 50%,100%{opacity:0.15} }
.plc-led { animation: ledBlink 1.2s step-end infinite; }

/* ── Matrix rain (orbit 2 – ciberseguridad) ──────────────────────────── */
@keyframes matrixFall {
  0%   { transform: translateY(0); }
  100% { transform: translateY(172px); }
}
@keyframes matrixHeadFlick {
  0%,45%  { opacity: 1; }
  50%,95% { opacity: 0.15; }
  100%    { opacity: 1; }
}
.hero-visual__orbit:hover .mat-col--1 { animation: matrixFall 3.2s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--2 { animation: matrixFall 2.8s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--3 { animation: matrixFall 3.6s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--4 { animation: matrixFall 3.0s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--5 { animation: matrixFall 3.5s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--6 { animation: matrixFall 2.9s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--7 { animation: matrixFall 3.3s linear 0s infinite; }
.hero-visual__orbit:hover .mat-col--8 { animation: matrixFall 2.7s linear 0s infinite; }
.hero-visual__orbit:hover .mat-head   { animation: matrixHeadFlick 0.45s step-end infinite; }

/* ── Vulnerability alerts ─────────────────────────────────────────────── */
.vuln-group { opacity: 0; transition: opacity 0.25s ease; }
.hero-visual__orbit:hover .vuln-fw   { animation: vulnAppear 0.35s ease-out 0.20s forwards; }
.hero-visual__orbit:hover .vuln-mal  { animation: vulnAppear 0.35s ease-out 0.52s forwards; }
.hero-visual__orbit:hover .vuln-mitm { animation: vulnAppear 0.35s ease-out 0.84s forwards; }
@keyframes vulnAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vuln-led { animation: vulnBlink 0.7s ease-in-out infinite; }
@keyframes vulnBlink {
  0%,100% { opacity: 0.25; }
  50%     { opacity: 1; filter: drop-shadow(0 0 4px #ff2020); }
}
.io-led  { animation: ledBlink 0.85s step-end infinite 0.3s; }

/* ── Robot arm — movimiento articulado (hombro + codo independientes) ── */
.robot-shoulder-g {
  transform-box: view-box;
  transform-origin: 120px 60px;
  animation: shoulderIdle 8s ease-in-out infinite;
}
.robot-elbow-g {
  transform-box: view-box;
  transform-origin: 108px 32px;
  animation: elbowIdle 8s ease-in-out infinite;
}

/* Idle: espera suave, brazo "respira" levemente */
@keyframes shoulderIdle {
  0%, 100% { transform: rotateZ(0deg); }
  50%      { transform: rotateZ(4deg); }
}
@keyframes elbowIdle {
  0%, 100% { transform: rotateZ(0deg);  }
  50%      { transform: rotateZ(-6deg); }
}

/* ── Hover: secuencia de pick-and-place en L ──────────────────────────────
   Fases (ciclo de 5 s):
   0-12%  → alcanzar objeto (hombro avanza, codo desciende)
   12-22% → sujetar (pinza cierra, brazo quieto)
   22-48% → LEVANTAR en vertical (codo flexiona, sube el efector)
   48-72% → GIRAR en horizontal (hombro gira al destino — traza la L)
   72-82% → BAJAR al destino (codo extiende, deposita el objeto)
   82-90% → soltar (pinza abre)
   90-100%→ retorno al reposo
──────────────────────────────────────────────────────────────────────── */
.hero-visual__orbit:hover .robot-shoulder-g {
  animation: shoulderPickPlace 5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}
.hero-visual__orbit:hover .robot-elbow-g {
  animation: elbowPickPlace 5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes shoulderPickPlace {
  0%        { transform: rotateZ(0deg);   }  /* reposo */
  12%       { transform: rotateZ(14deg);  }  /* acercar al objeto */
  48%       { transform: rotateZ(14deg);  }  /* quieto durante el levantamiento */
  70%       { transform: rotateZ(-12deg); }  /* GIRAR al destino (rama horizontal de la L) */
  82%       { transform: rotateZ(-12deg); }  /* quieto mientras baja */
  100%      { transform: rotateZ(0deg);   }  /* retorno */
}

@keyframes elbowPickPlace {
  0%        { transform: rotateZ(0deg);   }  /* reposo */
  12%       { transform: rotateZ(10deg);  }  /* extender codo CW → gripper desciende */
  22%       { transform: rotateZ(10deg);  }  /* quieto durante el agarre */
  46%       { transform: rotateZ(-12deg); }  /* LEVANTAR (CCW → gripper sube) */
  68%       { transform: rotateZ(-12deg); }  /* quieto durante el giro horizontal */
  80%       { transform: rotateZ(5deg);   }  /* BAJAR en el destino */
  90%       { transform: rotateZ(5deg);   }  /* quieto mientras suelta */
  100%      { transform: rotateZ(0deg);   }  /* retorno */
}

/* Pinza: sincronizada con las fases de la secuencia */
.gripper-l { transform-box: fill-box; transform-origin: right center; }
.gripper-r { transform-box: fill-box; transform-origin: left center;  }
.hero-visual__orbit:hover .gripper-l { animation: gripperPickL 5s cubic-bezier(0.4,0,0.2,1) infinite !important; }
.hero-visual__orbit:hover .gripper-r { animation: gripperPickR 5s cubic-bezier(0.4,0,0.2,1) infinite !important; }

@keyframes gripperPickL {
  0%, 10%   { transform: translateX(0);      }  /* abierta — acercando */
  20%, 82%  { transform: translateX(2.5px);  }  /* CERRADA — sostiene objeto */
  92%, 100% { transform: translateX(0);      }  /* abierta — soltó / regresando */
}
@keyframes gripperPickR {
  0%, 10%   { transform: translateX(0);      }
  20%, 82%  { transform: translateX(-2.5px); }
  92%, 100% { transform: translateX(0);      }
}

/* ── HMI SCADA: animaciones de proceso en hover ── */

/* Nivel de tanque: sube y baja escalando desde el fondo (y=93) */
.scada-level-g {
  transform-box: view-box;
  transform-origin: 57px 93px;
}
.hero-visual__orbit:hover .scada-level-g {
  animation: scadaTank 4s ease-in-out infinite;
}
@keyframes scadaTank {
  0%, 100% { transform: scaleY(1);    }
  50%      { transform: scaleY(1.38); }
}

/* Dots de flujo: ocultos en reposo, visibles en hover */
.scada-flow-dot { opacity: 0; transition: opacity 0.4s ease; }
.hero-visual__orbit:hover .scada-flow-dot { opacity: 0.95; }

/* Bomba: rotor gira en hover */
.scada-pump-rotor { transform-box: view-box; transform-origin: 83px 91px; }
.hero-visual__orbit:hover .scada-pump-rotor { animation: rotateCW 1.1s linear infinite; }

/* Válvula: los dos triángulos se acercan (cierra) y se alejan (abre) */
.scada-valve-l { transform-box: fill-box; }
.scada-valve-r { transform-box: fill-box; }
.hero-visual__orbit:hover .scada-valve-l { animation: valveL 3.5s ease-in-out infinite; }
.hero-visual__orbit:hover .scada-valve-r { animation: valveR 3.5s ease-in-out infinite; }
@keyframes valveL { 0%,100%{transform:translateX(0)} 40%,60%{transform:translateX(1.4px)} }
@keyframes valveR { 0%,100%{transform:translateX(0)} 40%,60%{transform:translateX(-1.4px)} }

/* Valores numéricos: alternan entre dos lecturas (simula scan de proceso) */
.hero-visual__orbit:hover .scada-val-t1  { animation: valUpdate  2.8s step-end infinite; }
.hero-visual__orbit:hover .scada-val-t2  { animation: valUpdate2 2.8s step-end infinite; }
.hero-visual__orbit:hover .scada-val-p1  { animation: valUpdate  2.8s step-end infinite 0.7s; }
.hero-visual__orbit:hover .scada-val-p2  { animation: valUpdate2 2.8s step-end infinite 0.7s; }
.hero-visual__orbit:hover .scada-val-lv1 { animation: valUpdate  2.8s step-end infinite 1.4s; }
.hero-visual__orbit:hover .scada-val-lv2 { animation: valUpdate2 2.8s step-end infinite 1.4s; }
@keyframes valUpdate  { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes valUpdate2 { 0%,49%{opacity:0} 50%,100%{opacity:1} }

/* LEDs de estado */
.scada-run-led    { animation: ledBlink 1.5s step-end infinite 0.5s; }
.scada-status-led { animation: ledBlink 1.5s step-end infinite; }
.hero-visual__orbit:hover .scada-alarm        { animation: ledBlink 0.6s step-end infinite; opacity: 1 !important; }
.hero-visual__orbit:hover .scada-alarm-led    { animation: ledBlink 0.6s step-end infinite; opacity: 1 !important; }

/* ── Red neuronal: nodos brillan en hover ── */
.nn-node { transition: filter 0.3s; }
.hero-visual__orbit:hover .nn-node { filter: drop-shadow(0 0 4px rgba(124,58,237,0.9)); }

@keyframes rotateCW  { to { transform: rotate(360deg); } }
@keyframes rotateCCW { to { transform: rotate(-360deg); } }
@keyframes orbit1 { to { transform: rotate(360deg)   translateX(185px) rotate(-360deg); } }
@keyframes orbit2 { to { transform: rotate(450deg)   translateX(185px) rotate(-450deg); } }
@keyframes orbit3 { to { transform: rotate(540deg)   translateX(185px) rotate(-540deg); } }
@keyframes orbit4 { to { transform: rotate(630deg)   translateX(185px) rotate(-630deg); } }

/* Signal dot: travels from chip edge → terminal, then resets */
@keyframes sigFlow {
  0%   { stroke-dashoffset:  6; }
  100% { stroke-dashoffset: -68; }
}
.sig-e  { animation: sigFlow 1.8s linear infinite;      }
.sig-ne { animation: sigFlow 1.5s linear infinite 0.3s; }
.sig-n  { animation: sigFlow 2.0s linear infinite 0.7s; }
.sig-nw { animation: sigFlow 1.2s linear infinite 1.1s; }
.sig-w  { animation: sigFlow 1.9s linear infinite 0.5s; }
.sig-sw { animation: sigFlow 2.1s linear infinite 0.9s; }
.sig-s  { animation: sigFlow 1.7s linear infinite 1.4s; }
.sig-se { animation: sigFlow 1.4s linear infinite 0.2s; }

/* Terminal dot pulse */
@keyframes termPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.15; }
}
.term-pulse-a { animation: termPulse 2.4s ease-in-out infinite;      }
.term-pulse-b { animation: termPulse 2.4s ease-in-out infinite 0.8s; }
.term-pulse-c { animation: termPulse 2.4s ease-in-out infinite 1.6s; }

/* Slick prev/next (arrows disabled in this theme but styled as fallback) */
.slick-prev, .slick-next {
  z-index: 10; width: 44px; height: 44px;
  background: var(--navy-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 50% !important;
  transition: all var(--tr) !important;
}
.slick-prev:hover, .slick-next:hover { background: var(--tech-dim) !important; border-color: var(--tech) !important; }
.slick-prev:before, .slick-next:before { color: var(--tech) !important; }

/* Slick dots — hero slider & testimonials */
.slick-dots {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex !important;
  align-items: center; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.slick-dots li { display: flex; align-items: center; }
.slick-dots li button {
  width: 8px; height: 8px;
  padding: 0; border: none; outline: none;
  border-radius: 50%;
  background: rgba(226,232,240,0.25);
  font-size: 0; line-height: 0;
  cursor: pointer;
  transition: background var(--tr), width var(--tr), border-radius var(--tr);
}
.slick-dots li button:hover { background: rgba(74,158,255,0.5); }
.slick-dots li.slick-active button {
  width: 28px;
  border-radius: 4px;
  background: var(--tech);
  box-shadow: 0 0 10px rgba(74,158,255,0.55);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ESTADÍSTICAS
═══════════════════════════════════════════════════════════════════════════ */
.stats-area { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-area .row { align-items: stretch; }

.stat-item {
  text-align: center; padding: 12px 14px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.stat-item h3 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--tech);
  letter-spacing: -0.04em; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--tech), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-cert { font-family: var(--font-mono) !important; font-size: clamp(1.6rem, 3vw, 2rem) !important; margin-bottom: 4px; }
.stat-plus { font-size: 0.6em; vertical-align: super; }
.stat-item p { color: var(--steel); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }

/* Rotador de certificaciones — crossfade entre estándares */
.stat-cert-rotator { position: relative; width: 100%; min-height: 6.8em; margin-bottom: 4px; }
.stat-cert-logo { display: block; height: 28px; margin: 0 auto 6px; line-height: 0; }
.stat-cert-logo svg { height: 28px; width: auto; display: inline-block; }
.stat-cert-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  opacity: 0; transform: translateY(7px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.stat-cert-slide.is-active { opacity: 1; transform: none; }
.stat-cert-desc {
  color: var(--text-sec); font-size: 0.72rem; line-height: 1.4;
  letter-spacing: 0; text-transform: none; margin: 0; max-width: 16em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECCIONES — fondos alternos
═══════════════════════════════════════════════════════════════════════════ */
.section-bg1  { background: var(--navy-surface) !important; }
.section-bg2  { background: var(--navy-deep) !important; }
.section-padding40 { padding: 60px 0; }
.section-padding30 { padding: 44px 0; }
/* Comprime el gap entre Áreas de especialidad → Mi perfil */
.team-area.section-padding40    { padding-bottom: 28px; }
.about-area1:not(.about-area1--alt) { padding-top: 28px; }
.mb-70 { margin-bottom: 70px !important; }

/* Pretitle y titulares de sección */
.section-tittle { text-align: center; }

.section-pretitle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-pretitle::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
.section-tittle h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--steel-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
  text-align: center;
}
.section-tittle p { color: var(--text-sec); max-width: 600px; margin: 0 auto; }
.section-tittle2,
.section-tittle2 h2 { text-align: left; }

/* ═══════════════════════════════════════════════════════════════════════════
   TARJETAS DE ESPECIALIDAD
═══════════════════════════════════════════════════════════════════════════ */
#especialidades .row:not(:first-child) { row-gap: 50px; }
#especialidades .row:not(:first-child) [class*="col-"] { display: flex; }
.single-cat {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 24px;
  margin-bottom: 50px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  position: relative; overflow: hidden;
}
/* Acento por tipo: tech → azul, legal/regulación → dorado */
.single-cat { --cat-accent: var(--tech); }
.single-cat--legal,
.single-cat--reg { --cat-accent: var(--gold); }

/* Marco técnico — corchetes en L que se dibujan en las 4 esquinas al hover.
   8 capas de fondo (brazo horizontal + vertical por esquina); el trazo crece
   desde cada esquina hacia dentro animando background-size. */
.single-cat::before {
  content: '';
  position: absolute; inset: 11px;
  pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(var(--cat-accent), var(--cat-accent)), linear-gradient(var(--cat-accent), var(--cat-accent)),
    linear-gradient(var(--cat-accent), var(--cat-accent)), linear-gradient(var(--cat-accent), var(--cat-accent)),
    linear-gradient(var(--cat-accent), var(--cat-accent)), linear-gradient(var(--cat-accent), var(--cat-accent)),
    linear-gradient(var(--cat-accent), var(--cat-accent)), linear-gradient(var(--cat-accent), var(--cat-accent));
  background-repeat: no-repeat;
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-size:
    0 2px, 2px 0, 0 2px, 2px 0,
    0 2px, 2px 0, 0 2px, 2px 0;
  opacity: 0;
  transition: background-size 0.4s ease, opacity 0.3s ease;
}
.single-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--cat-accent) 45%, transparent);
}
.single-cat:hover::before {
  opacity: 1;
  background-size:
    20px 2px, 2px 20px, 20px 2px, 2px 20px,
    20px 2px, 2px 20px, 20px 2px, 2px 20px;
}

.cat-icon {
  width: 104px; height: 104px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  flex-shrink: 0;
  overflow: visible;
}
.cat-icon--wide { width: 152px; height: 94px; border-radius: 16px; }
.cat-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.cat-icon__ring {
  position: absolute; inset: -7px; border-radius: 24px;
  opacity: 0; transform: scale(0.82);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; z-index: 1;
}
.cat-icon--wide .cat-icon__ring { border-radius: 20px; }

.cat-icon--tech {
  background: linear-gradient(135deg, rgba(74,158,255,0.22) 0%, rgba(74,158,255,0.06) 100%);
  border: 1px solid rgba(74,158,255,0.38); color: var(--tech);
}
.cat-icon--tech .cat-icon__ring { border: 1px solid rgba(74,158,255,0.6); }

.cat-icon--legal {
  background: linear-gradient(135deg, rgba(201,168,76,0.22) 0%, rgba(201,168,76,0.07) 100%);
  border: 1px solid rgba(201,168,76,0.42); color: var(--gold);
}
.cat-icon--legal .cat-icon__ring { border: 1px solid rgba(201,168,76,0.65); }

.single-cat:hover .cat-icon--tech {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(74,158,255,0.40), inset 0 0 14px rgba(74,158,255,0.12);
}
.single-cat:hover .cat-icon--legal {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(201,168,76,0.40), inset 0 0 14px rgba(201,168,76,0.12);
}
.single-cat:hover .cat-icon__ring { opacity: 1; transform: scale(1); }

/* ══ 1 — CIBERSEGURIDAD: scan line + fingerprint ridge scan ═ */
.single-cat--cyber:hover .cyber-scan { animation: cyberScan 1.8s ease-in-out infinite; }
.single-cat--cyber:hover .fp-1 { animation: fpRidge 2.4s ease-in-out infinite; }
.single-cat--cyber:hover .fp-2 { animation: fpRidge 2.4s ease-in-out infinite 0.3s; }
.single-cat--cyber:hover .fp-3 { animation: fpRidge 2.4s ease-in-out infinite 0.6s; }
@keyframes cyberScan {
  0%   { transform: translateY(0);    opacity: 0; }
  8%   { opacity: 0.85; }
  88%  { transform: translateY(38px); opacity: 0.85; }
  100% { transform: translateY(40px); opacity: 0; }
}
@keyframes fpRidge {
  0%,100% { opacity: 0.2; }
  40%     { opacity: 0.55; }
}

/* ══ 2 — AUTOMATIZACIÓN + REDES: LED, brazo oscila, paquete sube por la red ═ */
.single-cat--auto:hover .plc-led  { animation: ledPulse 0.9s ease-in-out infinite; }
.single-cat--auto:hover .arm-elbow {
  transform-box: fill-box; transform-origin: 0% 50%;
  animation: armSwing 1.6s ease-in-out infinite;
}
.single-cat--auto:hover .net-pkt { animation: netPkt 1.9s ease-in-out infinite; }
@keyframes ledPulse {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
}
@keyframes armSwing {
  0%,100% { transform: rotate(0deg); }
  35%     { transform: rotate(-35deg); }
  65%     { transform: rotate(18deg); }
}
@keyframes netPkt {
  0%   { transform: translateY(0);     opacity: 0; }
  12%  { opacity: 1; }
  85%  { transform: translateY(36px);  opacity: 1; }
  100% { transform: translateY(38px);  opacity: 0; }
}

/* ══ 3 — CLOUD: LEDs de servidores, nodos IA pulsan, paquete sube a la nube ═ */
.single-cat--cloud:hover .srv-led   { animation: ledPulse 0.9s ease-in-out infinite; }
.single-cat--cloud:hover .srv-led2  { animation: ledPulse 0.9s ease-in-out infinite 0.45s; }
.single-cat--cloud:hover .ai-node   { animation: mcuLed 1.6s ease-in-out infinite; }
.single-cat--cloud:hover .ai-node2  { animation: mcuLed 1.6s ease-in-out infinite 0.5s; }
.single-cat--cloud:hover .cloud-pkt { animation: cloudUp 1.7s ease-in-out infinite; }
@keyframes cloudUp {
  0%   { transform: translateY(0);    opacity: 0; }
  16%  { opacity: 1; }
  80%  { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(-9px); opacity: 0; }
}

/* ══ 3 — REDES: packets travel from corners toward hub ══════ */
.single-cat--net:hover .pkt-1 { animation: pktMove1 1.6s ease-in-out infinite; }
.single-cat--net:hover .pkt-2 { animation: pktMove2 1.6s ease-in-out infinite 0.4s; }
.single-cat--net:hover .pkt-3 { animation: pktMove3 1.6s ease-in-out infinite 0.8s; }
.single-cat--net:hover .pkt-4 { animation: pktMove4 1.6s ease-in-out infinite 1.2s; }
@keyframes pktMove1 {
  0%   { transform: translate(0,0);     opacity: 0; }
  10%  { opacity: 1; }
  82%  { transform: translate(7px,7px); opacity: 1; }
  100% { transform: translate(9px,9px); opacity: 0; }
}
@keyframes pktMove2 {
  0%   { transform: translate(0,0);       opacity: 0; }
  10%  { opacity: 1; }
  82%  { transform: translate(-7px,7px);  opacity: 1; }
  100% { transform: translate(-9px,9px);  opacity: 0; }
}
@keyframes pktMove3 {
  0%   { transform: translate(0,0);      opacity: 0; }
  10%  { opacity: 1; }
  82%  { transform: translate(7px,-7px); opacity: 1; }
  100% { transform: translate(9px,-9px); opacity: 0; }
}
@keyframes pktMove4 {
  0%   { transform: translate(0,0);        opacity: 0; }
  10%  { opacity: 1; }
  82%  { transform: translate(-7px,-7px);  opacity: 1; }
  100% { transform: translate(-9px,-9px);  opacity: 0; }
}
.single-cat--net:hover .scada-scan { animation: scadaScan 2s linear    infinite; }
.single-cat--net:hover .scada-led  { animation: mcuLed    2s ease-in-out infinite 0.6s; }
@keyframes scadaScan {
  0%   { transform: translateX(0px);  opacity: 0; }
  6%   { opacity: 0.6; }
  88%  { transform: translateX(18px); opacity: 0.6; }
  100% { transform: translateX(18px); opacity: 0; }
}

/* ══ 4 — EMBEBIDOS: MCU → I/O peripheral + antenna react ══ */
.single-cat--embed:hover .mcu-led  { animation: mcuLed       1.8s ease-in-out infinite; }
.single-cat--embed:hover .sig-ic   { animation: sigIcTravel  1.8s ease-in-out infinite 0.25s; }
.single-cat--embed:hover .sig-ant  { animation: sigAntTravel 1.8s ease-in-out infinite 0.25s; }
.single-cat--embed:hover .ic-led   { animation: mcuLed       1.8s ease-in-out infinite 0.90s; }
.single-cat--embed:hover .feed-horn { animation: mcuLed      1.8s ease-in-out infinite 0.92s; }
.single-cat--embed:hover .wave-1   { animation: waveRadiate  1.8s ease-out     infinite 0.95s; }
.single-cat--embed:hover .wave-2   { animation: waveRadiate  1.8s ease-out     infinite 1.15s; }
.single-cat--embed:hover .wave-3   { animation: waveRadiate  1.8s ease-out     infinite 1.35s; }
@keyframes mcuLed {
  0%,100% { opacity: 0.25; }
  40%     { opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
}
@keyframes sigIcTravel {
  0%   { transform: translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  75%  { transform: translateX(12px); opacity: 1; }
  92%  { transform: translateX(13px); opacity: 0; }
  100% { transform: translateX(13px); opacity: 0; }
}
@keyframes sigAntTravel {
  0%   { transform: translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  75%  { transform: translateX(16px); opacity: 1; }
  92%  { transform: translateX(17px); opacity: 0; }
  100% { transform: translateX(17px); opacity: 0; }
}
@keyframes waveRadiate {
  0%   { opacity: 0; }
  25%  { opacity: 0.9; }
  70%  { opacity: 0.9; }
  100% { opacity: 0; }
}

/* ══ 5 — DERECHO: balance scale tips left then right ═══════ */
.single-cat--legal:hover .scale-pivot {
  transform-box: fill-box; transform-origin: 50% 0%;
  animation: scaleTip 2s ease-in-out infinite;
}
@keyframes scaleTip {
  0%,100% { transform: rotate(0deg); }
  25%     { transform: rotate(-13deg); }
  75%     { transform: rotate(13deg); }
}

/* ══ 6 — GESTIÓN PÚBLICA: el sello se estampa y la bandera ondea ═══ */
.single-cat--reg:hover .gov-seal {
  transform-box: fill-box; transform-origin: center;
  animation: govStamp 2s ease-in-out infinite;
}
.single-cat--reg:hover .gov-flag {
  transform-box: fill-box; transform-origin: 0% 50%;
  animation: govFlag 1.4s ease-in-out infinite;
}
@keyframes govStamp {
  0%   { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  16%  { transform: scale(1.15) rotate(2deg);  opacity: 1; }
  28%  { transform: scale(1)    rotate(0deg);  opacity: 1; }
  84%  { opacity: 1; }
  100% { transform: scale(1)    rotate(0deg);  opacity: 0; }
}
@keyframes govFlag {
  0%,100% { transform: scaleX(1); }
  50%     { transform: scaleX(0.55); }
}

.cat-cap { text-align: center; }
.cat-cap h5 { font-size: 1rem; color: var(--text-primary); margin-bottom: 10px; font-weight: 600; }
.cat-cap p { color: var(--text-sec); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   SOBRE MÍ
═══════════════════════════════════════════════════════════════════════════ */
.about-img {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-img img { display: block; width: 100%; height: 360px; object-fit: cover; filter: brightness(0.9) saturate(0.82); }
/* Velo suave para armonizar la foto con la paleta navy/tech */
.about-img::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(74,158,255,0.18) 0%, rgba(5,13,26,0.42) 68%, rgba(201,168,76,0.10) 100%);
}
.about-img__badge {
  position: absolute; bottom: 20px; left: 20px; z-index: 2;
}
.about-img__badge--right { left: auto; right: 20px; }
@media (max-width: 767px) { .about-img img { height: 300px; } }

.about-subtitle {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; font-weight: 700; color: var(--tech);
  margin: 0 0 14px;
}
.about-list { padding: 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.about-list li i { color: var(--tech); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.about-list li p { color: var(--text-sec); margin: 0; font-size: 0.9rem; }

.about-area1--alt { background: var(--navy-surface) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   TARJETAS DE SERVICIO (reemplaza Pricing)
═══════════════════════════════════════════════════════════════════════════ */
.pricing-card-area { padding: 80px 0; background: var(--navy-deep); }

.single-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}
.single-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card), var(--shadow-tech); }

.single-card--featured {
  border-color: rgba(201,168,76,0.4);
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(26,48,96,0.6) 100%);
  box-shadow: 0 0 40px rgba(201,168,76,0.1);
}
.single-card--featured:hover { box-shadow: var(--shadow-card), var(--shadow-gold); }

.card-ribbon {
  position: absolute; top: 28px; right: -54px;
  width: 200px; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 0; transform: rotate(45deg);
}

.card-icon {
  width: 86px; height: 86px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 20px;
}
.card-icon--tech { background: var(--tech-dim); color: var(--tech); border: 1px solid rgba(74,158,255,0.25); }
.card-icon--gold { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }

.card-top h4 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 4px; }
.card-sub { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.card-features ul { margin: 24px 0; }
.card-features li { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text-sec); font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.card-features li:last-child { border: none; }
.card-features li i { color: var(--tech); font-size: 0.75rem; }

.borders-btn {
  display: inline-block; padding: 10px 28px;
  border: 1px solid var(--tech); color: var(--tech);
  border-radius: 50px; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all var(--tr);
}
.borders-btn:hover { background: var(--tech-dim); box-shadow: var(--shadow-tech); color: #fff; }
.borders-btn--gold { border-color: var(--gold) !important; color: var(--gold) !important; }
.borders-btn--gold:hover { background: var(--gold-dim) !important; box-shadow: var(--shadow-gold) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════════════════ */
.single-question {
  gap: 20px; align-items: flex-start;
}
.single-question span {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700;
  color: var(--tech); flex-shrink: 0; line-height: 1;
}
.single-question h2 { font-size: 1rem; color: var(--text-primary); font-weight: 600; margin-bottom: 8px; }
.single-question p { color: var(--text-sec); font-size: 0.875rem; margin: 0; line-height: 1.7; }
/* Más aire vertical entre preguntas */
.ask-questions .single-question { margin-bottom: 70px; }
@media (max-width: 767px) { .ask-questions .single-question { margin-bottom: 48px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALES
═══════════════════════════════════════════════════════════════════════════ */
.testimonial-area { padding: 44px 0; }
.testimonial-area .section-tittle.mb-50 { margin-bottom: 20px !important; }
.testimonial-area .single-testimonial.mt-30 { margin-top: 0 !important; }

.single-testimonial { padding: 0 20px; }
.testimonial-caption { position: relative; }
.quotes-sign {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  opacity: 0.12; filter: hue-rotate(180deg);
  pointer-events: none; z-index: 0;
}
.single-testimonial .testimonial-caption p {
  position: relative; z-index: 1;
  color: var(--text-sec); font-size: 1rem; line-height: 1.8;
  font-style: italic; max-width: 680px; margin: 0 auto 30px;
}
.testimonial-founder { gap: 16px; }
.founder-img img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--border); }
.founder-text span { display: block; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.founder-text p { color: var(--text-muted); font-size: 0.78rem; margin: 0; }

/* Dots del testimonial: flujo normal debajo del contenido */
.h1-testimonial-active .slick-dots {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  margin-top: 28px;
  justify-content: center;
}
.testimonial-founder { margin-bottom: 8px; }

/* ─── Pasarela de logos de clientes ───────────────────────────────────────── */
.clients-strip { margin-top: 44px; }
.clients-strip__label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  /* Desvanece los extremos para que los logos no se corten en seco */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.clients-marquee__viewport {
  display: flex;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}
.clients-marquee:hover .clients-marquee__viewport { animation-play-state: paused; }

/* La cinta se duplica en el HTML; -50% deja el segundo juego justo donde
   empezaba el primero, de ahí el bucle sin salto. */
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px 0 0;
  margin: 0;
  list-style: none;
}

/* Cada logo va en dos versiones apiladas: la monocroma de la paleta (visible,
   PNG con alfa directamente sobre el navy) y la original a color, que aparece
   al hover junto con una placa clara — los logos institucionales están hechos
   para papel blanco y sobre navy se pierden EY e IGP. */
.client-logo {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 82px;
  transition: transform var(--tr);
}
.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: var(--surface-light);
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity var(--tr);
}
.client-logo__img {
  position: relative;
  max-width: 164px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity var(--tr);
}
.client-logo__img--mono { opacity: 0.85; }
.client-logo__img--color {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}
.client-logo:hover { transform: translateY(-4px); }
.client-logo:hover::before { opacity: 1; }
.client-logo:hover .client-logo__img--mono { opacity: 0; }
.client-logo:hover .client-logo__img--color { opacity: 1; }

@media (max-width: 767px) {
  .clients-strip { margin-top: 32px; }
  .client-logo { width: 158px; height: 68px; }
  .client-logo__img { max-width: 130px; max-height: 46px; }
  .clients-track { gap: 14px; padding-right: 14px; }
  .clients-marquee__viewport { animation-duration: 30s; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee { overflow-x: auto; }
  .clients-marquee__viewport { animation: none; }
  .clients-marquee__viewport .clients-track[aria-hidden="true"] { display: none; }
  .client-logo { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACTO CTA
═══════════════════════════════════════════════════════════════════════════ */
.contact-cta {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.contact-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--tech), var(--gold), transparent);
}
.cta-btns { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RECURSOS MEGA-MENU
═══════════════════════════════════════════════════════════════════════════ */
.recursos-menu { position: static !important; }

.recursos-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.recursos-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.recursos-trigger[aria-expanded="true"] .recursos-chevron { transform: rotate(180deg); }

/* Backdrop */
.recursos-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 198;
}
.recursos-backdrop.is-open { display: block; }

/* Panel — cubre desde arriba (top:0, por encima del header) en vez de calzar
   su borde con el del header: así no hay dos superficies distintas que
   igualar, el panel directamente reemplaza al header mientras está abierto. */
.recursos-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(5,13,26,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  padding: 100px 40px 40px;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.recursos-panel.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.recursos-panel__inner { position: relative; }

/* Watermark: tipografía enorme en mayúsculas, detrás de las tarjetas (no
   empuja el layout), con degradado tech→blanco bien sutil para que se lea
   como fondo y no compita con las opciones que están encima. */
.recursos-panel__label {
  position: absolute;
  top: -78px; left: 0; right: 0;
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--tech) 0%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  margin: 0;
}

.recursos-close {
  position: absolute;
  top: 20px; right: 28px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.18);
  color: var(--color-steel-light, #b0bfd0);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.recursos-close:hover {
  background: rgba(74,158,255,0.18);
  color: #fff;
}

/* Grid de tarjetas — por encima del watermark del label */
.recursos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.rc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: rgba(74,158,255,0.04);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  cursor: pointer;
}
a.rc-card:hover {
  background: rgba(74,158,255,0.10);
  border-color: rgba(74,158,255,0.38);
  transform: translateY(-3px);
}

.rc-card__icon {
  color: var(--color-tech, #4a9eff);
  display: block;
  margin-bottom: 4px;
}
.rc-card__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary, #e8edf2);
  letter-spacing: -0.01em;
}
.rc-card__desc {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-secondary, #8a9bb8);
  line-height: 1.45;
}
.rc-card__badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.62rem;
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold, #c9a84c);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 2px 6px;
}
.rc-card--wip { opacity: 0.55; cursor: default; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.footer-wrappr {
  background: var(--navy-surface) !important;
  border-top: 1px solid var(--border);
  background-size: cover;
}
.footer-area { padding: 70px 0 40px; }

.footer-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.04em; }
.footer-logo-text span { color: var(--tech); }

.footer-tittle p { color: var(--text-sec); font-size: 0.875rem; line-height: 1.7; }
.footer-tittle h4 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.footer-tittle ul li { margin-bottom: 8px; }
.footer-tittle ul li a { color: var(--text-sec); font-size: 0.875rem; }
.footer-tittle ul li a:hover { color: var(--tech); }
.footer-tittle ul li { color: var(--text-sec); font-size: 0.875rem; }

.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--steel);
  margin-right: 8px; transition: all var(--tr);
}
.footer-social a:hover { border-color: var(--tech); color: var(--tech); box-shadow: var(--shadow-tech); }

.footer-bottom-area { padding: 20px 0; border-top: 1px solid var(--border); }
.footer-copy-right p { color: var(--text-muted); font-size: 0.78rem; margin: 0; }
.footer-copy-right a { color: var(--text-muted); text-decoration: none; transition: color var(--tr); }
.footer-copy-right a:hover { color: var(--tech); }
.footer-sep { margin: 0 8px; opacity: 0.45; }
.footer-mono { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; margin: 0; }
.footer-cursor { color: var(--tech); animation: cursorBlink 1.2s step-end infinite; }
.text-right { text-align: right; }

@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════════════════════════ */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500; display: none;
}
#back-top a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--navy-card); border: 1px solid var(--tech);
  border-radius: 50%; color: var(--tech) !important;
  font-size: 0.9rem; transition: all var(--tr);
  box-shadow: var(--shadow-tech);
}
#back-top a:hover { background: var(--tech-dim); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILIDADES WOW.JS / ANIMATE.CSS OVERRIDES
═══════════════════════════════════════════════════════════════════════════ */
.wow { visibility: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .slider-height { min-height: 100svh; }
  .about-img { margin-bottom: 40px; }
  .section-padding40 { padding: 60px 0; }
  .hero-visual { display: none; }
}
@media (max-width: 767px) {
  .stats-area .col-md-6 { margin-bottom: 24px; }
  .single-card { margin-bottom: 24px; }
  .cta-btns .btn3 { margin-left: 0 !important; }
  .footer-tittle { margin-bottom: 32px; }
  .text-right { text-align: left; }
}
