/* Capa de pulido visual adicional — no toca el CSS generado por Tailwind, solo añade detalles que faltaban */

html {
  scroll-behavior: smooth;
}

::selection {
  background: #1e3a5f;
  color: #fbbf24;
}

:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

img, video {
  image-rendering: -webkit-optimize-contrast;
}

a, button {
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

a:active, button:active {
  transform: scale(0.97);
}

/* Scrollbar más discreto (Chromium/WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.35);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 95, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a, button {
    transition: none;
  }
}

/* Entrada suave del contenido al cargar cada página */
#root {
  animation: reflejo-fade-in 0.35s ease-out;
}

@keyframes reflejo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #root {
    animation: none;
  }
}
