@import url('/static/css/tokens.css');

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--c-concrete);
  color: var(--c-ink);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tr-fast);
}
a:hover { color: var(--c-red-strong); }

::selection { background: var(--c-red); color: #fff; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-red-strong);
  outline-offset: 3px;
}

.vinyl {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.label {
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-red-strong);
  margin: 0 0 var(--sp-3);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid transparent;
  transition:
    background var(--tr-fast),
    color var(--tr-fast),
    border-color var(--tr-fast),
    transform 120ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--red:hover { background: var(--c-red-strong); border-color: var(--c-red-strong); color: #fff; }
.btn--ink { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--full { width: 100%; }
.btn__spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spin { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mensajes flash */
.flash {
  padding: 0.75rem 0.95rem;
  font-size: var(--fs-sm);
  background: var(--c-bone);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-ink);
  margin-bottom: var(--sp-4);
}
.flash--error { border-left-color: var(--c-red-strong); }
.flash--info  { border-left-color: var(--c-ink); }
.flash--ok    { border-left-color: var(--c-plant); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
