/* HONIRA · base: reset corto, tipografía, botones, utilidades */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}
h1, h2, h3, p, ol, ul { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: none; box-shadow: var(--sombra-foco); }
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* marca: monograma TA (PNG negro sobre blanco; en oscuro se invierte) y wordmark */
.logo { display: block; flex: 0 0 auto; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .logo { filter: invert(1); mix-blend-mode: screen; } }
.wordmark { font-size: 15px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 300; }
.wordmark.grande { font-size: clamp(26px, 8vw, 34px); letter-spacing: 0; line-height: 1.1; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e1);
  min-height: var(--toque); padding: var(--e1) var(--e3);
  border: 1px solid var(--ink); border-radius: var(--radio);
  background: var(--bg); color: var(--ink);
  font-weight: 600; text-align: center; line-height: 1.2;
  transition: transform .09s, background-color .12s, color .12s, border-color .12s;
}
.btn:active { transform: translateY(1px); }
.btn.relleno { background: var(--ink); color: var(--inverso); }
.btn.relleno:disabled { background: var(--bg); color: var(--muted-2); border-color: var(--line); opacity: 1; }
.btn.grande { width: 100%; min-height: 64px; font-size: 20px; }
.btn.secundario { border-color: var(--line); color: var(--muted); font-weight: 500; }
.enlace {
  display: inline-flex; align-items: center;
  background: none; border: 0; padding: var(--e1) 0; min-height: var(--toque);
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
}
.micro { font-size: 14px; color: var(--muted); }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}

/* banda de aviso global (almacenamiento no disponible, fallo al abrir, modo de prueba) */
.banner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding: var(--e1) var(--gutter); background: var(--ink); color: var(--inverso);
  font-size: 14px; text-align: center; line-height: 1.35;
}
.banner.rojo, .banner.prueba {
  background: var(--card); color: var(--ink); text-align: left;
  border-bottom: 1px solid var(--line); border-left: 4px solid var(--ink);
}
.banner.rojo { border-left-color: var(--rojo); }
.banner.prueba { font-size: 13px; font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; padding: var(--e0) var(--gutter); }
.banner.noscript { z-index: 70; }

.tarjeta {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radio);
  padding: var(--e3);
}

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