/* Splash crítico: cargar desde index.html (antes del bundle de React) */
#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(to bottom, #052e16, #14532d, #031a0c);
  font-family: 'Open Sans', system-ui, sans-serif;
}

#app-loader .logo-wrap {
  display: inline-flex;
  background: transparent;
  padding: 0;
}

#app-loader .logo-wrap img {
  display: block;
  height: auto;
  width: min(320px, 78vw);
  max-width: 320px;
  object-fit: contain;
}

#app-loader .recycle {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

#app-loader .recycle-static {
  display: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #d8ebe0;
}

@media (min-width: 640px) {
  #app-loader .logo-wrap img {
    width: min(380px, 70vw);
    max-width: 380px;
  }

  #app-loader .recycle {
    width: 6rem;
    height: 6rem;
  }

  #app-loader .recycle-static {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-loader .recycle {
    display: none;
  }

  #app-loader .recycle-static {
    display: block;
  }
}
