/* ==========================================================================
   Bastion Outlands — Portal Web (tokens + firma visual compartida)
   Brief: continente helado, estética Webzen/MU, job único = descargar launcher
   Firma: escarcha (frost-rime) — el hielo como identidad, no decoración genérica
   ========================================================================== */

:root {
    /* Superficies */
    --frost-void: #060810;
    --bastion-slate: #0c1018;
    --bg-dark: #08070d;
    --bg-card: rgba(12, 16, 24, 0.92);
    --bg-card-hover: rgba(18, 24, 36, 0.96);
    --bg-modal: #0a0812;

    /* Acentos — oro del bastión + hielo como diferenciador (no template negro+verde) */
    --ember-gold: #c9942e;
    --torch-gold: #e8c872;
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-dark: #b45309;
    --gold-border: #d97706;
    --glacier-cyan: #8ecae6;
    --glacier-deep: #5a8fa8;
    --rune-purple: #7c6aad;

    /* Semánticos */
    --fire-red: #ef4444;
    --arcane-purple: #8b5cf6;
    --mana-blue: #06b6d4;
    --bless-emerald: #10b981;

    --border-gothic: 1px solid rgba(245, 158, 11, 0.35);
    --border-glow: 0 0 20px rgba(142, 202, 230, 0.18);

    --text-heading: #fff7ed;
    --text-body: #cbd5e1;
    --text-muted: #64748b;

    --font-logo: 'Cinzel Decorative', serif;
    --font-epic: 'Cinzel', serif;
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   Firma visual: borde de escarcha (frost-rime)
   -------------------------------------------------------------------------- */
.frost-rime {
    position: relative;
    border: 1px solid rgba(142, 202, 230, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(142, 202, 230, 0.12);
}

.frost-rime::before,
.frost-rime::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(142, 202, 230, 0.55);
    border-style: solid;
    pointer-events: none;
}

.frost-rime::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.frost-rime::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* Divisor entre secciones — grieta de hielo, no línea dorada genérica */
.frost-divider {
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(142, 202, 230, 0.08) 15%,
        rgba(142, 202, 230, 0.35) 50%,
        rgba(142, 202, 230, 0.08) 85%,
        transparent 100%
    );
}

/* Lectura atmosférica del reino — tesis del hero, no stats genéricos */
.hero-atmosphere {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--glacier-cyan);
    background: rgba(6, 16, 28, 0.72);
    border: 1px solid rgba(142, 202, 230, 0.28);
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.hero-atmosphere-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glacier-cyan);
    box-shadow: 0 0 8px var(--glacier-cyan);
    flex-shrink: 0;
}

/* GNB compartida */
.gnb-bar {
    background: var(--frost-void);
    border-bottom: 1px solid rgba(142, 202, 230, 0.14);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 0.82rem;
    position: relative;
    z-index: 100;
}

.gnb-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    line-height: 0;
}

.gnb-brand-mark {
    height: 34px;
    width: 34px;
    display: block;
    opacity: 1;
    mix-blend-mode: screen;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 0 8px rgba(142, 202, 230, 0.25));
    transition: opacity 0.2s ease;
}

.gnb-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.gnb-links a {
    color: var(--text-body);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: color 0.2s;
}

.gnb-links a:hover { color: var(--glacier-cyan); }

/* Botones — voz activa, sin emojis */
.btn-portal:focus-visible,
.btn-webzen:focus-visible {
    outline: 2px solid var(--glacier-cyan);
    outline-offset: 3px;
}
.btn-webzen,
.btn-portal {
    position: relative;
    padding: 1rem 2.2rem;
    font-family: var(--font-epic);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    min-width: min(100%, 280px);
}

.btn-webzen-primary,
.btn-portal-primary {
    background: linear-gradient(180deg, var(--torch-gold) 0%, var(--ember-gold) 48%, #8b5a14 100%);
    color: #1a1208;
    border: 1px solid #f0d78c;
    box-shadow: 0 0 22px rgba(201, 148, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-webzen-primary:hover,
.btn-portal-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-webzen-secondary,
.btn-portal-secondary {
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.96) 0%, rgba(8, 10, 16, 0.98) 100%);
    color: var(--gold-bright);
    border: 1px solid rgba(201, 148, 46, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-webzen-secondary:hover,
.btn-portal-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--gold-bright);
    color: #fff;
}

/* Empty state accionable — invitación, no mood */
.empty-state-action {
    margin-top: 1.25rem;
}

.empty-state-action .btn-portal {
    min-width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Zona de descargas — comparación clara instalador vs portable
   -------------------------------------------------------------------------- */
.download-zone-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.55;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 920px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg-card);
    border: var(--border-gothic);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.2s, transform 0.2s;
}

.download-card:hover {
    border-color: rgba(142, 202, 230, 0.45);
    transform: translateY(-2px);
}

.download-card-featured {
    border-color: rgba(142, 202, 230, 0.4);
    box-shadow: var(--border-glow);
}

.download-card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
}

.download-card-badge-recommended {
    color: var(--glacier-cyan);
    background: rgba(142, 202, 230, 0.1);
    border: 1px solid rgba(142, 202, 230, 0.3);
}

.download-card-badge-alt {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-card-title {
    font-family: var(--font-epic);
    font-size: 1.25rem;
    color: var(--text-heading);
    margin: 0;
}

.download-card-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.download-card-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.download-card .btn-webzen,
.download-card .btn-portal {
    min-width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}

.download-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(142, 202, 230, 0.12);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.download-steps span {
    color: var(--glacier-cyan);
    font-weight: 600;
}

.download-step-action {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-body);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(142, 202, 230, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.download-step-action:hover {
    color: var(--glacier-cyan);
    text-decoration-color: var(--glacier-cyan);
}

a.download-step-action {
    display: inline;
}

@media (max-width: 720px) {
    .gnb-bar { padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-portal,
    .gnb-brand-mark { transition: none; }
    .hero-atmosphere-dot { box-shadow: none; }
}
