/* ============================================================
   SPLASH.CSS — Modo claro con fondo marino institucional
   Graficas del Caribe — CBDN Academy 2026
   ============================================================ */

/* El splash mantiene fondo oscuro marino para impacto visual de entrada */
.splash {
  position: fixed;
  inset: 0;
  background: var(--color-marino);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Linea de progreso en la parte superior */
.splash::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-rojo), #D4AF37, var(--color-rojo));
  background-size: 200% 100%;
  animation: shimmerLine 2s linear infinite;
}

@keyframes shimmerLine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fondo ambiental */
.splash::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196,30,58,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* Logo */
.splash__logo-wrap {
  width: 390px; height: 390px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.30);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  position: relative;
  opacity: 0;
  transform: scale(0.82);
  animation: logoIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s forwards;
}

@keyframes logoIn { to { opacity:1; transform:scale(1); } }

.splash__logo-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.20);
  opacity: 0;
  animation: ringPulse 2.2s ease 1s infinite;
}

@keyframes ringPulse {
  0%   { opacity:0.5; transform:scale(1); }
  100% { opacity:0; transform:scale(1.25); }
}

.splash__logo-wrap img {
  width: 78%; height: 78%;
  object-fit: contain; padding: 8px;
}

/* Textos */
.splash__institution {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(212,175,55,0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  opacity: 0;
  animation: textIn 0.4s ease 0.65s forwards;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.splash__case-label {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  opacity: 0;
  animation: textIn 0.4s ease 0.80s forwards;
  margin-bottom: 0.5rem;
}

.splash__case-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.0;
  opacity: 0;
  transform: translateY(12px);
  animation: titleIn 0.5s ease 0.9s forwards;
  margin-bottom: 0.35rem;
}

.splash__case-type {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(196,30,58,0.9);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  opacity: 0;
  animation: textIn 0.4s ease 1.1s forwards;
  margin-bottom: 1.8rem;
}

@keyframes textIn  { to { opacity:1; } }
@keyframes titleIn { to { opacity:1; transform:translateY(0); } }

/* Meta */
.splash__meta {
  display: flex;
  gap: 2rem;
  opacity: 0;
  animation: textIn 0.4s ease 1.2s forwards;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.splash__meta-item { text-align: center; }

.splash__meta-label {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  display: block;
  margin-bottom: 0.10rem;
}

.splash__meta-value {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}

.splash__separator {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.15rem 0;
}

/* Barra de carga */
.splash__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  animation: textIn 0.4s ease 1.4s forwards;
}

.splash__loading-bar {
  width: 150px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.splash__loading-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-rojo), #D4AF37);
  border-radius: 2px;
  animation: loadFill 1.5s ease 1.45s forwards;
  width: 0%;
}

@keyframes loadFill {
  0%{width:0%} 35%{width:45%} 75%{width:80%} 100%{width:100%}
}

.splash__loading-text {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Salida */
.splash.is-hiding { animation: splashOut 0.5s ease forwards; }

@keyframes splashOut {
  0%   { opacity:1; }
  100% { opacity:0; pointer-events:none; }
}

.splash.is-hidden { display:none; }
