/* Fluent / Windows 11 inspired theme
   Paleta: Azul #0078D4, Morado #6F42C1
   Mica: textura sutil + profundidad
   Acrylic: blur en header/modales
   Bordes: 8px–12px
   Tipografía: Segoe UI Variable (fallback Inter / system-ui)
*/

:root{
  --a53-blue: #0078D4;
  --a53-purple: #6F42C1;

  --bg-1: rgba(255,255,255,.70);
  --bg-2: rgba(255,255,255,.52);
  --stroke: rgba(255,255,255,.45);
  --shadow: 0 14px 40px rgba(0,0,0,.12);

  --radius-8: 8px;
  --radius-12: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  color: #111827;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: -999px;
  background: #111827;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: var(--radius-8);
  z-index: 9999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* Mica background */
.mica-body{
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(0,120,212,.22), transparent 55%),
    radial-gradient(1000px 700px at 80% 20%, rgba(111,66,193,.20), transparent 60%),
    radial-gradient(900px 700px at 40% 90%, rgba(0,120,212,.12), transparent 55%),
    linear-gradient(180deg, #f6f7fb 0%, #eef1f7 100%);
  position: relative;
  overflow-x: hidden;
}
.mica-body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    repeating-radial-gradient(circle at 10% 20%, rgba(0,0,0,.22) 0 1px, transparent 1px 6px),
    repeating-radial-gradient(circle at 70% 60%, rgba(0,0,0,.18) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
  z-index: 1; /* sobre los blobs, debajo del contenido */
}

/* Acrylic header */
.acrylic-header{
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .acrylic-header{ background: rgba(255,255,255,.92); }
}

/* JS toggles this: .site-header.header-scrolled */
.site-header.header-scrolled{
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  background: rgba(255,255,255,.78);
  border-bottom-color: rgba(255,255,255,.72);
}

.site-header .navbar{ padding: .75rem 0; }
.navbar-brand{ margin-right: 0; }

.brand-name{
  font-weight: 800;
  letter-spacing: .2px;
  color: #0f172a;
}
.brand-divider{
  width: 1px;
  height: 34px;
  background: rgba(15,23,42,.15);
}

.nav-link{
  border-radius: 999px;
  padding: .5rem .75rem !important;
  color: #0f172a;
}
.nav-link:hover{
  background: rgba(0,120,212,.08);
}
.nav-link.active{
  background: rgba(0,120,212,.12);
  color: #0f172a;
  font-weight: 700;
}

/* Buttons */
.btn-win11{
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.btn-win11-primary{
  background: linear-gradient(135deg, var(--a53-blue), var(--a53-purple));
  border: 0;
  color: #fff;
}
.btn-win11-primary:hover{
  filter: brightness(1.03);
  color: #fff;
}
.btn-win11-outline{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(15,23,42,.12);
  color: #0f172a;
}
.btn-win11-outline:hover{
  background: rgba(255,255,255,.85);
  color: #0f172a;
}
.btn-win11-ghost{
  background: transparent;
  border: 1px dashed rgba(15,23,42,.22);
  color: #0f172a;
}
.btn-win11-ghost:hover{
  background: rgba(255,255,255,.55);
  color: #0f172a;
}

.link-win11{ color: var(--a53-blue); }
.link-win11:hover{ color: var(--a53-purple); }

/* Fluent cards */
.win11-glass{
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-12);
}
.win11-shadow{ box-shadow: var(--shadow); }
.win11-card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero-section{
  position: relative;
}
.hero-section::after{
  content:"";
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 420px;
  background:
    radial-gradient(500px 260px at 25% 45%, rgba(0,120,212,.22), transparent 65%),
    radial-gradient(520px 280px at 75% 55%, rgba(111,66,193,.18), transparent 65%);
  pointer-events: none;
  filter: blur(0px);
}

.hero-title .hero-accent{ color: var(--a53-blue); }
.hero-title .hero-accent-alt{ color: var(--a53-purple); }

.badge-win11{
  background: rgba(0,120,212,.10);
  border: 1px solid rgba(0,120,212,.20);
  color: #0f172a;
  border-radius: 999px;
  padding: .5rem .75rem;
}

/* =========================================================
   HERO: Brand bar + Chips (breathing glow + mono->color)
   ========================================================= */

@keyframes hero-breathe-glow{
  0%   { transform: scale(1);    opacity: .65; filter: blur(10px); }
  50%  { transform: scale(1.03); opacity: .95; filter: blur(14px); }
  100% { transform: scale(1);    opacity: .65; filter: blur(10px); }
}

.hero-brandbar{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);

  box-shadow:
    0 14px 38px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.hero-brandbar::before{
  content:"";
  position: absolute;
  inset: -10px -14px;
  border-radius: 18px;
  background:
    radial-gradient(180px 90px at 20% 40%, rgba(0,120,212,.20), transparent 70%),
    radial-gradient(180px 90px at 80% 60%, rgba(111,66,193,.18), transparent 70%);
  filter: blur(10px);
  opacity: .75;
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference){
  .hero-brandbar::before{
    animation: hero-breathe-glow 5.8s ease-in-out infinite;
  }
}

.hero-brandbar-sep{
  width: 1px;
  height: 28px;
  background: rgba(15,23,42,.18);
}

.hero-brandchip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  transition: transform .18s ease, background-color .18s ease;
}
.hero-brandchip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.hero-brandlogo-wrap{
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    0 10px 26px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.hero-brandlogo-wrap::after{
  content:"";
  position: absolute;
  inset: -7px;
  border-radius: 16px;
  background:
    radial-gradient(22px 22px at 35% 35%, rgba(0,120,212,.35), transparent 70%),
    radial-gradient(22px 22px at 70% 65%, rgba(111,66,193,.30), transparent 70%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

/* mono por defecto */
.hero-brandlogo{
  border-radius: 10px;
  filter: grayscale(1) contrast(1.06) opacity(.78);
  transform: translateZ(0);
  transition: filter .18s ease, transform .18s ease;
}

/* color al hover/focus */
.hero-brandchip:hover .hero-brandlogo,
.hero-brandchip:focus-within .hero-brandlogo{
  filter: grayscale(0) saturate(1.15) opacity(1);
  transform: translateY(-1px);
}

.hero-brandchip:hover .hero-brandlogo-wrap::after,
.hero-brandchip:focus-within .hero-brandlogo-wrap::after{
  opacity: 1;
}

.hero-brandmeta{ line-height: 1.05; }

.hero-brandname{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: .95rem;
  color: #0f172a;
}

.hero-brandsub{
  font-size: .78rem;
  opacity: .72;
  color: #0f172a;
}

/* Chips bajo el texto */
.hero-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-chip{
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 999px;

  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);

  color: #0f172a;
  font-size: .92rem;

  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);

  transition: transform .16s ease, background-color .16s ease;
}
.hero-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.22);
}
.hero-chip i{
  color: var(--a53-blue);
}

