/*
    Theme:  RTP Networks
    Prometheus Version: 1.6
    Estilo: nocturno espacial con glow naranja (Naruto) y acentos eléctricos (Pokémon).
    Inspiración estética (no marca): paneles oscuros, hero cinematográfico y tarjetas de servidor.
    Este archivo solo redefine presentación; no altera lógica PHP ni contratos JS.
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --rtp-bg-0: #070a16;
    --rtp-bg-1: #0b1024;
    --rtp-bg-2: #101635;
    --rtp-panel: #141b3d;
    --rtp-panel-2: #182052;
    --rtp-border: rgba(129, 148, 255, 0.16);
    --rtp-border-strong: rgba(129, 148, 255, 0.32);
    --rtp-text: #eaeeff;
    --rtp-muted: #9aa4d4;
    --rtp-orange: #ff7a1a;
    --rtp-orange-2: #ffab52;
    --rtp-violet: #6c5cff;
    --rtp-violet-2: #9a8bff;
    --rtp-cyan: #34c6ff;
    --rtp-yellow: #ffd23f;
    --rtp-red: #ff4d6d;
    --rtp-radius: 16px;
    --rtp-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
    --rtp-glow: 0 0 0 1px var(--rtp-border), 0 22px 50px rgba(108, 92, 255, 0.18);
}

/* ============================================================
   BASE
   ============================================================ */
body,
.wrap {
    background-color: var(--rtp-bg-0) !important;
}

body {
    color: var(--rtp-text) !important;
    background:
        radial-gradient(1100px 620px at 15% -10%, rgba(108, 92, 255, 0.22), transparent 60%),
        radial-gradient(1000px 560px at 90% 0%, rgba(255, 122, 26, 0.16), transparent 55%),
        radial-gradient(900px 700px at 50% 120%, rgba(52, 198, 255, 0.10), transparent 60%),
        linear-gradient(180deg, var(--rtp-bg-1), var(--rtp-bg-0) 60%) !important;
    background-attachment: fixed !important;
    font-family: 'Open Sans', 'Segoe UI', sans-serif !important;
}

/* Campo de estrellas sutil */
.wrap::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.4px 1.4px at 70% 20%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.2px 1.2px at 40% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.8px 1.8px at 85% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.3px 1.3px at 10% 80%, rgba(255, 255, 255, 0.35), transparent);
    opacity: 0.5;
}

.wrap > * {
    position: relative;
    z-index: 1;
}

a {
    color: var(--rtp-violet-2) !important;
    transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus {
    color: var(--rtp-orange-2) !important;
    text-decoration: none !important;
}

hr {
    border-color: var(--rtp-border) !important;
}

h1, h2, h3, .header {
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

h6 {
    color: var(--rtp-orange-2) !important;
}

.header {
    font-weight: 800 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0 4px;
    background: linear-gradient(90deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-inverse {
    background: rgba(10, 14, 30, 0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rtp-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: #d7ddff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    margin: 2px 3px !important;
    transition: background 0.18s ease, color 0.18s ease;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.22), rgba(108, 92, 255, 0.22)) !important;
    color: #ffffff !important;
}

.navbar-brand img {
    filter: drop-shadow(0 4px 12px rgba(255, 122, 26, 0.45));
}

.notify-icon {
    background: linear-gradient(135deg, var(--rtp-red), var(--rtp-orange)) !important;
}

/* ============================================================
   HERO RTP (portada)
   ============================================================ */
.rtp-hero {
    position: relative;
    margin: -20px 0 40px;
    padding: 96px 16px 120px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--rtp-border);
    background:
        radial-gradient(900px 460px at 50% -20%, rgba(255, 122, 26, 0.22), transparent 60%),
        radial-gradient(700px 420px at 20% 120%, rgba(108, 92, 255, 0.28), transparent 60%),
        radial-gradient(700px 420px at 80% 120%, rgba(52, 198, 255, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(8, 11, 24, 0.4), rgba(7, 10, 22, 0.92));
}

.rtp-hero__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, 0.28), transparent 62%);
    filter: blur(6px);
    z-index: 0;
    animation: rtp-pulse 6s ease-in-out infinite;
}

@keyframes rtp-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.rtp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.rtp-hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--rtp-border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rtp-muted);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rtp-hero__title {
    margin: 0;
    font-size: clamp(46px, 9vw, 104px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #ffffff 0%, var(--rtp-orange-2) 45%, var(--rtp-orange) 70%, var(--rtp-violet-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 12px 40px rgba(255, 122, 26, 0.25);
}

.rtp-hero__subtitle {
    margin: 22px auto 34px;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--rtp-muted);
}

.rtp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 52px;
}

.rtp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 800 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.rtp-btn--primary {
    background: linear-gradient(135deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
    color: #1a1205 !important;
    box-shadow: 0 14px 34px rgba(255, 122, 26, 0.4);
}

.rtp-btn--primary:hover {
    transform: translateY(-3px);
    color: #1a1205 !important;
    box-shadow: 0 20px 44px rgba(255, 122, 26, 0.55);
}

.rtp-btn--ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--rtp-border-strong) !important;
    color: #ffffff !important;
}

.rtp-btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(108, 92, 255, 0.2) !important;
    color: #ffffff !important;
}

.rtp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 64px;
}

.rtp-stat__num {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--rtp-orange-2), var(--rtp-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rtp-stat__label {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rtp-muted);
}

