/* ==========================================================================
   INK-BLEED.CSS - Ventana de Bienvenida & Efecto Sangrado de Tinta WebGL
   ========================================================================== */

/* Fullscreen Splash Screen Modal (Fondo Azul Acento #112142) */
.welcome-splash-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #112142;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.welcome-splash-modal.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   CONFIGURACIÓN DEL VECTOR DE FONDO (file.svg con Sangrado WebGL)
   ========================================================================== */
.splash-svg-bg {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  overflow: hidden;
}

/* Anclaje exclusivo del Wireframe para Celulares / Pantallas Móviles */
@media (max-width: 768px) {
  .splash-svg-bg {
    left: -8.16%;
    right: -8.3%;
    top: 0%;
    bottom: 0%;
  }
}

/* Escala y Cobertura Responsiva para Pantallas de PC (Escritorio) */
@media (min-width: 769px) {
  .splash-svg-bg {
    top: 0;
    left: -12.5%;
    width: 125%;
    height: 100%;
  }
}

.splash-svg-bg .ink-bleed-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Contenedor de Diapositivas Centradas */
.splash-slides-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.splash-step {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  width: 100%;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.splash-step.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.splash-step.hidden {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

/* Contenedor del Shader de Tinta WebGL */
.splash-ink-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subheading Styling (#F5F6FA para máxima legibilidad) */
.splash-subheading {
  font-family: var(--font-epilogue);
  font-size: 16px;
  font-weight: 500;
  color: #F5F6FA;
  letter-spacing: 0.03em;
  opacity: 0.95;
  margin-top: -6px;
  margin-bottom: -6px;
}

/* Adaptaciones para Pantalla de PC (Escritorio) */
@media (min-width: 769px) {
  .splash-slides-container {
    height: 260px;
  }

  .splash-ink-wrapper {
    height: 160px;
    max-width: 900px;
  }

  .splash-subheading {
    font-size: 26px;
    margin-top: -12px;
    margin-bottom: -12px;
  }
}

/* Canvas del Motor de Sangrado de Tinta WebGL */
.ink-bleed-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: pointer;
  touch-action: pan-y;
}