﻿body {
    background: #2E3239;
}

.home-rifas {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(95, 122, 219, .28), transparent 35%), radial-gradient(circle at top right, rgba(95, 122, 219, .18), transparent 30%), #2E3239;
    color: white;
    padding: 70px 20px 40px;
}

.home-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

    .home-hero h1 {
        font-size: clamp(32px, 5vw, 56px);
        font-weight: 900;
        line-height: 1.05;
        margin-bottom: 14px;
    }

    .home-hero p {
        color: #d1d5db;
        font-size: 16px;
        margin-bottom: 28px;
    }

.home-btn-primary {
    display: inline-block;
    background: #5F7ADB;
    color: white;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.home-section {
    max-width: 1050px;
    margin: 0 auto 55px;
}

    .home-section h2 {
        text-align: center;
        font-size: 28px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 25px;
    }

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-step {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 18px;
}

    .home-step span {
        background: #5F7ADB;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 900;
        margin-right: 6px;
    }

    .home-step strong {
        display: inline-block;
        font-size: 14px;
    }

    .home-step p {
        color: #cbd5e1;
        font-size: 13px;
        margin: 10px 0 0;
    }

.home-rifa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-rifa-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
}

    .home-rifa-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        background: #1f2937;
    }

.home-rifa-body {
    padding: 14px;
}

    .home-rifa-body h3 {
        font-size: 18px;
        font-weight: 900;
        margin-bottom: 12px;
    }

.home-progress {
    height: 8px;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

    .home-progress div {
        height: 100%;
        background: #5F7ADB;
        border-radius: 999px;
    }

.home-progress-text {
    display: flex;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 12px;
    margin-bottom: 14px;
}

.home-rifa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .home-rifa-footer strong {
        font-size: 18px;
    }

    .home-rifa-footer a {
        background: #5F7ADB;
        color: white;
        padding: 9px 16px;
        border-radius: 10px;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 900;
    }

.home-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .home-categories button {
        background: transparent;
        border: 1px solid #5F7ADB;
        color: white;
        padding: 7px 15px;
        border-radius: 999px;
        font-size: 13px;
    }

        .home-categories button:first-child {
            background: #5F7ADB;
        }

.home-winners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-winner-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.home-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #5F7ADB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.home-winner-card strong {
    display: block;
    font-size: 17px;
}

.home-winner-card span,
.home-winner-card small {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
}

.home-empty {
    text-align: center;
    color: #cbd5e1;
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .home-steps,
    .home-rifa-grid,
    .home-winners {
        grid-template-columns: 1fr;
    }

    .home-rifa-card img {
        height: 220px;
    }
}

.home-rifa-image-box {
    position: relative;
}

.home-rifa-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    backdrop-filter: blur(8px);
}

.badge-loteria {
    background: rgba(245, 158, 11, .95);
}

.badge-site {
    background: rgba(95, 122, 219, .95);
}

.home-rifa-subtitle {
    color: #cbd5e1;
    font-size: 13px;
    min-height: 36px;
    margin-bottom: 12px;
}

.home-rifa-method {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

    .home-rifa-method i {
        color: #5F7ADB;
    }

.rifa-wallet {
    text-decoration: none;
}

    .rifa-wallet:hover {
        color: white;
        background: #4f68c9;
    }