/* ===========================================================
   SOLVEXA · solvexa-plus.css   (v2)
   Complemento ADITIVO de styles.css — no sustituye nada.
   Usa tus mismas variables (--blue = #e10600, --white = #0b0b0e...).
   Si borras la línea que lo carga, la web vuelve a estar como estaba.
   =========================================================== */

/* --- 1. TIPOGRAFÍA -------------------------------------------------
   La web usaba Arial. Es el cambio más barato y más visible.        */
body{ font-family:'Work Sans', Arial, Helvetica, sans-serif; }
h1,h2,h3,h4,.btn,.nav-links a,.stat b{
  font-family:'Outfit','Work Sans',Arial,sans-serif;
  letter-spacing:-.02em;
}
h1{ letter-spacing:-.035em; }

/* --- 2. BARRA DE PROGRESO DE LECTURA ------------------------------ */
#sx-progress{
  position:fixed; top:0; left:0; height:3px; width:0;
  background:linear-gradient(90deg,var(--blue),#ff6a5e);
  z-index:9999; transition:width .12s linear;
  box-shadow:0 0 12px rgba(225,6,0,.7);
}

/* --- 3. HERO DINÁMICO: capa de vídeo -------------------------------
   IMPORTANTE: mix-blend-mode:screen hace que el negro del vídeo sea
   transparente. Así los trazos rojos se suman SOBRE tu imagen del
   lobo y la ciudad, en vez de taparla.                              */
.sx-hero-media{
  /* SIN z-index a proposito: un z-index aqui crea un contexto de apilamiento
     y entonces el mix-blend-mode del video se mezcla con la nada en vez de
     con la imagen de fondo del hero, y la tapa. */
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.sx-hero-media video{
  width:100%; height:100%; object-fit:cover;
  mix-blend-mode:screen; opacity:0;
  transition:opacity 1.4s ease;
}
.sx-hero-media video.sx-ready{ opacity:.9; }
.hero > .container{ position:relative; z-index:2; }

/* --- 4. HERO DINÁMICO: entrada escalonada -------------------------- */
.sx-anim .hero .container > *{
  opacity:0; transform:translateY(18px);
  animation:sx-entra .75s cubic-bezier(.22,.75,.25,1) forwards;
}
.sx-anim .hero .container > *:nth-child(1){ animation-delay:.10s }
.sx-anim .hero .container > *:nth-child(2){ animation-delay:.20s }
.sx-anim .hero .container > *:nth-child(3){ animation-delay:.30s }
.sx-anim .hero .container > *:nth-child(4){ animation-delay:.40s }
.sx-anim .hero .container > *:nth-child(5){ animation-delay:.50s }
.sx-anim .hero .container > *:nth-child(6){ animation-delay:.58s }
@keyframes sx-entra{ to{ opacity:1; transform:none } }

/* --- 5. MENÚ: submenú desplegable en "Servicios" ------------------ */
.sx-has-sub{ position:relative; }
.sx-sub{
  position:absolute; top:calc(100% + 14px); left:50%;
  transform:translateX(-50%) translateY(-8px);
  min-width:260px; padding:10px;
  background:rgba(20,21,28,.97); backdrop-filter:blur(14px);
  border:1px solid rgba(225,6,0,.28); border-radius:14px;
  box-shadow:var(--shadow);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
  z-index:80;
}
.sx-has-sub:hover .sx-sub,
.sx-has-sub:focus-within .sx-sub,
.sx-sub.sx-open{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.sx-sub a{
  display:block; padding:11px 14px; border-radius:10px;
  color:var(--ink); text-decoration:none; font-size:15px; line-height:1.3;
  transition:background .18s ease, color .18s ease, padding-left .18s ease;
}
.sx-sub a small{ display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
.sx-sub a:hover{ background:rgba(225,6,0,.14); color:#fff; padding-left:19px; }

/* --- 6. MENÚ: subrayado de la sección activa ---------------------- */
.nav-links a.sx-current{ color:#fff; }
.nav-links a.sx-current::after{
  content:''; display:block; height:2px; margin-top:5px;
  background:var(--blue); border-radius:2px;
}

/* --- 7. CINTA DE SERVICIOS EN MOVIMIENTO -------------------------- */
.sx-ticker{
  overflow:hidden; background:var(--blue-soft);
  border-top:1px solid rgba(225,6,0,.22);
  border-bottom:1px solid rgba(225,6,0,.22);
  padding:12px 0;
}
.sx-ticker-track{ display:flex; width:max-content; animation:sx-slide 36s linear infinite; }
.sx-ticker:hover .sx-ticker-track{ animation-play-state:paused; }
.sx-ticker-track span{
  padding:0 26px; white-space:nowrap; color:var(--muted);
  font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:600;
}
.sx-ticker-track span::after{ content:'·'; margin-left:26px; color:var(--blue); }
@keyframes sx-slide{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* --- 8. FRANJA DE COMPROMISOS (sustituye a las cifras) ------------
   Ya no hay "+50 proyectos". Ahora son promesas que sí puedes cumplir. */
.stats .stat b{
  font-size:clamp(20px,2.2vw,27px); line-height:1.15; color:#fff;
  letter-spacing:-.02em; display:block;
}
.stats .stat span{ display:block; margin-top:6px; color:var(--muted); font-size:14.5px; }
.stats .stat{ position:relative; }
.stats .stat::before{
  content:''; display:block; width:26px; height:2px; margin:0 auto 14px;
  background:var(--blue); border-radius:2px; opacity:.85;
}

/* --- 9. TARJETAS Y BOTONES ---------------------------------------- */
.card{ transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.card:hover{
  transform:translateY(-6px);
  border-color:rgba(225,6,0,.55);
  box-shadow:var(--shadow-lg);
}
.btn{ transition:transform .18s ease, box-shadow .18s ease; }
.btn:hover{ transform:translateY(-2px); }
.btn-primary:hover{ box-shadow:0 8px 26px rgba(225,6,0,.45); }

/* --- 10. FOCO VISIBLE (accesibilidad) ----------------------------- */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--blue); outline-offset:3px; border-radius:4px;
}

/* --- 11. MÓVIL ---------------------------------------------------- */
@media (max-width:900px){
  .sx-sub{
    position:static; transform:none; opacity:1; visibility:visible;
    pointer-events:auto; min-width:0; margin:6px 0 2px;
    background:rgba(255,255,255,.03); border-color:rgba(225,6,0,.18);
  }
  .sx-ticker-track span{ font-size:11.5px; padding:0 18px; }
  .sx-hero-media video{ opacity:0 !important; }   /* ahorra datos en móvil */
}

/* --- 12. RESPETA A QUIEN PIDE MENOS MOVIMIENTO -------------------- */
@media (prefers-reduced-motion:reduce){
  .sx-ticker-track{ animation:none; }
  .card,.btn{ transition:none; }
  .sx-hero-media{ display:none; }
  .sx-anim .hero .container > *{ opacity:1; transform:none; animation:none; }
}