/* ============================================================
   SERVIDORES DESTACADOS (Naruto / Pokémon)
   ============================================================ */
.rtp-section-title {
    text-align: center;
    margin: 10px 0 30px;
}

.rtp-section-title h2 {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.rtp-section-title p {
    color: var(--rtp-muted);
    margin-top: 8px;
}

.rtp-servers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-bottom: 60px;
}

.rtp-server-card {
    position: relative;
    display: block;
    border-radius: var(--rtp-radius);
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-panel);
    box-shadow: var(--rtp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rtp-server-card:hover {
    transform: translateY(-6px);
    border-color: var(--rtp-border-strong);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}

.rtp-server-card__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.9;
}

.rtp-server-card--naruto .rtp-server-card__art {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 210, 63, 0.35), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(255, 77, 109, 0.32), transparent 50%),
        linear-gradient(150deg, #ff7a1a 0%, #ff4d1a 45%, #7a1f00 100%);
}

.rtp-server-card--pokemon .rtp-server-card__art {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 210, 63, 0.4), transparent 45%),
        radial-gradient(circle at 78% 72%, rgba(52, 198, 255, 0.4), transparent 50%),
        linear-gradient(150deg, #ffcf3f 0%, #ff4d6d 50%, #1e2a6b 100%);
}

.rtp-server-card__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.6), transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,.7), transparent);
    opacity: 0.5;
}

.rtp-server-card__emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 96px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: transform 0.25s ease;
}

.rtp-server-card:hover .rtp-server-card__emblem {
    transform: translate(-50%, -66%) scale(1.08);
}

.rtp-server-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(7, 10, 22, 0) 30%, rgba(7, 10, 22, 0.92) 100%);
}

.rtp-server-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 24px;
    text-align: left;
}

.rtp-server-card__tag {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--rtp-orange), var(--rtp-orange-2));
    color: #1a1205;
}

.rtp-server-card__name {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px;
}

.rtp-server-card__desc {
    color: #c9d0f5;
    font-size: 14px;
    margin-bottom: 14px;
}

.rtp-server-card__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--rtp-orange-2) !important;
}

/* ============================================================
   SELECTOR DE SERVIDORES NATIVO (.srv-box)
   ============================================================ */
.srv-box {
    position: relative;
    border-radius: var(--rtp-radius) !important;
    border: 1px solid var(--rtp-border) !important;
    background: linear-gradient(160deg, var(--rtp-panel), var(--rtp-bg-2)) !important;
    box-shadow: var(--rtp-shadow) !important;
    overflow: hidden;
    min-height: 220px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.srv-box .fa {
    color: var(--rtp-violet-2) !important;
    filter: drop-shadow(0 6px 16px rgba(108, 92, 255, 0.4));
}

.srv-box:hover {
    transform: translateY(-6px);
    background: linear-gradient(160deg, var(--rtp-panel-2), var(--rtp-panel)) !important;
    border-color: var(--rtp-border-strong) !important;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6) !important;
}

.srv-box:hover .fa {
    color: #ffffff !important;
}

.srv-label {
    background: linear-gradient(135deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
}

a .srv-label {
    color: #1a1205 !important;
}

/* ============================================================
   BOTONES / FORMULARIOS
   ============================================================ */
.buy-btn {
    background: linear-gradient(135deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
    color: #1a1205 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 28px rgba(255, 122, 26, 0.32) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}

.buy-btn:hover,
.buy-btn:focus {
    transform: translateY(-2px);
    color: #1a1205 !important;
    filter: brightness(1.05);
    box-shadow: 0 18px 38px rgba(255, 122, 26, 0.5) !important;
}

.buy-btn.disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--rtp-muted) !important;
    box-shadow: none !important;
}

.buy-btn-free {
    background: linear-gradient(135deg, #2fbf71, #7be3a3) !important;
    color: #07240f !important;
}

.btn-prom {
    background: var(--rtp-panel-2) !important;
    color: #ffffff !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: 10px !important;
}

.btn-prom:hover,
.btn-prom:focus {
    background: var(--rtp-panel) !important;
    color: var(--rtp-orange-2) !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--rtp-text) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: 10px !important;
}

.form-control:focus {
    border-color: var(--rtp-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18) !important;
}

.form-control::placeholder {
    color: rgba(154, 164, 212, 0.7) !important;
}

/* ============================================================
   PANELES / CAJAS
   ============================================================ */
.options,
.dashboard-widget-small-box,
.panel-body,
.stat-box,
#sortable li,
.darker-box,
.info-box {
    background: linear-gradient(160deg, var(--rtp-panel), var(--rtp-bg-2)) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: var(--rtp-radius) !important;
    color: var(--rtp-muted) !important;
    box-shadow: var(--rtp-shadow) !important;
}

.panel-body > .panel-header,
.stat-box-header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border-bottom: 1px solid var(--rtp-border) !important;
}

.bs-callout {
    background: var(--rtp-panel) !important;
    color: var(--rtp-text) !important;
    border-radius: 12px !important;
    border-left-width: 4px !important;
}