@media (prefers-reduced-motion: reduce){
  .hero-brandchip{ transition: none; }
  .hero-brandbar::before{ animation: none !important; filter: blur(10px); opacity: .65; }
  .hero-chip{ transition: none; }
}

.hero-metrics{
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 768px){
  .hero-metrics{ grid-template-columns: 1fr 1fr 1fr; }
}
.metric{
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem;
  border-radius: var(--radius-12);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,23,42,.08);
}
.metric i{
  color: var(--a53-blue);
  margin-top: .15rem;
}

/* bullets / panels */
.icon-bullet{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(111,66,193,.10);
  border: 1px solid rgba(111,66,193,.18);
  color: var(--a53-purple);
  flex: 0 0 auto;
}
.soft-panel{
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(15,23,42,.08);
}

/* Trust marquee */
.trust-marquee{
  border-radius: var(--radius-12);
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.trust-track{
  display: flex;
  gap: 1.25rem;
  align-items: center;
  will-change: transform;
}
.trust-item{
  flex: 0 0 auto;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(15,23,42,.06);
}
.trust-item img{
  height: 34px;
  width: auto;
  display: block;
  filter: grayscale(1) contrast(1.05) opacity(.72);
  transition: filter .2s ease, transform .2s ease;
}
.trust-item:hover img{
  filter: grayscale(0) opacity(1);
  transform: translateY(-1px);
}

/* Services */
.service-card{
  padding: 1.25rem;
  border-radius: var(--radius-12);
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
}

.service-icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
}
.bg-grad-primary{ background: linear-gradient(135deg, var(--a53-blue), rgba(0,120,212,.55)); }
.bg-grad-purple{ background: linear-gradient(135deg, var(--a53-purple), rgba(111,66,193,.55)); }

