/* ============================================================
   Elite Play Guide — base.css
   Tokens, reset, tipografía, utilidades base.
   ============================================================ */

:root {
  --color-bg-dark: #1C2B3A;
  --color-surface: #243850;
  --color-accent: #CB8A3E;
  --color-bg-light: #F5F4EF;
  --color-text-on-light: #171B22;
  --color-text-on-dark: #ECF0F6;
  --color-warning: #A8471F;
  --color-success: #2B6E57;

  --color-accent-contrast: #171B22; /* texto sobre acento, cumple contraste */
  --font-heading: 'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg-light);
  color: var(--color-text-on-light);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Oculta el <main> mientras el age gate decide, para evitar parpadeo */
html.ag-pending main,
html.ag-pending .ag-hide-until-ready {
  display: none !important;
}
html.ag-pending body {
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-on-light);
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-top: var(--space-4); }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: var(--space-3); }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-success);
  text-decoration: underline;
}
a:hover { text-decoration: none; }

ul, ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.4rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.98rem;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
th, td {
  border: 1px solid #c9c7bd;
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--color-surface);
  color: var(--color-text-on-dark);
}

img, svg { max-width: 100%; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Foco visible en todo elemento interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-warning);
  color: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.notice-verify {
  border-left: 4px solid var(--color-warning);
  background: #fbe9e1;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin: var(--space-2) 0;
}

.notice-success {
  border-left: 4px solid var(--color-success);
  background: #e4efe9;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin: var(--space-2) 0;
}

.price-tag {
  color: var(--color-accent);
  font-weight: 700;
}
