/* ==========================================
   TECHNOKA · WORKSHOP STYLE
   Fondo de video + franja de párrafos deslizantes
   ========================================== */
/* ==========================================
   TECHNOKA · WORKSHOP STYLE
   Fondo de video + franja de párrafos deslizantes
   ========================================== */

/* --- FUENTE PERSONALIZADA --- */
@font-face {
  font-family: 'DaddyLonglegs';
  src: url('fonts/DaddyLonglegsNF.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

body {
  background-color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
}

/* --- Marco 16:9 --- */
.frame {
  width: min(900px, 95vw);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

/* ==========================================
   VIDEO DE FONDO
   ========================================== */

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ==========================================
   TÍTULO FIJO
   ========================================== */

.title {
  position: absolute;
  top: 4%;
  left: 3%;
  z-index: 3;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Courier New", Courier, monospace;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ==========================================
   FRANJA INFERIOR · 33% DE ALTURA
   ========================================== */

.text-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.text-strip::-webkit-scrollbar {
  display: none;
}

.text-strip:active {
  cursor: grabbing;
}

/* --- Pista de bloques --- */
.text-track {
  display: flex;
  align-items: center;
  gap: 8rem;
  padding: 0 5%;
  animation: scrollText 50s linear infinite;
  user-select: none;
  height: 100%;
}

.text-strip:hover .text-track {
  animation-play-state: paused;
}

/* ==========================================
   BLOQUES DE TEXTO MULTILÍNEA
   ========================================== */

.text-block {
  flex-shrink: 0;
  max-width: 240px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.block-title {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(240, 235, 225, 0.65);
  text-transform: uppercase;
  font-family: "Courier New", Courier, monospace;
}

.block-body {
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: rgba(240, 235, 225, 0.35);
  line-height: 1.5;
}

/* ==========================================
   ANIMACIÓN DE DESPLAZAMIENTO
   ========================================== */

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}