/* ═══════════════════════════════════════════════════════
   CONECTANDO — EXPERIENCIA EXPERIMENTAL
   styles.css [COMPLETAMENTE CONFIGURADO]
   ═══════════════════════════════════════════════════════ */

:root {
  --celeste:  #009FE3;
  --rosa:     #E6007E;
  --amarillo: #FFED00;
  --blanco:   #FFFFFF;
  --negro:    #000000;
  --mono:     'Space Mono', monospace;
  --disp:     'Syne', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--disp);
  overflow-x: hidden;
  cursor: none; 
  user-select: none;
}

#cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--amarillo);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 237, 0, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.25s ease;
}

#three-canvas {
  position: fixed;
  inset: 0;
  z-index: 5; 
  touch-action: none; 
}

#scroll-container {
  position: relative;
  z-index: 2; 
  height: 600vh;
}

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.scene-text {
  position: absolute;
  z-index: 10; 
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.scene-text.visible {
  opacity: 0.15; 
  transform: translateY(0);
}

.scene-text--tl { top: 12vh; left: 8vw; }
.scene-text--tr { top: 12vh; right: 8vw; text-align: right; }
.scene-text--bl { bottom: 15vh; left: 8vw; }
.scene-text--br { bottom: 15vh; right: 8vw; text-align: right; }
.scene-text--c  { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.scene-text--c.visible { transform: translate(-50%, -50%); opacity: 0.15; }

.st-step {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
  display: block;
}

.st-title {
  font-family: var(--disp);
  font-size: clamp(30px, 6vw, 60px); 
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--blanco);
  display: block;
}

.st-title--celeste  { color: var(--celeste); }
.st-title--rosa     { color: var(--rosa); }
.st-title--amarillo { color: var(--amarillo); }
.st-title--blanco   { color: var(--blanco); }

#progress-rail {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.04);
  z-index: 100;
}

#progress-fill {
  width: 2px;
  background: linear-gradient(to bottom, var(--amarillo), var(--rosa), var(--celeste));
  height: 0%;
  transition: height 0.05s linear;
}

#scene-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sd-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.3s, transform 0.3s;
}

.sd-dot.active {
  background: var(--amarillo);
  transform: scale(2);
}

#scroll-cue {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: opacity 0.4s;
}

#scroll-cue.hidden { opacity: 0; pointer-events: none; }

#scroll-cue-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,237,0,0.5), transparent);
  animation: arrowDrop 1.6s ease-in-out infinite;
}

@keyframes arrowDrop {
  0%, 100% { transform: scaleY(0.7); opacity: 0.3; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

#intro-overlay, #restart-overlay {
  position: fixed;
  inset: 0;
  background: var(--negro);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

#restart-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 600;
}

#intro-overlay.hidden, #restart-overlay.hidden { 
  opacity: 0; 
  pointer-events: none; 
}

.intro-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s both;
}

.intro-title {
  font-family: var(--disp);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-align: center;
  color: var(--blanco);
  animation: fadeUp 0.9s 0.35s both;
}

.intro-title .acc-c { color: var(--celeste); }
.intro-title .hollow { -webkit-text-stroke: 1.5px rgba(255,255,255,0.2); color: transparent; }

.intro-rule {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--amarillo), transparent);
  margin: 32px 0;
  animation: fadeUp 0.8s 0.5s both;
}

.intro-btn {
  background: transparent;
  border: 1px solid var(--amarillo);
  color: var(--amarillo);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s 0.65s both;
  transition: color 0.35s;
  pointer-events: all;
}

.intro-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.intro-btn:hover::before { transform: scaleX(1); }
.intro-btn:hover { color: var(--negro); }

.intro-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pieces-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}