.page-hero .win11-glass{ background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55)); }

.service-detail{ padding: 1.25rem; }
.service-detail.win11-card{ padding: 1.25rem; }

/* Client tiles */
.client-tile{
  padding: 1.25rem;
  border-radius: var(--radius-12);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.client-tile img{
  width: 100%;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(.72);
  transition: filter .2s ease;
}
.client-tile:hover img{ filter: grayscale(0) opacity(1); }

/* Modal acrylic */
.win11-modal{
  border-radius: var(--radius-12);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255,255,255,.78);
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.letter-spacing{ letter-spacing: .14em; }

.win11-shadow-sm{ box-shadow: 0 10px 26px rgba(0,0,0,.10); }

/* =========================================================
   BRAND SWITCH: Tile glass cuadrado + intercalación
   ========================================================= */

.brand-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-glass{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: visible;

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);

  box-shadow:
    0 10px 26px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.brand-switch-item{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;

  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease, background-color .18s ease;
}

.brand-switch-item.is-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand-switch-item:hover{
  background: rgba(0,120,212,.10);
}

.brand-switch-item img{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}

.brand-switch-text{
  display: grid;
  place-items: center;
  line-height: 1;
  text-align: center;
}

.brand-switch-name{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: .74rem;
}

.brand-switch-sub{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);

  padding: .38rem .55rem;
  border-radius: 10px;
  white-space: nowrap;

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 14px 38px rgba(0,0,0,.14);

  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.brand-glass:hover .brand-switch-item.is-active .brand-switch-sub,
.brand-glass:focus-within .brand-switch-item.is-active .brand-switch-sub{
  opacity: 1;
  transform: translate(-50%, 0);
}

.brand-glass:focus-within{
  outline: 2px solid rgba(0,120,212,.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  .brand-glass{ width: auto; height: auto; padding: 6px 8px; }
  .brand-switch-item{
    position: static;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    flex-direction: row;
    gap: 10px;
    padding: 6px 8px;
  }
  .brand-switch-name{ font-size: .9rem; }
  .brand-switch-sub{
    position: static;
    opacity: 1 !important;
    transform: none !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    font-size: .8rem;
  }
}

/* =========================================================
   Floating background (blobs + glass circles/squares)
   ========================================================= */

.bg-float{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* asegurar que el contenido quede arriba del fondo */
.site-header,
main,
.site-footer{
  position: relative;
  z-index: 2;
}

.bg-blob{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 24% 76% 35% 65% / 27% 36% 64% 73%;
  opacity: .55;

  background: linear-gradient(
    135deg,
    rgba(0,120,212,.38),
    rgba(111,66,193,.26)
  );

  mix-blend-mode: color-dodge;
  filter: blur(2px);
  will-change: transform, border-radius;
}

.bg-blob--a{
  top: -220px;
  left: -240px;
}

.bg-blob--b{
  bottom: -260px;
  right: -280px;
  opacity: .42;
  background: linear-gradient(
    135deg,
    rgba(111,66,193,.34),
    rgba(0,120,212,.22)
  );
}

@keyframes blob-move-a{
  from{
    transform: translate(-120px, -60px) rotate(-90deg);
    border-radius: 24% 76% 35% 65% / 27% 36% 64% 73%;
  }
  to{
    transform: translate(520px, 120px) rotate(-10deg);
    border-radius: 76% 24% 33% 67% / 68% 55% 45% 32%;
  }
}

@keyframes blob-move-b{
  from{
    transform: translate(80px, 40px) rotate(20deg);
    border-radius: 62% 38% 42% 58% / 40% 62% 38% 60%;
  }
  to{
    transform: translate(-420px, -140px) rotate(160deg);
    border-radius: 35% 65% 58% 42% / 62% 40% 60% 38%;
  }
}

@media (prefers-reduced-motion: no-preference){
  .bg-blob--a{ animation: blob-move-a 26s ease-in-out infinite alternate; }
  .bg-blob--b{ animation: blob-move-b 32s ease-in-out infinite alternate; }
}

.bg-particles{
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bg-particles .p{
  position: absolute;
  bottom: -160px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);

  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);

  opacity: .9;
  will-change: transform, opacity;
}

.bg-particles .p--circle{ border-radius: 999px; }
.bg-particles .p--square{ border-radius: 12px; }

@keyframes float-up{
  0%{
    transform: translateY(0) rotate(0deg);
    opacity: .9;
  }
  100%{
    transform: translateY(-1100px) rotate(720deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference){
  .bg-particles .p{
    animation: float-up 26s linear infinite;
  }
}

/* 12 items */
.bg-particles .p:nth-child(1){ left: 10%; width: 26px; height: 26px; animation-duration: 22s; animation-delay: 0s; }
.bg-particles .p:nth-child(2){ left: 22%; width: 64px; height: 64px; animation-duration: 28s; animation-delay: 2s; opacity: .65; }
.bg-particles .p:nth-child(3){ left: 34%; width: 18px; height: 18px; animation-duration: 18s; animation-delay: 4s; }
.bg-particles .p:nth-child(4){ left: 44%; width: 90px; height: 90px; animation-duration: 34s; animation-delay: 0s; opacity: .55; }
.bg-particles .p:nth-child(5){ left: 56%; width: 22px; height: 22px; animation-duration: 20s; animation-delay: 1s; }
.bg-particles .p:nth-child(6){ left: 64%; width: 120px; height: 120px; animation-duration: 40s; animation-delay: 3s; opacity: .45; }
.bg-particles .p:nth-child(7){ left: 72%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: 6s; }
.bg-particles .p:nth-child(8){ left: 80%; width: 46px; height: 46px; animation-duration: 24s; animation-delay: 10s; opacity: .70; }
.bg-particles .p:nth-child(9){ left: 88%; width: 140px; height: 140px; animation-duration: 44s; animation-delay: 0s; opacity: .40; }
.bg-particles .p:nth-child(10){ left: 6%; width: 110px; height: 110px; animation-duration: 38s; animation-delay: 7s; opacity: .45; }
.bg-particles .p:nth-child(11){ left: 48%; width: 14px; height: 14px; animation-duration: 14s; animation-delay: 5s; }
.bg-particles .p:nth-child(12){ left: 30%; width: 38px; height: 38px; animation-duration: 26s; animation-delay: 12s; opacity: .75; }

.bg-particles .p--square{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}

@media (prefers-reduced-motion: reduce){
  .bg-blob,
  .bg-particles{ display: none; }
}
/* =========================================================
   NAVBAR SCANLINE (barra inferior animada, full width)
   - No rompe sticky-top (no tocamos position del header)
   - No captura clicks (pointer-events: none)
   - Respeta prefers-reduced-motion
   ========================================================= */

.site-header .navbar{
  position: relative; /* ancla de .navline */
}

.navline{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;             /* “abraza” el borde inferior */
  height: 3px;
  background: rgba(255,255,255,.10);
  pointer-events: none;
  z-index: 2;               /* encima del fondo acrylic */
  overflow: hidden;
}

/* Capa “progreso” */
.navline::before{
  content:"";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.08) 0%,
    rgba(0,120,212,0.40) 35%,
    rgba(111,66,193,0.40) 70%,
    rgba(255,255,255,0.95) 100%
  );
  animation: nav-progress 4s infinite;
}

/* “Glow head” que corre */
.navline::after{
  content:"";
  position: absolute;
  top: 50%;
  left: -70px;
  width: 34px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 6px;

  background: rgba(210,189,255,.45);
  filter: blur(10px);

  box-shadow:
    0 0 14px 8px rgba(111,66,193,.22),
    0 0 18px 10px rgba(0,120,212,.20),
    -24px 0 18px 6px rgba(111,66,193,.14),
    -52px 0 16px 4px rgba(0,120,212,.10),
    -78px 0 12px 3px rgba(255,255,255,.08);

  animation: nav-glow 4s infinite;
}

@keyframes nav-progress{
  0%   { transform: scaleX(0); opacity: .55; }
  90%  { transform: scaleX(1); opacity: 1; }
  92%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes nav-glow{
  0%   { transform: translate(-30px, -50%) scale(.35,.8); opacity: 0; }
  12%  { opacity: .95; }
  90%  { transform: translate(calc(100vw + 60px), -50%) scale(1,1); opacity: .95; }
  100% { transform: translate(calc(100vw + 60px), -50%) scale(1,1); opacity: 0; }
}

/* Ajuste: que el “glow head” recorra el ancho real del navbar (no del viewport) */
@supports (left: min(1px, 2px)){
  @keyframes nav-glow{
    0%   { transform: translate(-30px, -50%) scale(.35,.8); opacity: 0; }
    12%  { opacity: .95; }
    90%  { transform: translate(calc(100% + 80px), -50%) scale(1,1); opacity: .95; }
    100% { transform: translate(calc(100% + 80px), -50%) scale(1,1); opacity: 0; }
  }
}

/* Reduce motion: se deja una línea sutil estática */
@media (prefers-reduced-motion: reduce){
  .navline::before,
  .navline::after{
    animation: none !important;
  }
  .navline::before{
    transform: scaleX(1);
    opacity: .35;
  }
  .navline::after{
    opacity: 0;
  }
}
/* =========================================================
   NAV FX (scoped): pills expansibles con icono -> texto
   ========================================================= */

.site-header .navbar{ position: relative; }

/* Lista */
.navfx-list{
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item base */
.navfx-item{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.50);

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  overflow: hidden;

  cursor: pointer;
  transition: width .38s ease, box-shadow .38s ease, border-color .38s ease, background-color .38s ease;
}

/* Gradiente interno (hover/active) */
.navfx-item::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: opacity .38s ease;
}

/* Glow */
.navfx-item::after{
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 18px;
  background: linear-gradient(45deg, var(--i), var(--j));
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity .38s ease;
}

/* Link interno */
.navfx-link{
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  height: 100%;
  padding: 0 14px;

  text-decoration: none;
  color: #0f172a;
}

/* Icono */
.navfx-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(15,23,42,.60);
  transition: transform .32s ease, opacity .32s ease;
  transition-delay: .10s;
}

/* Título (aparece al hover) */
.navfx-title{
  position: absolute;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;

  transform: scale(0);
  transition: transform .32s ease;
  transition-delay: 0s;
}

/* Hover/focus: expand + swap icon->text */
@media (hover:hover){
  .navfx-item:hover,
  .navfx-item:focus-within{
    width: 176px;
    box-shadow: 0 10px 25px rgba(0,0,0,0);
  }
  .navfx-item:hover::before,
  .navfx-item:focus-within::before{ opacity: 1; }
  .navfx-item:hover::after,
  .navfx-item:focus-within::after{ opacity: .55; }

  .navfx-item:hover .navfx-icon,
  .navfx-item:focus-within .navfx-icon{
    transform: scale(0);
    opacity: 0;
    transition-delay: 0s;
    color: #fff;
  }

  .navfx-item:hover .navfx-title,
  .navfx-item:focus-within .navfx-title{
    transform: scale(1);
    transition-delay: .18s;
  }
}

/* Active: ring sutil (no fuerza expand) */
.navfx-item.is-active{
  border-color: rgba(0,120,212,.30);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}
.navfx-item.is-active::before{ opacity: .18; }

/* Estado del servicio (dot) */
.navfx-item-status .navfx-status{
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navfx-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(34,197,94,.0);
}

.navfx-dot-ok{
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.35);
  animation: navfxPulse 1.8s ease-out infinite;
}