.bs-callout-success { border-left-color: #2fbf71 !important; }
.bs-callout-danger { border-left-color: var(--rtp-red) !important; }
.bs-callout-info { border-left-color: var(--rtp-cyan) !important; }

/* ============================================================
   STORE BOXES
   ============================================================ */
.store-box {
    background: linear-gradient(160deg, var(--rtp-panel), var(--rtp-bg-2)) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: var(--rtp-radius) !important;
    overflow: hidden;
    box-shadow: var(--rtp-shadow) !important;
}

.store-box-upper span,
.store-box-upper li {
    border-color: var(--rtp-border) !important;
}

.store-box-upper span {
    color: var(--rtp-orange-2) !important;
    font-weight: 800 !important;
}

.store-box-header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--rtp-border) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-header {
    background: linear-gradient(135deg, var(--rtp-violet), var(--rtp-violet-2)) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-box {
    background: linear-gradient(160deg, var(--rtp-panel), var(--rtp-bg-2)) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: var(--rtp-radius) !important;
    box-shadow: var(--rtp-shadow) !important;
    overflow: hidden;
}

.credit-content {
    border-color: var(--rtp-border) !important;
    color: var(--rtp-orange-2) !important;
}

.credit-content span {
    color: var(--rtp-muted) !important;
}

.categoryLink {
    background: var(--rtp-panel-2) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: 1px solid var(--rtp-border) !important;
}

.categoryLink:hover {
    color: var(--rtp-orange-2) !important;
}

/* ============================================================
   TABLAS
   ============================================================ */
.table {
    color: var(--rtp-text) !important;
}

.table-striped thead {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--rtp-orange-2) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--rtp-text) !important;
}

/* ============================================================
   PROGRESO / OBJETIVO
   ============================================================ */
.progress {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    height: 22px !important;
    overflow: hidden;
}

.progress-bar,
.progress-bar-danger {
    background: linear-gradient(90deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
}

/* ============================================================
   BANNER / CREDITS / DROPDOWN / MODALES
   ============================================================ */
.banner {
    background: transparent !important;
}

.credits {
    background: linear-gradient(135deg, var(--rtp-orange), var(--rtp-orange-2)) !important;
    color: #1a1205 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
}

.dropdown-menu {
    background: var(--rtp-panel) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--rtp-shadow) !important;
}

.dropdown-menu > li > a {
    color: #d7ddff !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(108, 92, 255, 0.2) !important;
    color: #fff !important;
}

.modal-content {
    background: var(--rtp-panel) !important;
    color: var(--rtp-text) !important;
    border: 1px solid var(--rtp-border) !important;
    border-radius: var(--rtp-radius) !important;
}

.modal-header,
.modal-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--rtp-border) !important;
    color: #fff !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: rgba(8, 11, 24, 0.9) !important;
    border-top: 1px solid var(--rtp-border) !important;
    color: var(--rtp-muted) !important;
}

.footer .tos-link {
    color: var(--rtp-muted) !important;
}

.footer .tos-link:hover {
    color: var(--rtp-orange-2) !important;
}

.version {
    color: var(--rtp-violet-2) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .rtp-hero {
        padding: 70px 14px 90px;
    }
    .rtp-stats {
        gap: 26px 40px;
    }
    .rtp-stat__num {
        font-size: 34px;
    }
}

/* ============================================================
   TIENDA RTP — layout de dos columnas
   ============================================================ */
.rtp-store {
    margin-top: 10px;
}

.rtp-store__side .darker-box {
    position: sticky;
    top: 20px;
    padding: 18px !important;
}

/* Barra de categorías como lista vertical */
.rtp-store__side #storeSidebar .row {
    display: block !important;
    margin: 0 !important;
}

.rtp-store__side #storeSidebar .col-md-6,
.rtp-store__side #storeSidebar .col-12 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-bottom: 14px;
}

.rtp-store__side h6 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--rtp-orange-2) !important;
}

.rtp-store__side .categoryLink {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    margin: 4px 0 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rtp-border) !important;
    font-weight: 600;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.rtp-store__side .categoryLink:hover {
    transform: translateX(3px);
    background: rgba(108, 92, 255, 0.16) !important;
    border-color: var(--rtp-border-strong) !important;
    color: #fff !important;
}

.rtp-store__side .categoryLink span {
    font-size: 12px;
    color: var(--rtp-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 1px 9px;
}

/* ============================================================
   TARJETA DE PAQUETE RTP (estilo referencia)
   ============================================================ */
.rtp-pkg {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 26px;
    border-radius: var(--rtp-radius) !important;
    overflow: hidden;
    background: linear-gradient(180deg, var(--rtp-panel), var(--rtp-bg-2)) !important;
    border: 1px solid var(--rtp-border) !important;
    box-shadow: var(--rtp-shadow) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rtp-pkg:hover {
    transform: translateY(-6px);
    border-color: var(--rtp-border-strong) !important;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6) !important;
}

.rtp-pkg__media {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #0e1430;
    background-repeat: no-repeat;
}

.rtp-pkg__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 22, 0) 40%, rgba(20, 27, 61, 0.95) 100%);
}

.rtp-pkg__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #06210f;
    background: linear-gradient(135deg, #34e08a, #7be3a3);
    box-shadow: 0 6px 16px rgba(52, 224, 138, 0.4);
}

.rtp-pkg__perm {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 2;
    font-size: 13px;
    font-weight: 700;
    color: #eef1ff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.rtp-pkg__perm .fa-clock {
    color: var(--rtp-orange-2);
}

.rtp-pkg__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.rtp-pkg__title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff !important;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.rtp-pkg__desc {
    color: var(--rtp-muted) !important;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
    border: none !important;
}

