/* =========================================================================
   Tudor Sport · base.css  [diseno]
   Fuente local, reinicio de estilos y textos generales.
   La fuente Inter la copia el agente pwa en app/vendor/inter/ (sin CDN).
   Si todavía no está, se usa la letra del sistema (system-ui).
   ========================================================================= */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-700-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 700; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--marca); }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

:focus-visible {
  outline: 3px solid var(--marca);
  outline-offset: 2px;
}

/* Íconos del sprite: <svg class="ico"><use href="img/iconos.svg#i-cobrar"/></svg> */
.ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico.chico { width: 18px; height: 18px; }
.ico.grande { width: 28px; height: 28px; }

/* Ayudas de texto */
.texto-sub { color: var(--sub); }
.texto-chico { font-size: 13.5px; }
.texto-marca { color: var(--marca); }
.texto-rojo { color: var(--rojo); }
.texto-verde { color: var(--verde); }
.texto-ambar { color: var(--ambar); }
.negrita { font-weight: 700; }
.numero { font-variant-numeric: tabular-nums; }
.centro { text-align: center; }
.oculto { display: none !important; }

/* Solo para lectores de pantalla */
.solo-lector {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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