﻿:root{
    --bg1:#0b1220;
    --bg2:#070c14;
    --panel:#101827;
    --panel2:#0c1320;
    --line:#24324a;
    --text:#f4f7fc;
    --text-soft:#d7e0ef;
    --muted:#9fb0c9;
    --blue:#5b8cff;
    --violet:#7a5cff;
    --btn-dark:#162133;
    --btn-dark-hover:#1c2940;
    --btn-line:#3a4d70;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, #1a2644 0%, var(--bg1) 38%, var(--bg2) 100%);
    scroll-behavior: smooth;
}

body {
    line-height: 1.4;
    overflow-x: hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:-20%;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 20%, rgba(91,140,255,.08), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(122,92,255,.05), transparent 24%),
        radial-gradient(circle at 50% 80%, rgba(91,140,255,.05), transparent 30%);
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 40px auto;
}

/* HERO */
.hero {
    position: relative;
    padding: 28px;
    margin-bottom: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16,24,39,.95), rgba(8,18,38,.92));
    border: 1px solid rgba(91,140,255,.25);
    box-shadow:
        0 18px 50px rgba(0,0,0,.35),
        inset 0 0 0 1px rgba(255,255,255,.02);
    overflow: hidden;
}

.hero::after{
    content:"";
    position:absolute;
    right:-60px;
    top:-20px;
    width:320px;
    height:320px;
    background: radial-gradient(circle, rgba(91,140,255,.10), transparent 65%);
    pointer-events:none;
}

.badge-top {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-soft);
    border: 1px solid rgba(91,140,255,.25);
    background: rgba(255,255,255,.02);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 0 0 8px 0;
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .4px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--text-soft);
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 8px 20px rgba(122,92,255,.22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255,255,255,.02);
    border: 1px solid var(--btn-line);
}

.btn-secondary:hover {
    background: var(--btn-dark-hover);
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.info-box {
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(91,140,255,.22);
    min-height: 74px;
    transition: .2s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    border-color: rgba(91,140,255,.34);
    background: rgba(255,255,255,.03);
}

.info-box strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.info-box span {
    display: block;
    font-size: 14px;
    color: var(--text-soft);
}

/* NUEVO: solo para las cajas de IP de arriba */
.info-box-copy {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.info-box-copy:focus-visible {
    outline: 2px solid rgba(91,140,255,.55);
    outline-offset: 2px;
}

.info-ip {
    display: inline-block;
    position: relative;
}

.info-ip::after {
    content: attr(data-hint);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: rgba(0,0,0,0.88);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
    z-index: 20;
}

.info-box-copy:hover .info-ip::after,
.info-box-copy:focus-visible .info-ip::after,
.info-box-copy.copied .info-ip::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.info-box-copy.copied .info-ip::after {
    color: #7dff9a;
    border-color: rgba(125,255,154,0.25);
}

.hero-logo {
    position: absolute;
    right: 22px;
    top: 34px;
    width: 300px;
    max-width: 34%;
    opacity: .14;
    pointer-events: auto;
    user-select: none;
    transition: transform .28s ease, opacity .28s ease, filter .28s ease;
    filter: drop-shadow(0 0 0 rgba(91,140,255,0));
}

.hero-logo:hover {
    transform: scale(1.04) translateY(-2px);
    opacity: .22;
    filter: drop-shadow(0 0 14px rgba(91,140,255,.14));
}

/* SECCION SERVIDORES */
.servers-section {
    position: relative;
    padding: 26px 14px 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16,24,39,.82), rgba(8,18,38,.78));
    border: 1px solid rgba(91,140,255,.14);
    box-shadow:
        0 18px 50px rgba(0,0,0,.22),
        inset 0 0 0 1px rgba(255,255,255,.015);
    overflow: hidden;
}

.section-header {
    margin-bottom: 0;
    padding: 0 8px 12px;
    border-bottom: 1px solid rgba(140, 215, 255, 0.22);
    box-shadow: inset 0 -1px 0 rgba(120, 200, 255, 0.03);
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

/* para que VER SERVIDORES baje justo acá */
#servidores {
    scroll-margin-top: 18px;
}

/* GRID 3 SERVIDORES */
.container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding: 22px 8px 8px;
}

/* Sin línea divisoria: ahora son 3 tarjetas parejas */
.container::before {
    display: none;
}

/* CARDS estilo tracker */
.card {
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    min-height: 250px;
    border: 2px solid rgba(255,255,255,0.10);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.55),
        0 0 20px rgba(0,150,255,0.12);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92),
        rgba(0,0,0,0.60),
        rgba(0,0,0,0.15)
    );
}