.rtp-pkg__labels {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rtp-pkg__labels li {
    list-style: none;
    border: 1px solid var(--rtp-border) !important;
    background: rgba(255, 255, 255, 0.04);
    color: #d3d9ff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.rtp-pkg__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rtp-border);
}

.rtp-pkg__price {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--rtp-orange-2) !important;
}

.rtp-pkg__price span {
    color: var(--rtp-orange-2) !important;
    border: none !important;
    display: inline !important;
    padding: 0 !important;
    background: none !important;
    font-weight: 900 !important;
}

.rtp-pkg__price s {
    display: block;
    font-size: 14px !important;
    color: var(--rtp-muted) !important;
}

.rtp-pkg__foot .buy-btn {
    margin: 0 !important;
    padding: 12px 20px !important;
    white-space: nowrap;
    font-size: 13px !important;
}

@media (max-width: 991px) {
    .rtp-store__side .darker-box {
        position: static;
    }
}

/* ============================================================
   FIX barra lateral de tienda (ancho e inputs)
   ============================================================ */
/* Layout propio para no depender del ancho de las columnas Bootstrap */
@media (min-width: 992px) {
    .rtp-store {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start;
        gap: 24px;
    }
    .rtp-store__side {
        flex: 0 0 260px !important;
        max-width: 260px !important;
        width: 260px !important;
    }
    .rtp-store__main {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        min-width: 0;
    }
}

.rtp-store__side .darker-box {
    width: 100%;
    box-sizing: border-box;
}

.rtp-store__side #storeSidebar,
.rtp-store__side #storeSidebar .row {
    width: 100% !important;
    margin: 0 !important;
}

.rtp-store__side #storeSidebar .form-control,
.rtp-store__side #storeSidebar select,
.rtp-store__side #storeSidebar input[type="text"] {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.rtp-store__side #storeSidebar > .row.mb-2 {
    margin-bottom: 16px !important;
}

/* ============================================================
   TIENDA v2 — estilo referencia (breadcrumb, buscador, hero)
   ============================================================ */

