/* Custom Teammates Mods (CTM) — diseño base. Oscuro, con acento cobre del logo; sin fuentes ni librerías externas. */
:root {
  --bg: #121418;
  --surface: #1c1f25;
  --surface-2: #252932;
  --border: #353a45;
  --text: #e9e7e2;
  --muted: #a3a8b3;
  --accent: #d99a84;        /* cobre del logo */
  --accent-ink: #2b140c;
  --gold: #f2c14e;          /* botón de apoyo */
  --gold-ink: #2a1d00;
  --danger: #e5676b;
  --ok: #7fd36a;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.site-header { border-bottom: 2px solid var(--border); background: var(--surface); }
.site-header .inner, main, .site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.brand img { border-radius: 7px; flex: none; }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }

main { padding-top: 32px; padding-bottom: 48px; }
h1, h2 { font-family: var(--font-display); line-height: 1.25; letter-spacing: .02em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3);
}
.btn:active { box-shadow: none; transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.note { font-size: .9rem; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-box { min-height: 65px; margin-bottom: 16px; }

.status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.status.is-error { color: var(--danger); }
.status.is-ok { color: var(--ok); }

.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.comment-author { font-weight: 700; color: var(--text); }
.comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.site-footer { border-top: 2px solid var(--border); color: var(--muted); font-size: .85rem; padding: 20px 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.hero { text-align: center; padding: 8px 0 16px; }
.hero-logo { width: min(240px, 60vw); height: auto; border-radius: 22%; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero .btn-row { justify-content: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
  cursor: pointer;
}
.lang-picker:hover, .lang-picker:focus-within { border-color: var(--accent); color: var(--accent); }
.lang-picker:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font: 600 .9rem/1 var(--font);
  padding: 0 18px 0 0;
  margin-right: -14px;
  cursor: pointer;
}
.lang-picker select:focus { outline: none; }
.lang-picker select option { background: var(--surface); color: var(--text); }
.lang-picker .lang-chevron { pointer-events: none; }