.overlay {
    position: relative;
    z-index: 2;
    padding: 16px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.top-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-online {
    background: #1f8f4d;
    color: white;
}

.badge-offline {
    background: #8a2d2d;
    color: white;
}

.badge-fullsoon {
    background: #d78d11;
    color: black;
}

.badge-full {
    background: #b93838;
    color: white;
}

.server-name {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.info {
    font-size: 14px;
    margin-top: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.info-sub {
    font-size: 12px;
    opacity: 0.65;
    margin-top: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* IP copiable */
.copy-ip {
    position: relative;
    display: inline-block;
    width: fit-content;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 3px 6px;
    margin: 6px 0 12px -4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.copy-ip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.copy-ip-text {
    font-size: 12px;
    opacity: 0.80;
    letter-spacing: 0.35px;
    display: block;
}

.copy-ip-hint {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) translateX(-4px);
    background: rgba(0,0,0,0.88);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
    z-index: 20;
}

.copy-ip:hover .copy-ip-hint {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.copy-ip.copied .copy-ip-hint {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: #7dff9a;
    border-color: rgba(125,255,154,0.25);
}

.buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

button {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 7px 12px;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.connect {
    background: #2ecc71;
    color: black;
}

.connect-full {
    background: #5b5b5b;
    color: white;
    cursor: not-allowed;
}

.connect-full:hover {
    transform: none;
    filter: none;
}

.players-btn {
    background: #3498db;
    color: white;
}

.top-btn {
    background: #d4a017;
    color: black;
}

.panel {
    margin-top: 10px;
    background: rgba(0,0,0,0.46);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.28s ease;
}

.panel.open {
    max-height: 260px;
    padding: 10px;
    opacity: 1;
    overflow-y: auto;
}

.panel::-webkit-scrollbar {
    width: 6px;
}

.panel::-webkit-scrollbar-track {
    background: transparent;
}

.panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}

.panel-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.panel-meta {
    font-size: 12px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.player-item,
.top-item {
    font-size: 14px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

.player-item:last-child,
.top-item:last-child {
    border-bottom: none;
}

.top-item:hover {
    transform: translateY(-1px);
}

.empty-player,
.empty-top {
    font-size: 14px;
    opacity: 0.85;
}

.top-rank {
    font-weight: 800;
    margin-right: 4px;
}

.mvp-points {
    color: #ffffff;
    font-weight: 800;
}

.mvp-label {
    color: #9b9b9b;
    font-weight: 600;
}

.top-separator {
    color: #b7b7b7;
    font-weight: 700;
    margin: 0 4px;
}

.top-shimmer {
    position: relative;
    overflow: hidden;
}

.top-shimmer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.05),
        transparent
    );
    transform: skewX(-18deg);
    animation: shimmerMove 2.1s linear infinite;
}

.top-first {
    color: #ffd85b;
    font-weight: 900;
    font-size: 16px;
    background:
        linear-gradient(
            90deg,
            rgba(7,5,1,0.78),
            rgba(14,10,2,0.58),
            rgba(7,5,1,0.78)
        );
    border: 1px solid rgba(255,210,90,0.35);
    box-shadow:
        0 0 8px rgba(255,200,70,0.12),
        0 0 20px rgba(255,140,0,0.08),
        inset 0 0 8px rgba(255,210,90,0.02);
    animation: goldFirePulse 1.35s ease-in-out infinite alternate;
}

.top-first::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 50%, rgba(255,180,50,0.04), transparent 28%),
        radial-gradient(circle at 82% 50%, rgba(255,220,100,0.03), transparent 26%);
    pointer-events: none;
}

.top-second {
    color: #cf8cff;
    font-weight: 800;
    background:
        linear-gradient(90deg, rgba(40,10,70,0.74), rgba(78,22,125,0.55), rgba(28,8,52,0.76));
    border: 1px solid rgba(190,120,255,0.30);
    box-shadow:
        0 0 8px rgba(190,120,255,0.12),
        0 0 18px rgba(145,70,255,0.08),
        inset 0 0 8px rgba(210,150,255,0.03);
    animation: violetPulse 1.45s ease-in-out infinite alternate;
}

.top-second::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(210,150,255,0.04), transparent 28%),
        radial-gradient(circle at 80% 50%, rgba(150,80,255,0.03), transparent 26%);
    pointer-events: none;
}

.top-third {
    color: #c9f2ff;
    font-weight: 800;
    background:
        linear-gradient(90deg, rgba(18,40,52,0.72), rgba(35,70,88,0.55), rgba(14,30,40,0.76));
    border: 1px solid rgba(170,235,255,0.26);
    box-shadow:
        0 0 8px rgba(120,220,255,0.10),
        0 0 18px rgba(120,220,255,0.06),
        inset 0 0 8px rgba(180,240,255,0.03);
    animation: icePulse 1.45s ease-in-out infinite alternate;
}

.top-third::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(180,240,255,0.04), transparent 28%),
        radial-gradient(circle at 80% 50%, rgba(120,220,255,0.03), transparent 26%);
    pointer-events: none;
}

.top-four-five {
    color: #ff6b6b;
    font-weight: 700;
    background: rgba(255,80,80,0.06);
    border: 1px solid rgba(255,80,80,0.12);
}