/* Breadcrumb */
.rtp-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 22px;
    font-size: 13px;
    color: var(--rtp-muted);
}
.rtp-crumb a { color: var(--rtp-muted) !important; font-weight: 600; }
.rtp-crumb a:hover { color: var(--rtp-orange-2) !important; }
.rtp-crumb__sep { opacity: 0.5; }
.rtp-crumb__here .fa-circle { font-size: 7px; color: #34e08a; vertical-align: middle; margin-right: 4px; }
.rtp-crumb__here b { color: #fff; }

/* Solo categorías en el lateral: ocultar búsqueda y orden */
.rtp-store__side #storeSidebar > .row.mb-2 { display: none !important; }
.rtp-store__side #storeSidebar { margin: 0 !important; }

/* Barra de búsqueda superior */
.rtp-searchbar {
    position: relative;
    margin-bottom: 20px;
}
.rtp-searchbar i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--rtp-muted);
    font-size: 16px;
}
.rtp-searchbar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 14px;
    border: 1px solid var(--rtp-border);
    background: rgba(6, 9, 20, 0.75);
    color: var(--rtp-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.rtp-searchbar input:focus {
    border-color: var(--rtp-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}
.rtp-searchbar input::placeholder { color: rgba(154, 164, 212, 0.7); }

/* ============================================================
   BANNER DESTACADO (hero de paquete)
   ============================================================ */
.rtp-feat {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    padding: 34px;
    margin-bottom: 30px;
    border-radius: var(--rtp-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #14183a;
    border: 1px solid var(--rtp-border);
    box-shadow: var(--rtp-shadow);
}
.rtp-feat__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg, rgba(120, 20, 30, 0.92) 0%, rgba(90, 15, 40, 0.7) 45%, rgba(10, 14, 30, 0.35) 100%),
        linear-gradient(0deg, rgba(7, 10, 22, 0.65), rgba(7, 10, 22, 0.2));
}
.rtp-feat__info {
    position: relative;
    z-index: 1;
    flex: 1 1 420px;
    min-width: 260px;
}
.rtp-feat__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rtp-orange-2);
    margin-bottom: 8px;
}
.rtp-feat__title {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.rtp-feat__desc {
    color: #e7ebff;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
}
.rtp-feat__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px 24px;
    max-width: 620px;
}
.rtp-feat__benefits li {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.rtp-feat__benefits .fa-check {
    color: #34e08a;
    margin-right: 8px;
}
.rtp-feat__buy {
    position: relative;
    z-index: 1;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border-radius: 14px;
    background: rgba(6, 9, 20, 0.72);
    border: 1px solid var(--rtp-border);
    text-align: center;
}
.rtp-feat__price-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rtp-muted);
    margin-bottom: 4px;
}
.rtp-feat__price {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.rtp-feat__price span {
    font-size: 16px;
    color: var(--rtp-orange-2);
    font-weight: 700;
}
.rtp-feat__tag {
    display: inline-block;
    margin: 12px auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    background: linear-gradient(135deg, #ff2d55, #ff5a1a);
}
.rtp-feat__btn { margin-top: 6px !important; width: 100%; }

/* ============================================================
   GLOW DE COLOR EN TARJETAS (por columna dentro de cada fila)
   ============================================================ */
.rtp-store__main .row > [class*="col-"]:nth-child(3n+1) .rtp-pkg { border-color: rgba(52, 198, 255, 0.45) !important; }
.rtp-store__main .row > [class*="col-"]:nth-child(3n+1) .rtp-pkg:hover { box-shadow: 0 0 0 1px rgba(52, 198, 255, 0.5), 0 26px 60px rgba(0, 0, 0, 0.6) !important; }

.rtp-store__main .row > [class*="col-"]:nth-child(3n+2) .rtp-pkg { border-color: rgba(52, 224, 138, 0.45) !important; }
.rtp-store__main .row > [class*="col-"]:nth-child(3n+2) .rtp-pkg:hover { box-shadow: 0 0 0 1px rgba(52, 224, 138, 0.5), 0 26px 60px rgba(0, 0, 0, 0.6) !important; }

.rtp-store__main .row > [class*="col-"]:nth-child(3n+3) .rtp-pkg { border-color: rgba(255, 77, 109, 0.45) !important; }
.rtp-store__main .row > [class*="col-"]:nth-child(3n+3) .rtp-pkg:hover { box-shadow: 0 0 0 1px rgba(255, 77, 109, 0.5), 0 26px 60px rgba(0, 0, 0, 0.6) !important; }

/* Precio con icono de moneda */
.rtp-pkg__price::before {
    content: "\f51e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    margin-right: 6px;
    color: var(--rtp-orange);
}

@media (max-width: 767px) {
    .rtp-feat { padding: 22px; }
    .rtp-feat__buy { flex: 1 1 100%; }
}

/* ============================================================
   NAVBAR GLASS MODERNO (estilo referencia, dorado)
   ============================================================ */
.navbar-inverse {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    background: rgba(10, 14, 30, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 10, 30, 0.35) !important;
    padding: 6px 0;
}

.navbar-inverse .container { align-items: center; }

/* Logo */
.navbar-brand img {
    filter: drop-shadow(0 4px 14px rgba(251, 191, 36, 0.45));
    transition: transform 0.2s ease;
}
.navbar-brand:hover img { transform: scale(1.05); }

/* Enlaces como pills (el navbar usa ul.nav > li.nav-item > a.nav-link) */
.navbar-inverse .nav .nav-link {
    color: #dbe3ff !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 10px 16px !important;
    margin: 2px 4px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.navbar-inverse .nav .nav-link svg,
.navbar-inverse .nav .nav-link i { color: #fbbf24 !important; }

.navbar-inverse .nav .nav-link:hover,
.navbar-inverse .nav .nav-link:focus {
    color: #ffffff !important;
    background: rgba(251, 191, 36, 0.14) !important;
    transform: translateY(-1px);
}

.navbar-inverse .nav .nav-item.active .nav-link,
.navbar-inverse .nav .nav-item.active .nav-link:hover,
.navbar-inverse .nav .nav-item.active .nav-link:focus {
    color: #1a1205 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35);
}
.navbar-inverse .nav .nav-item.active .nav-link svg,
.navbar-inverse .nav .nav-item.active .nav-link i { color: #1a1205 !important; }

/* Dropdown toggle abierto */
.navbar-inverse .nav .dropdown.show > .nav-link {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fff !important;
}

/* Dropdown glass */
.navbar-inverse .dropdown-menu {
    background: rgba(8, 12, 25, 0.97) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
    border-radius: 16px !important;
    padding: 10px !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5) !important;
    margin-top: 10px;
}
.navbar-inverse .dropdown-menu > li > a,
.navbar-inverse .dropdown-menu .dropdown-item {
    color: #dbe3ff !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-weight: 600;
    transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.navbar-inverse .dropdown-menu > li > a:hover,
.navbar-inverse .dropdown-menu .dropdown-item:hover {
    background: rgba(251, 191, 36, 0.16) !important;
    color: #fff !important;
    transform: translateX(4px);
}

/* Notificaciones */
.navbar-inverse .notify-icon {
    background: linear-gradient(135deg, #ff4d6d, #f59e0b) !important;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.4);
}

/* Toggler móvil */
.navbar-inverse .navbar-toggler {
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 10px;
    padding: 8px 12px;
}
.navbar-inverse .navbar-toggler svg,
.navbar-inverse .navbar-toggler i { color: #fbbf24 !important; }

/* ============================================================
   SELECTOR DE SERVIDOR (portada) — grid bento estilo referencia
   ============================================================ */
.server-selection-container { padding: 1.5rem 0 2rem; max-width: 1000px; margin: 0 auto; }

.srv-head { text-align: center; margin: 0 auto 1.4rem; max-width: 680px; }
.srv-head-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; color: #fff; letter-spacing: -.5px; margin: 0 0 .4rem; }
.srv-head-sub { color: #cbd5e1; font-size: .98rem; margin: 0; }

.srv-promos { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin: 0 auto 1.75rem; }
.srv-promo {
    display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.4rem;
    background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25);
    border-radius: 12px; color: #fbbf24 !important; font-weight: 700; text-decoration: none;
    transition: background .25s ease;
}
.srv-promo:hover { background: rgba(251,191,36,.16); color: #fbbf24 !important; text-decoration: none; }
.srv-promo i { font-size: 1.4rem; color: #fbbf24; }
.srv-promo small { display: block; color: #cbd5e1; font-weight: 400; font-size: .78rem; }

.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin: 0 auto;
}
/* Todas las tarjetas iguales (misma altura y estilo) */
.srv-card--hero { grid-row: auto; }

.srv-card {
    position: relative; display: flex; flex-direction: column;
    background: #111827; border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff;
    transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.srv-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--srv-accent, #fbbf24); opacity: .9; z-index: 2;
}
.srv-card:hover, .srv-card:focus-visible {
    transform: translateY(-6px);
    border-color: var(--srv-accent, #fbbf24);
    box-shadow: 0 18px 50px var(--srv-glow, rgba(251,191,36,.3));
    text-decoration: none; color: #fff; outline: none;
}
.srv-card:focus-visible { outline: 3px solid var(--srv-accent, #fbbf24); outline-offset: 3px; }

.srv-card-img { position: relative; flex: 1 1 auto; min-height: 200px; overflow: hidden; background: #0a0f1c; }
.srv-card--hero .srv-card-img { min-height: 200px; }
.srv-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.srv-card:hover .srv-card-img img { transform: scale(1.06); }
.srv-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,.92) 0%, rgba(17,24,39,0) 55%); }
.srv-img-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--srv-accent, #fbbf24);
    background: radial-gradient(circle at 50% 40%, var(--srv-glow, rgba(251,191,36,.25)) 0%, #0a0f1c 70%);
}

.srv-badge {
    position: absolute; top: .85rem; left: .85rem; z-index: 3;
    display: inline-flex; align-items: center; gap: .35rem;
    background: linear-gradient(135deg,#fbbf24,#f59e0b);
    color: #0a0f1c; font-weight: 800; font-size: .72rem; letter-spacing: .5px;
    text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
}

.srv-card-body { position: relative; z-index: 2; padding: .85rem 1.1rem 1.1rem; margin-top: -1.6rem; }
.srv-card-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3rem; color: #fff; }
.srv-card--hero .srv-card-title { font-size: 1.5rem; }
.srv-card-tag { color: #cbd5e1; font-size: .88rem; line-height: 1.4; margin: 0 0 .8rem; }
.srv-cta {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .8rem;
    color: #fbbf24; transition: gap .25s ease;
}
.srv-card:hover .srv-cta { gap: .85rem; }

.srv-trust {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1rem 2rem; margin: 1.75rem auto 0; padding: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.srv-trust li { display: inline-flex; align-items: center; gap: .55rem; color: #cbd5e1; font-size: .9rem; }
.srv-trust i { color: #fbbf24; }

@media (max-width: 580px) {
    .srv-grid { grid-template-columns: 1fr; }
    .srv-trust { gap: 1rem; flex-direction: column; align-items: center; }
}


/* ============================================================
   NAVBAR EXTRAS ESTILO UNITY (marca, contador, discord)
   ============================================================ */

/* Marca: logo circular + texto */
.navbar-brand.rtp-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand.rtp-brand img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
    background: rgba(8, 12, 25, 0.6);
}

.rtp-brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

/* Contador de jugadores "Jugando" */
.rtp-navextra {
    display: flex;
    align-items: center;
}

.rtp-players {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.rtp-players strong {
    color: #10b981;
    font-weight: 800;
}

.rtp-players-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: rtpPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes rtpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Botón de Discord */
.rtp-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 1.2rem;
    text-decoration: none !important;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rtp-discord:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.55);
    color: #ffffff !important;
}

.rtp-discord i { color: #ffffff !important; }

/* Espaciado entre extras y el resto de acciones */
.navbar-inverse .nav.ml-auto .rtp-navextra + .rtp-navextra {
    margin-left: 0.2rem;
}

@media (max-width: 991px) {
    .rtp-players { margin: 0.4rem 0; }
    .rtp-discord { margin: 0.4rem 0; }
    .rtp-brand-text { font-size: 1rem; }
}


/* ============================================================
   NAVBAR — AJUSTE FINO DE TAMAÑOS Y ESPACIOS (estilo Unity)
   ============================================================ */

/* Altura fija y todo centrado verticalmente */
.navbar-inverse {
    padding: 0 !important;
    min-height: 72px !important;
}
.navbar-inverse .container {
    display: flex !important;
    align-items: center !important;
    min-height: 72px !important;
    flex-wrap: nowrap;
}
.navbar-inverse .navbar-collapse {
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

/* La marca no ocupa de más y se separa del menú */
.navbar-inverse .navbar-header {
    flex-shrink: 0;
    margin-right: 2.2rem;
}
.navbar-brand.rtp-brand {
    margin: 0 !important;
    height: 72px;
}
.navbar-brand.rtp-brand img {
    width: 42px !important;
    height: 42px !important;
}
.rtp-brand-text {
    font-size: 1.05rem;
    letter-spacing: 1.2px;
}

/* Menú principal: enlaces compactos y homogéneos */
.navbar-inverse .nav {
    align-items: center !important;
}
.navbar-inverse .nav .nav-link {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0 0.85rem !important;
    margin: 0 0.1rem !important;
    height: 40px !important;
    border-radius: 10px !important;
    gap: 0.5rem !important;
    line-height: 1 !important;
}
.navbar-inverse .nav .nav-link i,
.navbar-inverse .nav .nav-link svg {
    font-size: 0.95rem;
}

/* Quita la flecha extra del dropdown para un look más limpio */
.navbar-inverse .nav .dropdown-toggle::after {
    margin-left: 0.35rem;
    opacity: 0.6;
}

/* Menú izquierdo ocupa el centro (como Unity) */
.navbar-inverse .navbar-collapse > ul.nav:first-child {
    flex-grow: 1;
    justify-content: center;
}

/* Acciones de la derecha alineadas y con separación uniforme */
.navbar-inverse .nav.ml-auto {
    align-items: center !important;
    gap: 0.55rem;
    flex-shrink: 0;
}
.navbar-inverse .nav.ml-auto .nav-item {
    display: flex;
    align-items: center;
}
.navbar-inverse .nav.ml-auto .nav-link {
    height: 40px !important;
}

/* Controles (contador / discord / steam) al mismo alto */
.rtp-players {
    height: 38px;
    padding: 0 0.85rem;
    font-size: 0.82rem;
}
.rtp-discord,
.rtp-steam {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 11px;
}

/* Botón de Steam */
.rtp-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    box-shadow: 0 4px 12px rgba(27, 40, 56, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rtp-steam:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(27, 40, 56, 0.55);
    color: #ffffff !important;
}
.rtp-steam i { color: #ffffff !important; }

/* El contador va al final (después de discord/steam) */
.navbar-inverse .nav.ml-auto { flex-wrap: nowrap; }

/* En escritorio, sin márgenes verticales sueltos */
@media (min-width: 992px) {
    .rtp-players, .rtp-discord, .rtp-steam { margin: 0 !important; }
    .navbar-inverse .nav .nav-item { margin: 0; }
}

/* Móvil: menú en columna, controles con aire */
@media (max-width: 991px) {
    .navbar-inverse .navbar-collapse > ul.nav:first-child {
        justify-content: flex-start;
    }
    .navbar-inverse .nav .nav-link {
        height: auto !important;
        padding: 0.6rem 0.85rem !important;
    }
    .navbar-inverse .nav.ml-auto {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.4rem;
    }
}


/* ============================================================
   NAVBAR — MEDIDAS EXACTAS DE UNITY
   ============================================================ */
.navbar-inverse {
    min-height: 75px !important;
    height: 75px !important;
    padding: 0 !important;
}
.navbar-inverse .container {
    height: 75px !important;
    min-height: 75px !important;
    display: flex !important;
    align-items: center !important;
}
.navbar-inverse .navbar-header {
    margin-right: 3rem !important;
}

/* Logo: 45px, esquinas 12px, texto 1.4rem mayúsculas */
.navbar-brand.rtp-brand {
    gap: 0.8rem !important;
    height: 75px;
}
.navbar-brand.rtp-brand img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
.rtp-brand-text {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

/* Menú centrado con separación de 2rem (gap Unity) */
.navbar-inverse .navbar-collapse > ul.nav:first-child {
    flex-grow: 1;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

/* Enlaces: padding 0.5rem 1rem, radio 8px, peso 500, fuente 1rem */
.navbar-inverse .nav .nav-link {
    height: auto !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    gap: 0.5rem !important;
    line-height: 1.2 !important;
}
.navbar-inverse .nav .nav-link i,
.navbar-inverse .nav .nav-link svg {
    font-size: 1rem !important;
}

/* Acciones derechas: gap 0.8rem */
.navbar-inverse .nav.ml-auto {
    gap: 0.8rem !important;
    align-items: center !important;
}

/* Discord / Steam: 40x40, radio 12px, icono 1.2rem */
.rtp-discord,
.rtp-steam {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
}

/* Contador "Jugando": alto 34px, pill 18px */
.rtp-players {
    height: 34px !important;
    padding: 0 0.8rem !important;
    border-radius: 18px !important;
    gap: 0.4rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}
.rtp-players strong {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.rtp-players .rtp-players-dot {
    width: 8px !important;
    height: 8px !important;
}

/* Cuentas de sesión (soporte/admin/logout/login) al tamaño de enlace */
.navbar-inverse .nav.ml-auto .nav-link {
    height: auto !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.95rem !important;
}

@media (max-width: 991px) {
    .navbar-inverse,
    .navbar-inverse .container {
        height: auto !important;
    }
    .navbar-inverse .navbar-collapse > ul.nav:first-child {
        gap: 0;
        justify-content: flex-start;
    }
}


/* ============================================================
   NAVBAR — FIX FINAL: una sola fila, compacto y alineado
   ============================================================ */
.navbar-inverse .navbar-collapse {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

/* Menú central: una fila, separación moderada */
.navbar-inverse .navbar-collapse > ul.nav:first-child {
    flex-grow: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

/* Acciones derecha: una fila */
.navbar-inverse .nav.ml-auto {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: 1rem !important;
}

/* Enlaces compactos y todos a la misma altura */
.navbar-inverse .nav .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    height: 42px !important;
    padding: 0 0.75rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
}
.navbar-inverse .nav.ml-auto .nav-link {
    height: 42px !important;
    padding: 0 0.7rem !important;
    font-size: 0.88rem !important;
}
.navbar-inverse .nav .nav-link i,
.navbar-inverse .nav .nav-link svg {
    font-size: 0.95rem !important;
}

/* Marca más contenida para dejar sitio al menú */
.navbar-inverse .navbar-header {
    margin-right: 1.4rem !important;
}
.rtp-brand-text {
    font-size: 1.2rem !important;
    letter-spacing: 0.8px !important;
}

/* Controles a 38px para encajar en la fila */
.rtp-discord,
.rtp-steam {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
    flex-shrink: 0;
}
.rtp-players {
    height: 34px !important;
    padding: 0 0.7rem !important;
    font-size: 0.82rem !important;
    flex-shrink: 0;
}

/* La lista de items no debe recibir bullets ni márgenes raros */
.navbar-inverse .nav {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
}
.navbar-inverse .nav .nav-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* En pantallas medianas apretamos aún más para que no salte de fila */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-inverse .navbar-collapse > ul.nav:first-child { gap: 0.15rem !important; }
    .navbar-inverse .nav .nav-link { padding: 0 0.55rem !important; font-size: 0.82rem !important; }
    .navbar-inverse .nav .nav-link i { display: none !important; }
    .navbar-inverse .navbar-header { margin-right: 0.8rem !important; }
    .rtp-brand-text { font-size: 1.05rem !important; }
}

/* Móvil: vuelve a columna, sin alturas fijas */
@media (max-width: 991px) {
    .navbar-inverse .navbar-collapse,
    .navbar-inverse .navbar-collapse > ul.nav:first-child,
    .navbar-inverse .nav.ml-auto {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    .navbar-inverse .nav .nav-link {
        height: auto !important;
        padding: 0.6rem 0.85rem !important;
    }
}


/* ============================================================
   SECCIÓN "NUESTROS SERVIDORES" (tarjetas estilo Unity)
   ============================================================ */
.server-category.general-servers {
    max-width: 1200px;
    margin: 3.5rem auto 4rem;
    padding: 0 1.25rem;
}

.server-category .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-category .section-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: rgba(20, 27, 48, 0.7);
    border: 1px solid rgba(120, 160, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(10px);
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(251, 191, 36, 0.12);
}

.server-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.server-card:hover .server-image img {
    transform: scale(1.06);
}

.server-img-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.server-status-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.server-status-indicator.online {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.server-status-indicator.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.server-status-indicator.maintenance {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.server-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: rtpPulse 2s infinite;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 1.25rem 0.5rem;
}

.server-description {
    color: #a9b4d0;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 1.25rem 1rem;
    flex-grow: 1;
}

.server-info {
    display: flex;
    gap: 1rem;
    padding: 0 1.25rem;
    margin-bottom: 0.85rem;
}

.server-info .info-item {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.server-info .info-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8bb0;
    margin-bottom: 0.2rem;
}

.server-info .info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 0 1.25rem 1rem;
    overflow: hidden;
}

.server-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
    background: #10b981;
}

.server-progress .progress-bar.low  { background: linear-gradient(90deg, #10b981, #34d399); }
.server-progress .progress-bar.mid  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.server-progress .progress-bar.high { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.server-buttons {
    padding: 0 1.25rem;
    margin-bottom: 0.85rem;
}

.btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    color: #1a1205 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(251, 191, 36, 0.45);
    color: #1a1205 !important;
}

.btn-connect.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.4);
}

.server-ip {
    padding: 0.7rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    cursor: pointer;
    color: #9aa6c8;
    font-size: 0.82rem;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.server-ip:hover {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
}

.server-ip i { margin-left: 0.3rem; }

@media (max-width: 600px) {
    .server-category .section-title { font-size: 1.7rem; }
    .servers-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PÁGINAS INTERNAS (Guía / Normativas / Social)
   ============================================================ */
.rtp-page {
    max-width: 1100px;
    margin: 3rem auto 4rem;
    padding: 0 1.25rem;
}

.rtp-page-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.rtp-page-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.rtp-page-title i {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.rtp-page-sub {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

.rtp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rtp-card {
    background: rgba(20, 27, 48, 0.7);
    border: 1px solid rgba(120, 160, 255, 0.14);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.rtp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.rtp-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #1a1205;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.3);
}

.rtp-card h2 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.rtp-card p {
    color: #a9b4d0;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rtp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rtp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    line-height: 1.4;
}
.rtp-list li i {
    color: #fbbf24;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.rtp-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.rtp-inline-link:hover { color: #ffd54f; }

/* Botones sociales grandes */
.rtp-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.rtp-social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    text-decoration: none !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 27, 48, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rtp-social-btn i {
    font-size: 2rem;
    flex-shrink: 0;
}
.rtp-social-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.rtp-social-btn strong { font-size: 1.05rem; }
.rtp-social-btn small { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; }
.rtp-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.rtp-social-btn.discord { border-color: rgba(88, 101, 242, 0.5); }
.rtp-social-btn.discord i { color: #7289da; }
.rtp-social-btn.discord:hover { box-shadow: 0 12px 28px rgba(88, 101, 242, 0.35); }
.rtp-social-btn.steam i { color: #66c0f4; }
.rtp-social-btn.store i { color: #fbbf24; }
.rtp-social-btn.store { border-color: rgba(251, 191, 36, 0.4); }

@media (max-width: 600px) {
    .rtp-page-title { font-size: 1.7rem; }
    .rtp-cards, .rtp-social-grid { grid-template-columns: 1fr; }
}


/* Pestañas de secciones (Guía / Normativas / Social) */
.rtp-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.rtp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    color: #dbe3ff !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rtp-tab i { color: #fbbf24; }
.rtp-tab:hover {
    color: #fff !important;
    background: rgba(251, 191, 36, 0.14);
    transform: translateY(-2px);
}
.rtp-tab.active {
    color: #1a1205 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35);
}
.rtp-tab.active i { color: #1a1205; }

/* Con una sola tarjeta, la centramos y limitamos el ancho */
.rtp-page .rtp-cards:has(.rtp-card:only-child) {
    max-width: 640px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}
