:root {
    --graphite-950: #0c0d0f;
    --graphite-900: #121418;
    --graphite-850: #171a1f;
    --graphite-800: #1c2026;
    --graphite-700: #2a3038;
    --silver-300: #b9c0c9;
    --silver-200: #d4d8de;
    --silver-100: #eef0f3;
    --gray-500: #858d98;
    --red-600: #b80f21;
    --red-500: #e11d36;
    --red-400: #ff3b52;
    --border: rgba(206, 212, 220, .12);
    --shadow: 0 22px 60px rgba(0, 0, 0, .28);
    --sidebar-width: 315px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--silver-100);
    background:
        radial-gradient(circle at 80% -10%, rgba(225, 29, 54, .12), transparent 34%),
        linear-gradient(145deg, var(--graphite-900), var(--graphite-950));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button { color: inherit; }

.site-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(22, 25, 30, .98), rgba(11, 13, 16, .99));
    border-right: 1px solid var(--border);
    z-index: 30;
}
.brand {
    min-height: 96px;
    padding: 22px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--red-400), var(--red-600));
    border: 1px solid rgba(255,255,255,.22);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.05em;
}
.brand strong { display: block; font-size: 15px; letter-spacing: .16em; }
.brand span { display: block; margin-top: 5px; color: var(--gray-500); font-size: 10px; letter-spacing: .2em; }
.sidebar-label { padding: 22px 22px 10px; color: var(--gray-500); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.search-wrap {
    margin: 0 16px 14px;
    position: relative;
}
.search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--gray-500);
    stroke-width: 1.8;
    stroke-linecap: round;
}
.search-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    color: var(--silver-100);
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}
.search-wrap input:focus { border-color: rgba(225, 29, 54, .7); box-shadow: 0 0 0 3px rgba(225, 29, 54, .1); }
.script-nav { flex: 1; overflow-y: auto; padding: 2px 12px 20px; }
.script-nav::-webkit-scrollbar { width: 6px; }
.script-nav::-webkit-scrollbar-thumb { background: var(--graphite-700); border-radius: 10px; }
.script-group { margin-bottom: 6px; }
.script-toggle {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 10px 1fr 20px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.script-toggle:hover { background: rgba(255,255,255,.035); border-color: var(--border); }
.script-group.is-open .script-toggle { background: linear-gradient(90deg, rgba(225,29,54,.11), rgba(255,255,255,.025)); border-color: rgba(225,29,54,.22); }
.script-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-500); box-shadow: 0 0 0 4px rgba(133,141,152,.08); }
.script-group.is-open .script-dot { background: var(--red-400); box-shadow: 0 0 0 4px rgba(225,29,54,.12); }
.script-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.chevron { width: 17px; fill: none; stroke: var(--gray-500); stroke-width: 2; transition: transform .25s ease; }
.script-group.is-open .chevron { transform: rotate(90deg); stroke: var(--silver-200); }
.script-sections { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease; }
.script-group.is-open .script-sections { max-height: 360px; opacity: 1; }
.section-link {
    position: relative;
    width: calc(100% - 30px);
    min-height: 38px;
    margin-left: 30px;
    padding: 7px 12px 7px 20px;
    border: 0;
    background: transparent;
    color: var(--silver-300);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}
