body {
    background: #ffffff;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  .logo-container {
    width: 40vw;             
    max-width: 300px;        
    height: auto;
    aspect-ratio: 1 / 1;      
    transition: transform 0.2s ease;
    will-change: transform;
  }
  
  
  #logeed-logo {
    width: 100%;
    height: 100%;
  }
  
  #wing-left,
  #wing-right {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transform-origin: center;
    transition: all 0.8s ease;
  }
  
  .logo-loaded #wing-left {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.1s;
  }
  
  .logo-loaded #wing-right {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.3s;
  }

.logo-image {
  position: absolute;
  left: 5vw; /* ahora a la izquierda */
  top: 50%;
  transform: translateY(-50%) translateY(20px);
  width: 350px; /* más grande que antes */
  max-width: 35vw; /* opcional, limita tamaño en pantallas chicas */
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.logo-visible {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

/* Animación de entrada lenta para el watermark */
@keyframes conectarFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slogan-blur {
  position: absolute;
  left: 1vw;
  top: 40vh;
  font-family: 'Poppins', sans-serif;
  font-size: 7vw;
  color: rgba(0, 0, 0, 0.03);
  font-weight: 800;
  line-height: 0.85;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  transform: rotate(-.5deg);
  opacity: 0;
  animation: conectarFadeUp 2.5s ease-out forwards;
  animation-delay: .5s; /* aparece después del resto */
}

#network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: fadeInNetwork 2.5s ease forwards;
  animation-delay: 1.2s; /* aparece después del logo */
}

@keyframes fadeInNetwork {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 3;
    transform: scale(1);
  }
}

@keyframes fadeInSlideRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


.json-menu-right {
  position: absolute;
  top: 33vh; /* más abajo */
  right: 10vw; /* más a la derecha, pero sin pegarse */
  width: 330px;
  height: auto;
  background: #ffffff;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 18px 26px 18px 55px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #222;
  z-index: 10;
  display: flex;
  backdrop-filter: blur(4px);
  user-select: none;
  opacity: 0.97;
  overflow: hidden;
   animation: fadeInSlideRight 1.2s ease-out forwards;
   
}

/* Números al estilo VS Code, vertical alineado */
.line-numbers {
  position: absolute;
  left: 20px;
  top: 18px; /* este valor lo ajusta según la altura de línea */
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  color: #008a87;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.line-numbers span {
  display: block;
  height: 2.2em; /* debe ser igual al nuevo line-height */
  line-height: 2.2;
}


.code-block div {
  line-height: 1.7;
  height: auto;
  margin-bottom: 8px; /* separa como antes */
}

.code-block {
  margin: 0 auto;
  padding-top: 15px;
}

.code-block .key {
  color: #31dba2;
}

.code-block .prop {
  color: #023834;
}

.code-block .val {
  color: #1ab3ab;
}

/* efecto visual destacado */
.highlight {
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.code-block:hover .highlight {
  filter: blur(2px);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.code-block:hover .highlight:hover {
  filter: none;
  opacity: 1;
  background-color: rgba(0, 138, 135, 0.05);
  border-radius: 4px;
  padding: 0 8px;
  margin: 0 -8px;
  z-index: 2;
  cursor: pointer;
}

.code-line {
  display: grid;
  grid-template-columns: 30px auto;
  line-height: 1.7;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.line-number {
  color: #008a87;
  text-align: right;
  user-select: none;
  pointer-events: none;
  padding-right: 10px;
}

.code {
  white-space: pre;
}

.code .key {
  color: #31dba2;
}

.code .prop {
  color: #023834;
}

.code .val {
  color: #1ab3ab;
}

/* efecto visual destacado */
.highlight {
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.json-menu-right:hover .highlight {
  filter: blur(2px);
  opacity: 0.4;
}

.json-menu-right:hover .highlight:hover {
  filter: none;
  opacity: 1;
  border: 1px solid #008a87;
  border-radius: 4px;
  padding: 0 4px;
  background-color: rgba(0, 138, 135, 0.05);
  z-index: 2;
}

.truck-wrapper {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 460px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.truck-base {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.wheel {
  position: absolute;
  width: 20%;
  animation: spin 0.3s linear infinite;
  z-index: 2;
}

/* ✅ Posición calibrada para TR-B.png (con llantas) */
.wheel-1 { left: -10px; bottom: 60px; }  /* trasera izquierda */
.wheel-2 { left: 60px; bottom: 60px; } /* trasera derecha */
.wheel-3 { right: 40px; bottom: 60px; } /* delantera */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@keyframes moveTruck {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(calc(40vw - 230px)); 
  }
}

.truck-wrapper.animate-move {
  animation: moveTruck 1.5s ease-out forwards;
}

@keyframes truckExit {
  0% {
    transform: translateX(calc(40vw - 230px));
  }
  100% {
    transform: translateX(110vw); /* se va más allá del borde */
  }
}

.truck-wrapper.exit-move {
  animation: truckExit 2s ease forwards;
}

#fleet-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('BR1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
  z-index: -2; /* debajo de todo */
}


/*  LAPTOP  */

@media screen and (max-width: 1440px) {
  .json-menu-right {
    top: 25vh;
    right: 2vw;
  }
}



