/* VS V31 — rutas limpias + preloader de bienvenida + logos dinámicos de aliados */
html.vs-preloader-active,
html.vs-preloader-active body {
  overflow: hidden !important;
}
html.vs-preloader-active #page-wrapper {
  opacity: 0;
  visibility: hidden;
}
#vs-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(0,207,104,.13), rgba(0,207,104,.055) 21%, rgba(5,5,5,.98) 50%, #050505 100%);
  color: #fff;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  pointer-events: all;
  transition: opacity 1.05s ease, visibility 1.05s ease, filter 1.05s ease;
}
#vs-preloader::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255,255,255,.035) 48%, transparent 62%),
    radial-gradient(circle at 50% 52%, rgba(0,207,104,.10), transparent 34%);
  filter: blur(10px);
  opacity: .88;
  transform: rotate(-8deg);
  animation: vs-loader-light-sweep 7s ease-in-out forwards;
}
#vs-preloader.is-leaving,
#vs-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  filter: blur(14px);
  pointer-events: none;
}
.vs-preloader-stage {
  position: relative;
  width: min(820px, 86vw);
  height: min(470px, 74vh);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  isolation: isolate;
}
.vs-preloader-words {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.vs-preloader-words span {
  position: absolute;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(1.1rem, 5.8vw, 5.6rem);
  color: rgba(255,255,255,.16);
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0,0,0) scale(.42);
  animation: vs-word-zoom 2.25s cubic-bezier(.17,.84,.34,1) forwards;
}
.vs-preloader-words span:nth-child(1) { animation-delay: .15s; }
.vs-preloader-words span:nth-child(2) { animation-delay: .95s; }
.vs-preloader-words span:nth-child(3) { animation-delay: 1.75s; }
.vs-preloader-words span:nth-child(4) { animation-delay: 2.55s; }
.vs-preloader-words span:nth-child(5) { animation-delay: 3.35s; }
.vs-preloader-words span:nth-child(6) { animation-delay: 4.15s; }
.vs-preloader-words span:nth-child(7) { animation-delay: 4.95s; }
.vs-preloader-mark {
  width: min(106px, 22vw);
  height: min(106px, 22vw);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 4;
  margin-bottom: 2.05rem;
  transform: translateZ(0);
}
.vs-preloader-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 26px rgba(0,207,104,.20));
  animation: vs-loader-breathe 2.35s ease-in-out infinite;
}
.vs-preloader-mark::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  border-top-color: rgba(0,207,104,.88);
  border-right-color: rgba(0,207,104,.24);
  animation: vs-loader-spin 2.2s linear infinite;
}
.vs-preloader-mark::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 0 72px rgba(0,207,104,.20);
}
.vs-preloader-progress {
  position: relative;
  z-index: 5;
  width: min(540px, 54vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0,207,104,.06);
}
.vs-preloader-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(0,207,104,.05), rgba(0,207,104,.95), rgba(255,255,255,.76));
  animation: vs-loader-progress 7s cubic-bezier(.19,1,.22,1) forwards;
}
.vs-preloader-caption {
  position: relative;
  z-index: 5;
  margin: 1.05rem 0 0;
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
}
@keyframes vs-loader-spin { to { transform: rotate(360deg); } }
@keyframes vs-loader-breathe {
  0%,100% { transform: scale(.96); opacity:.78; }
  50% { transform: scale(1.035); opacity:1; }
}
@keyframes vs-loader-progress { to { transform: scaleX(1); } }
@keyframes vs-loader-light-sweep {
  0% { transform: translateX(-8%) rotate(-8deg); opacity: .38; }
  46% { opacity: .88; }
  100% { transform: translateX(8%) rotate(-8deg); opacity: .56; }
}
@keyframes vs-word-zoom {
  0% { opacity: 0; transform: scale(.42); filter: blur(16px); color: rgba(255,255,255,.05); }
  10% { opacity: .46; filter: blur(5px); color: rgba(255,255,255,.20); }
  35% { opacity: .25; transform: scale(1.55); filter: blur(2px); }
  62% { opacity: .12; transform: scale(3.6); filter: blur(10px); color: rgba(0,207,104,.16); }
  100% { opacity: 0; transform: scale(6.8); filter: blur(28px); color: rgba(255,255,255,0); }
}
@media screen and (max-width: 736px) {
  .vs-preloader-stage { width: 88vw; height: 68vh; }
  .vs-preloader-progress { width: 68vw; }
  .vs-preloader-words span { letter-spacing: .18em; font-size: clamp(1.45rem, 9vw, 3.6rem); }
  .vs-preloader-caption { font-size: .58rem; letter-spacing: .22em; }
}
@media (prefers-reduced-motion: reduce) {
  #vs-preloader, #vs-preloader::before, .vs-preloader-mark img, .vs-preloader-mark::before, .vs-preloader-progress span, .vs-preloader-words span {
    animation: none !important;
    transition: none !important;
  }
}

.vs-logo-track img {
  max-height: 38px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: .78;
  filter: grayscale(1) brightness(1.4);
}
.vs-logo-track .vs-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