.section-link::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.section-link::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--graphite-700);
    transform: translateY(-50%);
}
.section-link:hover, .section-link.is-active { color: white; }
.section-link.is-active::after { background: var(--red-400); box-shadow: 0 0 10px rgba(255,59,82,.55); }
.sidebar-empty { padding: 15px; color: var(--gray-500); font-size: 13px; }
.sidebar-footer { padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); color: var(--gray-500); font-size: 10px; }
.sidebar-footer a { color: var(--silver-300); text-decoration: none; }
.sidebar-footer a:hover { color: white; }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
    min-height: 96px;
    padding: 18px clamp(22px, 4vw, 58px);
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 15, 18, .62);
    backdrop-filter: saturate(120%);
}
.topbar > div { flex: 1; }
.topbar-kicker { color: var(--red-400); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.topbar h1 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.store-link { display: inline-flex; align-items: center; gap: 9px; color: var(--silver-300); text-decoration: none; font-size: 13px; font-weight: 700; }
.store-link:hover { color: white; }
.store-link svg, .primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--graphite-850); cursor: pointer; }
.mobile-menu svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.content-layout { padding: clamp(22px, 4vw, 58px); }
.content-divider-label { margin-bottom: 14px; color: var(--gray-500); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.content-panel { max-width: 1240px; margin: 0 auto; }
.hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: clamp(38px, 6vw, 74px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(17,20,24,.98), rgba(22,25,30,.78)),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.02) 48px),
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.02) 48px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.hero::after {
    content: 'R';
    position: absolute;
    right: -35px;
    bottom: -125px;
    color: rgba(255,255,255,.025);
    font-size: 430px;
    font-weight: 950;
    line-height: 1;
}
.hero-badge { position: relative; z-index: 1; width: fit-content; padding: 7px 10px; color: var(--red-400); border: 1px solid rgba(225,29,54,.3); background: rgba(225,29,54,.07); border-radius: 5px; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.hero h2 { position: relative; z-index: 1; max-width: 760px; margin: 20px 0 14px; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.hero p { position: relative; z-index: 1; max-width: 720px; margin: 0; color: var(--silver-300); font-size: 17px; line-height: 1.75; }
.hero-actions { position: relative; z-index: 1; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button, .discord-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.primary-button { color: white; border: 1px solid var(--red-400); background: linear-gradient(145deg, var(--red-500), var(--red-600)); }
.primary-button:hover { filter: brightness(1.08); }
.secondary-button { color: var(--silver-100); border: 1px solid var(--border); background: rgba(255,255,255,.035); }
.secondary-button:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.reviews-section { margin-top: 34px; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--border); border-radius: 14px; background: rgba(20,23,28,.72); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading span { color: var(--red-400); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.section-heading h3 { margin: 7px 0 0; font-size: 25px; }
.verified-pill { padding: 8px 11px; color: var(--silver-300); background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 99px; font-size: 11px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { min-height: 220px; padding: 22px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--border); border-radius: 11px; }
.review-head { display: flex; gap: 12px; align-items: center; }
.server-avatar { width: 42px; height: 42px; display: grid; place-items: center; background: var(--graphite-700); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; font-weight: 900; }
.review-card h4 { margin: 0; font-size: 14px; }
.stars { margin-top: 5px; color: #ffc84a; letter-spacing: .08em; font-size: 12px; }
.review-card p { flex: 1; margin: 19px 0; color: var(--silver-300); line-height: 1.65; font-size: 14px; }
.review-card time { color: var(--gray-500); font-size: 11px; }
.support-banner { margin-top: 34px; padding: 28px; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 20px; background: linear-gradient(90deg, rgba(88,101,242,.16), rgba(255,255,255,.025)); border: 1px solid rgba(88,101,242,.25); border-radius: 14px; }
.discord-icon { width: 62px; height: 62px; display: grid; place-items: center; background: #5865f2; border-radius: 13px; }
.discord-icon svg { width: 34px; fill: white; }
.support-banner span { color: #8e98ff; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.support-banner h3 { margin: 6px 0; font-size: 21px; }
.support-banner p { margin: 0; color: var(--silver-300); font-size: 13px; }
.discord-button { color: white; background: #5865f2; border: 1px solid #7781f5; white-space: nowrap; }
.discord-button:hover { filter: brightness(1.08); }

.doc-view { padding: clamp(30px, 5vw, 64px); background: rgba(18,21,25,.82); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.doc-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--gray-500); font-size: 12px; }
.doc-breadcrumbs button { padding: 0; color: var(--silver-300); border: 0; background: transparent; cursor: pointer; }
.doc-breadcrumbs button:hover { color: var(--red-400); }
.doc-breadcrumbs strong { color: var(--silver-200); }
.doc-header { margin: 34px 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.doc-header span { color: var(--red-400); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.doc-header h2 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.04em; }
.doc-header p { margin: 0; max-width: 720px; color: var(--gray-500); line-height: 1.6; }
.doc-body { max-width: 900px; color: var(--silver-300); font-size: 15px; line-height: 1.8; }
.doc-body h2, .doc-body h3, .doc-body h4, .doc-body h5 { color: white; margin: 38px 0 14px; line-height: 1.2; }
.doc-body h2 { font-size: 30px; }
.doc-body h3 { font-size: 25px; }
.doc-body h4 { font-size: 20px; }
.doc-body p { margin: 0 0 18px; }
.doc-body ul { margin: 0 0 20px; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--red-400); }
.doc-body strong { color: white; }
.doc-body em { color: var(--silver-200); }
.doc-body a { color: var(--red-400); text-decoration: none; border-bottom: 1px solid rgba(255,59,82,.35); }
.doc-body a:hover { color: #ff7182; }
.doc-body code { padding: 3px 7px; color: #ff8d9b; background: rgba(225,29,54,.1); border: 1px solid rgba(225,29,54,.18); border-radius: 4px; font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; }
.doc-body pre { overflow-x: auto; margin: 22px 0; padding: 20px; background: #0b0d10; border: 1px solid var(--border); border-left: 3px solid var(--red-500); border-radius: 8px; }
.doc-body pre code { padding: 0; color: var(--silver-200); background: transparent; border: 0; }
.doc-body hr { margin: 34px 0; border: 0; border-top: 1px solid var(--border); }
.empty-section { padding: 22px; color: var(--gray-500); background: rgba(255,255,255,.025); border: 1px dashed var(--border); border-radius: 8px; }
.mobile-overlay { display: none; }

@media (max-width: 1100px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .review-card { min-height: 0; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 25px 0 60px rgba(0,0,0,.45); }
    .sidebar.is-open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .mobile-menu { display: grid; place-items: center; }
    .mobile-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.62); }
    .mobile-overlay.is-visible { display: block; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 680px) {
    .topbar { min-height: 82px; padding: 14px 18px; }
    .store-link { display: none; }
    .content-layout { padding: 18px; }
    .hero { min-height: 0; padding: 34px 24px; }
    .hero h2 { font-size: 38px; }
    .hero p { font-size: 15px; }
    .primary-button, .secondary-button { width: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .support-banner { grid-template-columns: 52px 1fr; }
    .discord-icon { width: 52px; height: 52px; }
    .discord-button { grid-column: 1 / -1; }
    .doc-view { padding: 27px 22px; }
    .doc-header h2 { font-size: 36px; }
}

/* ===== Ajustes visuales v1.2 ===== */
body {
    background-color: var(--graphite-950);
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 80% -10%, rgba(225,29,54,.14), transparent 34%),
        linear-gradient(145deg, var(--graphite-900), var(--graphite-950));
    background-size: 48px 48px, 48px 48px, auto, auto;
    background-attachment: fixed;
}
.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    box-shadow: 0 0 24px rgba(225,29,54,.16);
}
.reviews-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { min-height: 250px; }
.server-avatar.has-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    padding: 4px;
    background: #050607;
    border-radius: 11px;
}
.server-avatar.has-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 7px;
}
.review-card h4 { font-size: 16px; }
.doc-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(28px, 5vw, 58px);
}
.doc-product {
    width: clamp(152px, 17.6vw, 216px);
    padding-top: 42px;
    justify-self: end;
}
.doc-product-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}
.doc-product-link.without-link { cursor: default; }
.doc-product-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    background: #090b0e;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    box-shadow: 0 24px 48px rgba(0,0,0,.38), 0 0 0 5px rgba(225,29,54,.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.doc-product-link:not(.without-link):hover img {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(255,59,82,.65);
    box-shadow: 0 28px 58px rgba(0,0,0,.45), 0 0 28px rgba(225,29,54,.15);
}
.purchase-callout {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    color: var(--red-400);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: purchaseBounce 1.35s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(255,59,82,.35);
}
.purchase-callout svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes purchaseBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -9px); }
}
.doc-header-copy { min-width: 0; }
.dependency-downloads {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}
.dependency-downloads-title {
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.dependency-file {
    margin-bottom: 10px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 44px 1fr 30px;
    align-items: center;
    gap: 13px;
    color: var(--silver-300) !important;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border) !important;
    border-radius: 9px;
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dependency-file:hover {
    transform: translateX(3px);
    background: rgba(225,29,54,.045);
    border-color: rgba(225,29,54,.35) !important;
}
.dependency-file-icon {
    width: 44px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--red-500), var(--red-600));
    border-radius: 6px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}
.dependency-file-copy { min-width: 0; }
.dependency-file-copy strong {
    display: inline;
    color: var(--red-400);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
.dependency-file-copy small {
    margin-top: 5px;
    display: block;
    color: var(--gray-500);
    font-size: 11px;
}
.dependency-file-arrow {
    color: var(--red-400);
    font-size: 22px;
    text-align: center;
}
@media (max-width: 1100px) {
    .reviews-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .doc-header-grid { grid-template-columns: 1fr; }
    .doc-product { width: min(80%, 232px); margin: 12px auto 0; justify-self: center; }
    .doc-header-copy { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .purchase-callout { animation: none; }
}
