/* ==========================================================================
   site.css — estilos compartidos de las páginas HTML estáticas de tarati.tech
   (landing + reglas + about, ES/EN). Tema oscuro, coherente con la app Wasm.
   ========================================================================== */

:root {
    --bg: #1a1a2e;
    --bg-soft: #23233f;
    --card: #26264a;
    --text: #e8e8f0;
    --muted: #a8a8c0;
    --gold: #e0b050;
    --gold-dim: #c99a3e;
    --line: rgba(255, 255, 255, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    max-width: 880px;
    margin: 0 auto;
}

.brand {
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand:hover {
    text-decoration: none;
    color: var(--gold);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.site-header nav a {
    color: var(--muted);
}

.site-header nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.lang {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.82rem;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: var(--gold);
    color: #1a1a2e !important;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--gold-dim);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-play {
    padding: 8px 18px;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--text) !important;
    border: 1px solid var(--line);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--bg-soft);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 72px 20px 56px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero .tagline {
    color: var(--muted);
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero .cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Secciones ───────────────────────────────────────────────────────────── */
section {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

h2 .accent {
    color: var(--gold);
}

h3 {
    font-size: 1.1rem;
    margin: 22px 0 6px;
    color: var(--gold);
}

p {
    margin-bottom: 14px;
}

ul, ol {
    margin: 0 0 14px 22px;
}

li {
    margin-bottom: 6px;
}

/* ── Grid de features / cards ────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ── Imagen del tablero (landing) ────────────────────────────────────────── */
.board-figure {
    margin: 24px auto 4px;
    text-align: center;
}

.board-figure img {
    width: 100%;
    max-width: 440px;
    height: auto;
}

.board-figure figcaption {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 12px;
}

/* ── Piezas (reglas): imagen a la izquierda del texto ────────────────────── */
.piece-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.piece-row img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.piece-row .piece-text h3 {
    margin-top: 0;
}

.piece-row .piece-text p:last-child {
    margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 20px 48px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-logo {
    width: 44px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    opacity: 0.75;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer p {
    margin-bottom: 8px;
}