.top-normal {
    color: #ff5c5c;
}

.top-crown {
    margin-right: 6px;
    filter: drop-shadow(0 0 8px rgba(255,215,74,0.45));
}

@keyframes goldFirePulse {
    from {
        box-shadow:
            0 0 8px rgba(255,190,50,0.10),
            0 0 16px rgba(255,120,0,0.05),
            inset 0 0 8px rgba(255,210,90,0.02);
        transform: scale(1);
    }
    to {
        box-shadow:
            0 0 15px rgba(255,205,70,0.18),
            0 0 26px rgba(255,130,0,0.10),
            inset 0 0 10px rgba(255,220,110,0.04);
        transform: scale(1.008);
    }
}

@keyframes violetPulse {
    from {
        box-shadow:
            0 0 8px rgba(190,120,255,0.10),
            0 0 16px rgba(145,70,255,0.05),
            inset 0 0 8px rgba(210,150,255,0.02);
        transform: scale(1);
    }
    to {
        box-shadow:
            0 0 15px rgba(205,140,255,0.20),
            0 0 26px rgba(145,70,255,0.12),
            inset 0 0 10px rgba(220,170,255,0.04);
        transform: scale(1.008);
    }
}

@keyframes icePulse {
    from {
        box-shadow:
            0 0 8px rgba(170,235,255,0.08),
            0 0 14px rgba(120,220,255,0.04),
            inset 0 0 8px rgba(180,240,255,0.02);
        transform: scale(1);
    }
    to {
        box-shadow:
            0 0 15px rgba(190,245,255,0.16),
            0 0 24px rgba(120,220,255,0.08),
            inset 0 0 10px rgba(200,245,255,0.04);
        transform: scale(1.008);
    }
}

@keyframes shimmerMove {
    0% { left: -130%; }
    100% { left: 150%; }
}

/* FOOTER */
.site-footer {
    margin: 26px auto 0;
    padding: 20px 12px;
    text-align: center;
    color: rgba(215, 224, 239, 0.38);
    font-size: 14px;
    letter-spacing: 0.4px;
    background: rgba(0,0,0,0.14);
    border-top: 1px solid rgba(255,255,255,0.035);
    border-radius: 18px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero-logo {
        display: none;
    }

    .hero-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .wrap {
        width: min(100% - 20px, 1180px);
        margin-top: 12px;
    }

    .hero {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-info {
        grid-template-columns: 1fr;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .container::before {
        display: none;
    }

    .card,
    .overlay {
        min-height: 250px;
    }
}

/* ===== TARJETAS VERTICALES INDEX - 3 SERVERS ===== */
.card-vertical {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16,24,39,.96), rgba(7,18,38,.92));
    border: 1px solid rgba(91,140,255,.18);
    box-shadow:
        0 14px 34px rgba(0,0,0,.34),
        inset 0 0 0 1px rgba(255,255,255,.025);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card-vertical:hover {
    transform: translateY(-5px);
    border-color: rgba(91,140,255,.38);
    box-shadow:
        0 22px 48px rgba(0,0,0,.52),
        0 0 24px rgba(91,140,255,.10),
        inset 0 0 0 1px rgba(255,255,255,.035);
}

.card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.44)),
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.10), transparent 35%);
}

.card-body {
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title-wrap {
    min-width: 0;
}

.card-title {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.card-subtitle {
    margin-top: 5px;
    color: rgba(215,224,239,.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .25px;
}

.card-status {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.card-status .badge {
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

.card-info-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.065);
}

.card-info-label {
    color: rgba(215,224,239,.72);
    font-size: 12px;
    font-weight: 800;
}

.card-info-value {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.card-info-copy {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.card-info-copy:hover {
    transform: translateY(-1px);
    background: rgba(91,140,255,.08);
    border-color: rgba(91,140,255,.22);
}

.card-info-copy .copy-ip-hint {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    background: rgba(0,0,0,.9);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .18s ease;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 6px 18px rgba(0,0,0,.30);
    z-index: 20;
}

.card-info-copy:hover .copy-ip-hint,
.card-info-copy.copied .copy-ip-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-info-copy.copied .copy-ip-hint {
    color: #7dff9a;
    border-color: rgba(125,255,154,.25);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 8px;
}

.card-actions button {
    min-height: 38px;
    border-radius: 12px;
}

.card-actions .top-btn {
    grid-column: 1 / -1;
}

.card-vertical .panel {
    margin-top: 12px;
    background: rgba(0,0,0,.36);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.07);
}

.card-vertical .panel.open {
    max-height: 280px;
}

@media (max-width: 980px) {
    .card-img {
        height: 140px;
    }
}

@media (max-width: 700px) {
    .card-img {
        height: 145px;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .card-actions .top-btn {
        grid-column: auto;
    }

    .card-header {
        align-items: center;
    }
}
