/* =====================================================================
   Martec — Splash / flyer de bienvenida.
   Al entrar a la página se muestra el logo de Martec en grande y da
   paso al sitio.
   ===================================================================== */

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: #0b1a16;
  background-image:
    radial-gradient(900px 620px at 18% 16%, rgba(72, 213, 151, 0.24), transparent 70%),
    radial-gradient(1100px 720px at 84% 88%, rgba(18, 128, 87, 0.36), transparent 72%),
    linear-gradient(150deg, #08130f 0%, #0b241c 52%, #071410 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Aros decorativos de fondo */
.splash__halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(72, 213, 151, 0.16);
  pointer-events: none;
}

.splash__halo--a {
  width: 640px;
  height: 640px;
  top: -180px;
  right: -150px;
}

.splash__halo--b {
  width: 440px;
  height: 440px;
  bottom: -160px;
  left: -120px;
  border-color: rgba(72, 213, 151, 0.12);
}

.splash__halo--c {
  width: 240px;
  height: 240px;
  top: 12%;
  left: 10%;
  border-color: rgba(72, 213, 151, 0.1);
}

/* Flyer con el logo de Martec en grande */
.splash__flyer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.splash__logo {
  width: min(680px, 86vw);
  height: auto;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.55));
  animation: splash-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Barra de progreso */
.splash__bar {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: min(340px, 62vw);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(190, 255, 231, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.splash__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-dark), var(--green), #9ff6d3);
  box-shadow: 0 0 16px rgba(72, 213, 151, 0.7);
  transition: width 0.35s ease;
}

@keyframes splash-logo-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .splash__logo {
    width: 88vw;
  }
  .splash__bar {
    bottom: 14%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash__logo {
    animation: none;
  }
}
