/* ========================================================
   TORNEO ROBÓTICA LFJC — Splash Screen Styles
   Palette: Deep Navy #0a0e1a | Cyan #00f5d4 | Orange #ff6b35
   Type: Orbitron (display) + Rajdhani (body) + Share Tech Mono
   ======================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a0e1a;
  --navy2:   #0f1628;
  --navy3:   #151d35;
  --cyan:    #00f5d4;
  --cyan2:   #00c4aa;
  --orange:  #ff6b35;
  --orange2: #e85a26;
  --white:   #f0f4ff;
  --muted:   #8892b0;
  --glow-c:  rgba(0,245,212,0.35);
  --glow-o:  rgba(255,107,53,0.35);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
}

/* ── Animated grid background ── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,245,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridPan 20s linear infinite;
}
@keyframes gridPan {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* ── Scanline overlay ── */
.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ── Floating particles ── */
.particles {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ── Main container ── */
.splash-container {
  position: relative; z-index: 2;
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0,245,212,0.3);
  border-radius: 100px;
  background: rgba(0,245,212,0.06);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cyan2);
  margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(-20px);
  animation: fadeDown 0.7s ease 0.2s forwards;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── Title block ── */
.title-block {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.4s forwards;
  margin-bottom: 1.4rem;
}
.title-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.25em;
  color: var(--orange); margin-bottom: 0.4rem;
}
.title-main {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; line-height: 0.92;
  display: flex; flex-direction: column;
  gap: 0;
}
.title-line1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--white); opacity: 0.75;
  letter-spacing: 0.35em;
}
.title-line2 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan2) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  text-shadow: none;
  filter: drop-shadow(0 0 30px var(--glow-c));
}
.title-school {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 500; letter-spacing: 0.1em;
  color: var(--muted); margin-top: 0.6rem;
}

/* ── Logo ── */
.logo-wrapper {
  position: relative;
  width: 160px; height: 160px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin-bottom: 1rem;
  opacity: 0; transform: scale(0.8);
  animation: scaleIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.7s forwards;
}
.logo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,245,212,0.25);
  animation: spinRing linear infinite;
}
.logo-ring--outer {
  width: 160px; height: 160px;
  border-top-color: var(--cyan);
  animation-duration: 8s;
}
.logo-ring--mid {
  width: 130px; height: 130px;
  border-right-color: var(--orange);
  animation-duration: 5s;
  animation-direction: reverse;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logo-center {
  width: 100px; height: 100px;
  background: var(--navy3);
  border-radius: 50%;
  border: 2px solid rgba(0,245,212,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--glow-c), inset 0 0 20px rgba(0,245,212,0.05);
}
.logo-svg { width: 72px; height: 72px; }
.logo-team-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan); margin-top: 0.5rem;
  position: absolute; bottom: -22px;
}

/* ── Categories row ── */
.categories-row {
  display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center;
  margin-bottom: 1.8rem; margin-top: 0.5rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.6s ease 1.1s forwards;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(240,244,255,0.7);
  transition: border-color 0.2s, background 0.2s;
}
.cat-chip:hover {
  border-color: var(--orange);
  background: rgba(255,107,53,0.15);
  color: var(--white);
}
.cat-icon { font-size: 0.85rem; }

/* ── Enter button ── */
.btn-enter {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--cyan2) 0%, var(--cyan) 100%);
  color: var(--navy);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 40px var(--glow-c), 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.6s ease 1.3s forwards;
  cursor: pointer;
}
.btn-enter:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 60px var(--glow-c), 0 8px 30px rgba(0,0,0,0.5);
}
.btn-enter:active { transform: translateY(0) scale(0.99); }
.btn-enter__arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.btn-enter:hover .btn-enter__arrow { transform: translateX(4px); }
.btn-enter__glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  pointer-events: none;
}

/* ── Footer ── */
.splash-footer {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--muted); margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.5s forwards;
}

/* ── Animation keyframes ── */
@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

/* ── Responsive ── */
@media (max-height: 700px) {
  .logo-wrapper { width: 120px; height: 120px; }
  .logo-ring--outer { width: 120px; height: 120px; }
  .logo-ring--mid { width: 95px; height: 95px; }
  .logo-center { width: 76px; height: 76px; }
  .logo-svg { width: 54px; height: 54px; }
  .categories-row { display: none; }
}