@keyframes navfxPulse{
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.42); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* CTA dentro del UL */
.navfx-cta{ list-style: none; }

/* Mobile: sin “swap”, se ve icono + texto en fila */
@media (max-width: 991.98px){
  .navfx-list{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .navfx-item{
    width: 100%;
    height: 52px;
    border-radius: 14px;
  }

  .navfx-item::after{ display:none; }

  .navfx-link{
    justify-content: flex-start;
    padding: 0 14px;
  }

  .navfx-title{
    position: static;
    transform: none !important;
    color: #0f172a;
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 700;
  }

  .navfx-icon{
    transform: none !important;
    opacity: 1 !important;
    transition: none;
  }

  .navfx-item:hover{ width: 100%; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .navfx-item,
  .navfx-item::before,
  .navfx-item::after,
  .navfx-icon,
  .navfx-title{
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   Navline (scanline inferior full width)
   ========================================================= */

.navline{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 3px;
  background: rgba(15,23,42,.10);
  overflow: hidden;
}

/* Barra que “carga” */
.navline::before{
  content:"";
  position:absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 0;

  background: linear-gradient(to right,
    rgba(255,255,255,0.08) 10%,
    rgba(255,255,255,0.35) 70%,
    rgba(255,255,255,0.95)
  );

  animation: navlineProgress 4s infinite;
}

/* “Cometa” blur */
.navline::after{
  content:"";
  position:absolute;
  top: -9px;
  left: -24px;

  width: 30px;
  height: 21px;
  border-radius: 2px;

  background: rgba(210,189,255,.55);
  filter: blur(8px);

  box-shadow:
    0 0 10px 6px rgba(210,189,255,.35),
    -20px 0 15px 4px rgba(210,189,255,.26),
    -40px 0 15px 2px rgba(210,189,255,.18),
    -60px 0 10px 1px rgba(210,189,255,.10),
    -80px 0 10px 1px rgba(210,189,255,.05);

  animation: navlineComet 4s infinite;
}

@keyframes navlineProgress{
  0%   { transform: scaleX(0); opacity: .55; }
  90%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes navlineComet{
  0%   { transform: scale(.30,.8) translateX(0);   opacity: 0; }
  90%  { transform: scale(1,1)   translateX(100vw); opacity: 1; }
  100% { transform: scale(1,1)   translateX(100vw); opacity: 0; }
}
/* =========================================================
   TECNOLOGIAS (AIT/A53): loop infinito real + sets separados
   Requiere HTML:
     <div class="tech-marquee" data-tech-marquee>
       <div class="tech-track is-active" data-tech-track="ait">...</div>
       <div class="tech-track" data-tech-track="a53" hidden>...</div>
     </div>
   Y JS que anima via transform (translateX)
   ========================================================= */

.tech-section{
  position: relative;
}

.tech-section::before{
  content:"";
  position:absolute;
  inset: -60px 0 auto 0;
  height: 320px;
  pointer-events:none;
  background:
    radial-gradient(520px 220px at 20% 40%, rgba(0,120,212,.16), transparent 70%),
    radial-gradient(520px 220px at 80% 60%, rgba(111,66,193,.14), transparent 70%);
  filter: blur(10px);
  opacity: .9;
}

/* wrapper glass (ya lo tenés con win11-glass) */
.tech-cardwrap{
  position: relative;
  overflow: hidden;
}

/* viewport del marquee (ANTES usabas tech-carousel; ahora es tech-marquee) */
.tech-marquee{
  position: relative;
  overflow: hidden;           /* clave para loop por transform */
  padding: 6px;
  border-radius: 16px;
  outline: none;
}

/* Fade laterales tipo “marquee pro” */
.tech-marquee{
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Tracks (uno por set). El JS mueve con transform */
.tech-track{
  display: flex;
  gap: 14px;
  align-items: stretch;
  will-change: transform;
  transform: translateX(0);
}

/* Tabs/sets */
.tech-track[hidden]{
  display: none !important;
}
.tech-track.is-active{
  display: flex;
}

/* Items */
.tech-item{
  flex: 0 0 auto;
  width: 260px;

  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;

  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 14px 38px rgba(0,0,0,.10);

  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before{
  content:"";
  position:absolute;
  inset: -80px -80px auto -80px;
  height: 220px;

  /* Si color-mix no existe, igual queda “ok” por el background base */
  background:
    radial-gradient(220px 140px at 35% 45%, color-mix(in srgb, var(--i) 35%, transparent), transparent 70%),
    radial-gradient(220px 140px at 70% 55%, color-mix(in srgb, var(--j) 30%, transparent), transparent 70%);

  opacity: .9;
  pointer-events:none;
}

.tech-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
}

.tech-ico{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--i), var(--j));
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
  position: relative;
  z-index: 1;
}

.tech-title{
  font-weight: 900;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

.tech-sub{
  font-size: .92rem;
  opacity: .78;
  position: relative;
  z-index: 1;
}

.tech-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.tech-badge{
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .80rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,23,42,.10);
}

/* Botones prev/next */
.tech-nav{
  border-radius: 999px;
}

/* Desktop */
@media (min-width: 992px){
  .tech-item{ width: 280px; }
}

/* Reduce motion: vuelve a scroll manual (el JS ya no anima) */
@media (prefers-reduced-motion: reduce){
  .tech-marquee{
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(15,23,42,.25) transparent;
  }
  .tech-marquee::-webkit-scrollbar{ height: 10px; }
  .tech-marquee::-webkit-scrollbar-thumb{
    background: rgba(15,23,42,.18);
    border-radius: 999px;
  }
  .tech-marquee::-webkit-scrollbar-track{ background: transparent; }

  .tech-track{
    will-change: auto;
    transform: none !important;
  }
  .tech-item{ transition: none; }
}