/* VS V32 — bienvenida recurrente solo en entradas directas a la web */
#vs-preloader.is-first-visit .vs-preloader-words span {
  animation-name: vs-word-zoom;
  animation-duration: 2.05s;
  animation-timing-function: cubic-bezier(.17,.84,.34,1);
  animation-fill-mode: forwards;
}
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(1) { animation-delay: .10s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(2) { animation-delay: .62s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(3) { animation-delay: 1.14s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(4) { animation-delay: 1.66s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(5) { animation-delay: 2.18s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(6) { animation-delay: 2.70s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(7) { animation-delay: 3.22s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(8) { animation-delay: 3.74s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(9) { animation-delay: 4.26s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(10) { animation-delay: 4.78s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(11) { animation-delay: 5.30s; }
#vs-preloader.is-first-visit .vs-preloader-words span:nth-child(12) { animation-delay: 5.82s; }

#vs-preloader.is-returning {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,207,104,.095), rgba(0,207,104,.035) 26%, rgba(5,5,5,.985) 55%, #050505 100%);
}
#vs-preloader.is-returning::before {
  animation-duration: 3.6s;
  opacity: .58;
}
#vs-preloader.is-returning .vs-preloader-stage {
  height: min(360px, 62vh);
}
#vs-preloader.is-returning .vs-preloader-mark {
  width: min(82px, 18vw);
  height: min(82px, 18vw);
  margin-bottom: 1.45rem;
  opacity: .92;
}
#vs-preloader.is-returning .vs-preloader-progress {
  display: none;
}
#vs-preloader.is-returning .vs-preloader-caption {
  margin-top: .85rem;
  color: rgba(255,255,255,.36);
}
#vs-preloader.is-returning .vs-preloader-words span {
  opacity: 0;
  filter: blur(0);
  transform: translate3d(0,0,0) scale(.92);
  color: rgba(255,255,255,.70);
  font-weight: 650;
  letter-spacing: .26em;
  font-size: clamp(.96rem, 3.8vw, 3.35rem);
  animation: vs-word-clear-pass 1.05s cubic-bezier(.18,.78,.28,1) both;
}
#vs-preloader.is-returning .vs-preloader-words span:nth-child(n+9) { display: none; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(1) { animation-delay: .18s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(2) { animation-delay: .63s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(3) { animation-delay: 1.08s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(4) { animation-delay: 1.53s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(5) { animation-delay: 1.98s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(6) { animation-delay: 2.43s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(7) { animation-delay: 2.88s; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(8) { animation-delay: 3.33s; }
@keyframes vs-word-clear-pass {
  0% { opacity: 0; transform: scale(.94); filter: blur(2px); color: rgba(255,255,255,.06); }
  20% { opacity: .94; transform: scale(1); filter: blur(0); color: rgba(255,255,255,.82); }
  64% { opacity: .82; transform: scale(1.055); filter: blur(0); color: rgba(255,255,255,.70); }
  100% { opacity: 0; transform: scale(1.28); filter: blur(11px); color: rgba(0,207,104,.20); }
}
@media screen and (max-width: 736px) {
  #vs-preloader.is-returning .vs-preloader-words span {
    letter-spacing: .16em;
    font-size: clamp(1.15rem, 7vw, 2.55rem);
  }
}

/* Mantiene las animaciones detenidas hasta que JS define si es primera entrada o regreso */
#vs-preloader:not(.is-first-visit):not(.is-returning) .vs-preloader-words span,
#vs-preloader:not(.is-first-visit):not(.is-returning) .vs-preloader-progress span {
  animation: none !important;
}
#vs-preloader:not(.is-first-visit):not(.is-returning) .vs-preloader-words span {
  opacity: 0;
}



/* VS V34 — evita que isotipo y logotipo se crucen en el cierre */
#vs-preloader.is-first-visit .vs-preloader-mark {
  animation: vs-mark-exit-soft .62s ease 5.05s forwards;
}
#vs-preloader.is-returning .vs-preloader-mark {
  animation: vs-mark-exit-soft .62s ease 4.05s forwards;
}
#vs-preloader.is-first-visit .vs-preloader-progress,
#vs-preloader.is-first-visit .vs-preloader-caption {
  animation: vs-preloader-ui-out .52s ease 5.10s forwards;
}
#vs-preloader.is-returning .vs-preloader-caption {
  animation: vs-preloader-ui-out .48s ease 4.05s forwards;
}
@keyframes vs-mark-exit-soft {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.76); filter: blur(10px); }
}
@keyframes vs-preloader-ui-out {
  0% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(8px); }
}

