/* base.css — Reset y estilos globales */

/* Reset mínimo */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-cal);
  background: linear-gradient(180deg, var(--color-noche) 0%, var(--color-cesped) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Textura de césped sutil — da materialidad al fondo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/textures/grass-texture.png') repeat;
  background-size: 300px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* Línea decorativa de cancha — semicírculo central */
body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  left: 50%;
  width: 280px;
  height: 280px;
  border: 2px solid var(--color-cal);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}

/* Tipografía display (nombres, títulos) */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

/* Links */
a {
  color: var(--color-oro);
  text-decoration: none;
}

a:hover {
  color: var(--color-oro-light);
}

/* Imágenes */
img, svg {
  display: block;
  max-width: 100%;
}

/* Listas */
ul, ol {
  list-style: none;
}

/* Touch targets mínimos */
button, a, input, select, textarea {
  min-height: 44px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-noche);
}

::-webkit-scrollbar-thumb {
  background: var(--color-tierra);
  border-radius: var(--radius-full);
}

/* Contenedor principal */
#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

/* Utilidades */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
