/* SKYFIBER — capa visual industrial V3 */
:root {
    --bg: #100d0b;
    --bg2: #171311;
    --panel: #1b1714;
    --panel2: #241e1a;
    --line: #3a332d;
    --line2: #55493f;
    --text: #efe8dc;
    --muted: #b5aa9c;
    --dim: #8d8174;
    --accent: #e8622c;
    --accent2: #f2b441;
    --accent-ink: #1a0b03;
    --green: #7bc96f;
    --red: #f06a5a;
    --amber: #f2b441;
    --blue: #a9c7da;
    --radius: 4px;
    --radius-sm: 3px;
    --display: "Arial Narrow", "Roboto Condensed", "Bebas Neue", Impact, sans-serif;
}

html, body { overflow-x: hidden; }
body {
    background:
        radial-gradient(900px 520px at 82% 0%, rgba(232,98,44,.11), transparent 70%),
        var(--bg);
    color: var(--text);
}

/* Ticker superior */
.ticker {
    position: relative;
    z-index: 60;
    overflow: hidden;
    height: 30px;
    background: var(--accent2);
    color: #19110b;
    border-bottom: 2px solid #0b0907;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ticker-track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    animation: sf-ticker 34s linear infinite;
}
.ticker span {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 26px;
    white-space: nowrap;
    border-right: 1px dashed rgba(25,17,11,.34);
}
.ticker span::after { content: "///"; margin-left: 26px; opacity: .45; }
@keyframes sf-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Barra superior */
.announce { background: linear-gradient(90deg, #6f2a0e, #b8461a); border-bottom: 1px solid #f2b44155; letter-spacing: .03em; }
.topbar {
    background: rgba(16,13,11,.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.topbar-in { padding: 11px 20px; gap: 22px; }
.brand img { border-radius: 5px; box-shadow: 0 0 0 1px #00000066, 0 8px 22px #e8622c22; }
.brand b { color: var(--text); font-size: .88rem; letter-spacing: .16em; }
.brand small { color: var(--accent2); font-size: .52rem; letter-spacing: .23em; }
.mainnav > a {
    color: #cdc3b6;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 9px 11px;
    border-radius: 2px;
}
.mainnav > a:hover { color: #fff; background: rgba(242,180,65,.08); }
.mainnav > a.active {
    color: #fff;
    background: rgba(232,98,44,.16);
    box-shadow: inset 0 -2px 0 var(--accent2);
}
.nav-toggle { border-radius: 3px; border-color: var(--line2); background: #171311; }
.nav-toggle span { background: var(--accent2); }

/* Botones con corte industrial */
.btn {
    border-radius: 0;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    min-height: 43px;
    padding-inline: 20px;
}
.btn-fire {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 28px -12px rgba(232,98,44,.9);
    border-color: #ff9a6a55;
}
.btn-fire:hover { background: #f2753b; filter: none; }
.btn-line {
    background: #211c19;
    border-color: var(--line2);
    color: var(--text);
}
.btn-line:hover { border-color: var(--accent2); background: #2a211b; }
.btn-steam { background: #1b2838; border-color: #45627a; }
.btn-steam:hover { border-color: #6b93ad; }
.btn-sm { min-height: 34px; padding-inline: 13px; font-size: .68rem; }
.pill { border-radius: 0; background: var(--accent2); color: #1a0b03; }
.link { color: var(--accent2); }

/* Hero */
.hero { border-bottom: 1px solid var(--line2); }
.hero::before { filter: saturate(.82) contrast(1.06); }
.hero::after {
    background:
        linear-gradient(90deg, rgba(16,13,11,.98) 0%, rgba(16,13,11,.88) 40%, rgba(16,13,11,.48) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(16,13,11,.08) 43%, rgba(16,13,11,.22) 100%);
}
.hero::after { box-shadow: inset 0 -1px 0 var(--accent2); }
.hero-in { padding-top: 76px; padding-bottom: 62px; gap: 54px; }
.kicker { color: var(--accent2); font-size: .66rem; letter-spacing: .24em; }
.kicker::before { width: 32px; background: repeating-linear-gradient(-45deg, var(--accent2) 0 4px, transparent 4px 8px); }
.hero h1 {
    font-weight: 900;
    font-size: clamp(3.3rem, 7.6vw, 6.6rem);
    line-height: .86;
    letter-spacing: -.025em;
    text-shadow: 0 4px 0 #00000055;
}
.hero h1 em { color: var(--accent); }
.hero-lead { color: #cfc4b6; font-size: 1rem; line-height: 1.65; }
.hero-tags { gap: 7px; }
.tag {
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    background: rgba(27,23,20,.78);
    border-color: var(--line2);
    color: #d7ccbe;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 7px 11px;
}
.dot { background: var(--red); }
.dot.on { background: var(--green); }

/* Tarjeta del servidor */
.server-card {
    position: relative;
    border-radius: 2px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    background: linear-gradient(165deg, rgba(36,30,26,.97), rgba(18,15,13,.98));
    border-color: var(--line2);
    box-shadow: 0 36px 85px -25px #000d;
    padding-bottom: 28px;
}
.server-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: repeating-linear-gradient(-45deg, var(--accent2) 0 10px, #171311 10px 20px);
}
.sc-top { color: var(--accent2); font-size: .62rem; }
.sc-live { color: var(--text); }
.sc-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: -.01em; font-weight: 900; }
.sc-map { color: var(--muted); }
.sc-players b { color: var(--accent2); font-size: 3.8rem; }
.meter { background: #0d0b09; border-radius: 0; }
.meter i { border-radius: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.sc-grid div { border-radius: 2px; background: #15110e; border-color: var(--line); }
.sc-grid small { color: var(--dim); }
.addr { border-radius: 2px; background: #0d0b09; border-color: var(--line2); }
.addr code { color: #ffd2b5; }
.copy { border-radius: 1px; background: var(--panel2); border-color: var(--line2); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.copy:hover { border-color: var(--accent2); color: var(--accent2); }
.copy.done { background: var(--green); color: #08220f; border-color: var(--green); }

/* Wipe */
.wipe-in {
    position: relative;
    border-radius: 2px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    background: linear-gradient(100deg, #241d18, #171311 65%);
    border-color: var(--line2);
}
.wipe-in::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: repeating-linear-gradient(0deg, var(--accent2) 0 9px, #171311 9px 18px);
}
.wipe-item small { color: var(--accent2); font-size: .6rem; }
.wipe-item b { color: var(--text); font-family: var(--display); font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; }
.wipe-note { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Secciones y tarjetas */
.section { position: relative; padding-top: 76px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 {
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--text);
}
.sec-head h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 13px;
    background: repeating-linear-gradient(-45deg, var(--accent2) 0 6px, transparent 6px 12px);
}
.sec-head p { color: var(--muted); }
.panel {
    border-radius: 2px;
    border-color: var(--line);
    background: linear-gradient(160deg, rgba(36,30,26,.8), rgba(23,19,16,.96));
}
.panel-h h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.panel-h span, .panel-h a { color: var(--dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.feature {
    border-radius: 2px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
    border-color: var(--line2);
}
.feature::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 3;
    background: repeating-linear-gradient(-45deg, var(--accent2) 0 8px, #171311 8px 16px);
}
.feature small { color: var(--accent2); }
.feature h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 900; letter-spacing: .01em; }
.feature p { color: #cfc4b7; }
.stat {
    border-radius: 2px;
    border-color: var(--line);
    background: #171311;
}
.stat small { color: var(--accent2); font-size: .6rem; }
.stat b { font-family: var(--display); font-size: 2rem; font-weight: 900; color: var(--text); }
.stat span { color: var(--dim); }
.news-card, .product, .rules li, .faq details, .article {
    border-radius: 2px;
    border-color: var(--line);
    background: #171311;
}
.news-card:hover, .product:hover { border-color: var(--accent2); }
.news-tag { border-radius: 0; background: rgba(232,98,44,.16); color: #ffb48f; }
.product-img { background-color: #241e1a; }
.price { color: var(--accent2); }
.join-main {
    border-radius: 2px;
    background:
        radial-gradient(520px 260px at 90% 0%, rgba(232,98,44,.22), transparent 70%),
        linear-gradient(135deg, #241a14, #171311 65%);
    border-color: #6b4a33;
}
.join-main h2 { font-family: var(--display); font-weight: 900; }
.steps li::before { border-radius: 0; background: var(--accent2); color: #1a0b03; font-weight: 900; }
kbd { border-radius: 1px; border-color: var(--line2); background: #0d0b09; color: var(--accent2); }
.me img { border-radius: 3px; }
.minis div { border-radius: 2px; background: #15110e; border-color: var(--line); }
.ach { border-radius: 2px; border-color: var(--line); background: #171311; }
.ach.done { border-color: #7d5631; background: linear-gradient(90deg, rgba(232,98,44,.14), transparent); }
.ach.done .ach-ico { background: rgba(242,180,65,.13); color: var(--accent2); }
.ach.done em { color: var(--accent2); }
.online-row { border-radius: 2px; background: rgba(255,255,255,.02); }
.online-row img { border-radius: 2px; box-shadow: 0 0 0 2px rgba(123,201,111,.55); }
.ach-bar { border-radius: 0; background: #0d0b09; }
.ach-bar i { background: var(--accent2); }
.footer { background: #0c0a08; border-top-color: var(--line2); }
.footer-cols h4 { color: var(--accent2); }
.footer-cols a:hover { color: var(--accent2); }

/* Páginas internas */
.page-hero { background: radial-gradient(800px 280px at 0% 0%, rgba(232,98,44,.15), transparent 70%), var(--bg2); border-bottom-color: var(--line); }
.page-hero h1 { font-weight: 900; }
.tabs a { border-radius: 1px; }
.tabs a.active { background: var(--accent); border-color: var(--accent); }
.table-wrap { border-radius: 2px; background: #171311; }
th { color: var(--accent2); }
.login-box { border-radius: 2px; }
.status { border-radius: 1px; }
.tl::before { border-radius: 0; }
.tl.done::before { background: var(--accent2); }

/* Detalles */
::selection { background: var(--accent2); color: #1a0b03; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
@media (max-width: 860px) {
    .ticker { height: 26px; font-size: 8px; }
    .ticker span { padding: 0 15px; }
    .ticker span::after { margin-left: 15px; }
    .topbar-in { padding: 9px 14px; gap: 12px; min-width: 0; }
    .brand { min-width: 0; }
    .brand span { min-width: 0; overflow: hidden; }
    .brand b { font-size: .8rem; }
    .brand small { font-size: .48rem; }
    .mainnav { background: #100d0b; border-bottom-color: var(--line2); }
    .mainnav > a { font-size: .72rem; padding: 12px; }
    .hero-in { padding: 42px 16px 48px; gap: 26px; min-width: 0; }
    .hero-in > *, .hero-in > div { min-width: 0; }
    .hero h1 { font-size: clamp(2.65rem, 12.4vw, 4rem); line-height: .9; letter-spacing: -.035em; max-width: 100%; }
    .hero-lead { font-size: .94rem; }
    .server-card { padding: 18px; min-width: 0; }
    .server-card * { min-width: 0; }
    .section { padding: 56px 16px 0; }
    .sec-head { margin-bottom: 20px; }
    .sec-head > div { min-width: 0; }
    .sec-head h2 { font-size: clamp(1.7rem, 7.4vw, 2.5rem); overflow-wrap: anywhere; }
    .stats-row { gap: 8px; }
    .stat { padding: 13px; }
    .stat b { font-size: 1.6rem; }
    .wipe { padding-inline: 16px; margin-top: -24px; }
    .join-main { padding: 24px 18px; }
    .hero-tags { gap: 6px; }
    .tag { font-size: .62rem; padding: 6px 8px; }
}

/* Fondo fijo de página completa */
html { background: #0d0a08; }
body {
    background: transparent;
    position: relative;
    isolation: isolate;
}
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: url('/assets/rust-hero.jpg') center 32% / cover no-repeat;
    opacity: .78;
    filter: saturate(.72) contrast(1.06);
}
.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 75% 0%, rgba(232,98,44,.13), transparent 72%),
        linear-gradient(180deg, rgba(13,10,8,.56) 0%, rgba(13,10,8,.78) 52%, rgba(13,10,8,.94) 100%);
}
.hero::before { display: none; }
.hero::after {
    background:
        linear-gradient(90deg, rgba(16,13,11,.92) 0%, rgba(16,13,11,.72) 43%, rgba(16,13,11,.22) 100%),
        linear-gradient(0deg, rgba(16,13,11,.94) 0%, rgba(16,13,11,.18) 42%, rgba(16,13,11,.24) 100%);
}

/* El titular no debe imponer su ancho mínimo al layout. */
.hero-in, .hero-in > *, .sec-head > div, .grid-3 > *, .grid-2 > *, .stats-row > *, .join > * {
    min-width: 0;
}
.hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 6.2vw, 5.4rem);
    overflow-wrap: normal;
}
@media (max-width: 860px) {
    .hero h1 { font-size: clamp(2.65rem, 12.4vw, 4rem); }
}