/* VS V33 — cierre de preloader con logotipo completo nítido + desenfoque */
.vs-preloader-final-logo {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: min(520px, 68vw);
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-preloader-final-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(0,207,104,.10));
}
#vs-preloader.is-first-visit .vs-preloader-final-logo {
  animation: vs-final-logo-focus-blur 1.22s cubic-bezier(.2,.8,.2,1) 5.78s forwards;
}
#vs-preloader.is-returning .vs-preloader-final-logo {
  width: min(410px, 64vw);
  animation: vs-final-logo-focus-blur 1.08s cubic-bezier(.2,.8,.2,1) 4.48s forwards;
}
#vs-preloader.is-first-visit .vs-preloader-final-logo img,
#vs-preloader.is-returning .vs-preloader-final-logo img {
  animation: vs-final-logo-glow 1.05s ease-in-out forwards;
}
@keyframes vs-final-logo-focus-blur {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.90); filter: blur(18px); }
  24% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); filter: blur(18px); }
}
@keyframes vs-final-logo-glow {
  0% { filter: drop-shadow(0 0 0 rgba(0,207,104,0)); }
  45% { filter: drop-shadow(0 0 34px rgba(0,207,104,.16)); }
  100% { filter: drop-shadow(0 0 0 rgba(0,207,104,0)); }
}
@media screen and (max-width: 736px) {
  .vs-preloader-final-logo { width: min(340px, 74vw); }
  #vs-preloader.is-returning .vs-preloader-final-logo { width: min(300px, 72vw); }
}


/* VS V35 — segundo preloader: solo palabras secuenciales + logotipo final */
#vs-preloader.is-returning .vs-preloader-mark,
#vs-preloader.is-returning .vs-preloader-progress,
#vs-preloader.is-returning .vs-preloader-caption {
  display: none !important;
  animation: none !important;
}
#vs-preloader.is-returning .vs-preloader-stage {
  height: min(420px, 68vh);
}
#vs-preloader.is-returning .vs-preloader-words span {
  display: block;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0,0,0) scale(.96);
  color: rgba(255,255,255,.86);
  font-weight: 720;
  letter-spacing: .24em;
  font-size: clamp(1rem, 4.35vw, 3.8rem);
  animation: vs-word-single-soft 0.86s cubic-bezier(.19,.78,.25,1) both !important;
}
#vs-preloader.is-returning .vs-preloader-words span:nth-child(n+8) { display: none !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(1) { animation-delay: .22s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(2) { animation-delay: 1.18s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(3) { animation-delay: 2.14s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(4) { animation-delay: 3.10s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(5) { animation-delay: 4.06s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(6) { animation-delay: 5.02s !important; }
#vs-preloader.is-returning .vs-preloader-words span:nth-child(7) { animation-delay: 5.98s !important; }

#vs-preloader.is-returning .vs-preloader-final-logo {
  width: min(440px, 66vw);
  animation: vs-final-logo-focus-blur 1.55s cubic-bezier(.2,.8,.2,1) 7.18s forwards !important;
}
#vs-preloader.is-returning .vs-preloader-final-logo img {
  animation: vs-final-logo-glow 1.35s ease-in-out forwards !important;
}

@keyframes vs-word-single-soft {
  0%   { opacity: 0; transform: scale(.96); filter: blur(8px); color: rgba(255,255,255,.04); }
  22%  { opacity: .96; transform: scale(1); filter: blur(0); color: rgba(255,255,255,.88); }
  70%  { opacity: .92; transform: scale(1.025); filter: blur(0); color: rgba(255,255,255,.82); }
  100% { opacity: 0; transform: scale(1.16); filter: blur(16px); color: rgba(0,207,104,.22); }
}
@media screen and (max-width: 736px) {
  #vs-preloader.is-returning .vs-preloader-words span {
    letter-spacing: .15em;
    font-size: clamp(1.15rem, 7.2vw, 2.6rem);
  }
  #vs-preloader.is-returning .vs-preloader-final-logo { width: min(320px, 74vw); }
}

/* VS V36 — reveal de la web desde desenfoque a enfoque al finalizar el logotipo */
html.vs-site-revealing #page-wrapper {
  visibility: visible !important;
  opacity: 1 !important;
  filter: blur(18px);
  transform: scale(1.018);
  transition: filter .62s cubic-bezier(.2,.8,.2,1), transform .62s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
  will-change: filter, transform, opacity;
}
html.vs-site-revealing.vs-site-revealed #page-wrapper {
  filter: blur(0);
  transform: scale(1);
  opacity: 1 !important;
}
#vs-preloader.is-leaving {
  transition: opacity .70s ease, visibility .70s ease, filter .70s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.vs-site-revealing #page-wrapper,
  html.vs-site-revealing.vs-site-revealed #page-wrapper {
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}


/* VS V48 — aliados reales en blanco */
.vs-logo-track img {
  max-height: 42px;
  max-width: 172px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: .76;
  filter: none !important;
  transition: opacity .35s ease, transform .35s ease;
}
.vs-logo-track .vs-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0 .35rem;
}
.vs-logo-track .vs-logo-item:hover img {
  opacity: 1;
  transform: translateY(-1px);
}
@media screen and (max-width: 736px) {
  .vs-logo-track img { max-height: 34px; max-width: 132px; }
  .vs-logo-track .vs-logo-item { min-width: 118px; }
}
