* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(180deg, rgba(15, 17, 26, 0.75) 0%, rgba(15, 17, 26, 0.95) 100%),
                url("/assets/fondo.jpg") center/cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.2rem;
}

.toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #000000;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    pointer-events: none;
    text-align: center;
    width: max-content;
    max-width: 90vw;
}

.toast.show {
    top: 20px;
}

.main-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.card {
    background: rgba(24, 27, 40, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    min-height: 220px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 17, 26, 0.95) 0%, rgba(15, 17, 26, 0.7) 60%, rgba(15, 17, 26, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

.card-info {
    position: relative;
    z-index: 3;
    max-width: 72%;
}

.card h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card p {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 1.4rem;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.06);
}

.card.conectar {
    cursor: pointer;
}

.ip-pill {
    background: #121318;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 0.65rem 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ip-pill:hover {
    background: #1a1c24;
}

.copy-icon {
    width: 17px;
    height: 17px;
    color: #ffffff;
    flex-shrink: 0;
}

.ip-pill span {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.btn {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #0f111a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.comunidad .btn { background: #5865f2; color: #ffffff; }
.tienda .btn { background: #22c55e; color: #ffffff; }
.wiki .btn { background: #a855f7; color: #ffffff; }

footer {
    margin-top: 2.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}


@media (max-width: 820px) {
    body {
        padding: 1.5rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card {
        min-height: 190px;
        padding: 1.6rem 1.4rem;
        border-radius: 16px;
    }

    .card-info {
        max-width: 85%;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .card p {
        font-size: 0.88rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .card-info {
        max-width: 100%;
    }
    .card::before {
        background: linear-gradient(90deg, rgba(15, 17, 26, 0.96) 0%, rgba(15, 17, 26, 0.82) 70%, rgba(15, 17, 26, 0.4) 100%);
    }

    .btn, .ip-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}