/* style.css — estilos base complementarios a Tailwind CSS */

:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: #16132B;
  font-family: 'Inter', sans-serif;
}

::selection {
  background-color: #FF5D8F;
  color: #16132B;
}

/* Foco de teclado visible en toda la web */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF5D8F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar personalizada (navegadores WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #16132B;
}
::-webkit-scrollbar-thumb {
  background: #28234A;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7C6CFF;
}

.letter-card {
  animation: fadeSlideIn 0.25s ease both;
}

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

.hero-glow {
  background: radial-gradient(60% 60% at 50% 0%, rgba(124, 108, 255, 0.35) 0%, rgba(22, 19, 43, 0) 70%);
}

.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
