/* ============================================================
   loader.css  -  Splash / intro screen
   ============================================================ */

/* Bloquear scroll del body MIENTRAS el splash está activo */
body.sep-loading {
  overflow: hidden;
}

/* ── Contenedor del splash ─────────────────────────────────── */
#sep-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ── Texto typewriter ─────────────────────────────────────── */
.sep-reveal-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-size: clamp(36px, 6vw, 72px);
  color: #0D2560;
  text-align: center;
  line-height: 1.3;
  max-width: 900px;
  word-break: break-word;
}

/* Honduras y Bien van más grandes */
.sep-reveal-text .big {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: bold;
  line-height: 1.1;
}

/* ── Cursor parpadeante ───────────────────────────────────── */
#sep-tw-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: #0D2560;
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 2px;
  animation: sep-blink 0.65s step-end infinite;
}
@keyframes sep-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Salida del texto: zoom + fade ────────────────────────── */
@keyframes sep-text-exit {
  0%   { opacity: 1; transform: scale(1)    translateY(0);     filter: blur(0px); }
  100% { opacity: 0; transform: scale(1.18) translateY(-24px); filter: blur(8px); }
}
.sep-reveal-text.exiting {
  animation: sep-text-exit 0.7s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* ── Fade out del splash completo ────────────────────────── */
#sep-splash.fading {
  transition: opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

/* ── Barra de progreso dorada (arriba del splash) ─────────── */
#sep-splash-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #ad8411 0%, #f0c040 60%, #ad8411 100%);
  background-size: 200% 100%;
  animation: sep-bar-shimmer 1.6s linear infinite;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(173, 132, 17, 0.6);
  z-index: 2;
}
@keyframes sep-bar-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Efecto shimmer sobre el texto al completar ───────────── */
.sep-reveal-text.sep-shimmer {
  background: linear-gradient(
    100deg,
    #0D2560 0%,
    #0D2560 30%,
    #ad8411 48%,
    #f5d87a 55%,
    #ad8411 62%,
    #0D2560 70%,
    #0D2560 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sep-text-shimmer 0.8s ease forwards;
}
.sep-reveal-text.sep-shimmer .big {
  -webkit-text-fill-color: transparent;
}
@keyframes sep-text-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -100% center; }
}
