.loot-section{
    position:relative;
    width:1200px;
    max-width:95%;
    height:650px;
    border-radius:24px;
    /* background:
        radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 35%),
        #1b1b1b; */
    overflow:hidden;
    /* border:1px solid rgba(255,255,255,.08); */
}

.loot-section.kit-small{
    height:auto;
    /* min-height:100vh; */
    padding:
        30px
        20px
        40px
        20px;
}

/* =========================================
    BOX
    ========================================= */
.box-wrapper{
    position:absolute;
    left:30px;
    bottom:30px;
    z-index:20;
}

.kit-small .box-wrapper{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:40px;
}

.loot-box{
    width:180px;
    cursor:pointer;
    user-select:none;
    transition:transform .25s ease;
    transform-origin:bottom center;
}

.kit-small .loot-box{
    width:160px;
}

.loot-box img{
    width:100%;
    display:block;
}

/* =========================================
    ITEMS AREA
    ========================================= */
.items-area{
    position:absolute;
    inset:20px 20px 20px 240px;
    display:grid;

    /* =====================================================
        CAMBIAR COLUMNAS MÁXIMAS:
        repeat(3, 1fr) = máximo 3 objetos visibles por fila
        ===================================================== */
    grid-template-columns:repeat(3, 1fr);

    gap:24px;
    align-content:center;
    padding:20px;
}

.items-area.kit-small {
    grid-template-columns:1fr;

    position:relative;
    inset:auto;

    width:100%;
    margin:0;

    display:grid;

    align-content:start;

    padding:0;
}

#specialKitSection .items-area {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(2,1fr);
    padding: 0;
}

.loot-item{
    position:relative;
    opacity:0;
    transform:scale(.4);
    pointer-events:none;
}

.loot-item.active{
    pointer-events:auto;
}

.item-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:18px;
    height:100%;
    text-align:center;
    color:#000;
    backdrop-filter:blur(8px);
    transition:.25s ease;
    cursor:pointer;
    width: 100%;
}

.item-card:hover{
    border-color:rgba(255,255,255,.2);
    background:rgba(255,255,255,.09);
}

.kit-small .loot-item{
    width:100%;
}

.kit-small .item-card{
    min-height:100%;
}

.item-image{
    width:100px;
    height:100px;
    object-fit:contain;
    margin-bottom:14px;
}

.item-title{
    font-size:1.1rem;
    font-weight:700;
    margin-bottom:8px;
    line-height: 1;
}

.item-description{
    font-size:.92rem;
    opacity:.8;
    line-height:1.4;
}

.floating-particle{
    position:absolute;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#fff;
    pointer-events:none;
    opacity:.8;
}

@media(max-width:991px){

    /* .loot-section{
        height:auto;
        min-height:900px;
    }

    .items-area{
        position:relative;
        inset:auto;
        margin-top:260px;
        grid-template-columns:1fr;
    }

    .box-wrapper{
        left:50%;
        transform:translateX(-50%);
    } */

    .loot-section{
        height:auto;
        min-height:100vh;
        padding:
            30px
            20px
            40px
            20px;
    }

    /* =========================================
       BOX
       ========================================= */

    .box-wrapper{
        position:relative;
        left:auto;
        bottom:auto;
        transform:none;
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        margin-bottom:40px;
    }

    .loot-box{
        width:160px;
    }

    /* =========================================
       ITEMS
       ========================================= */

    .items-area{
        position:relative;
        inset:auto;

        width:100%;
        margin:0;

        display:grid;

        /*
            TABLET:
            2 columnas
        */
        grid-template-columns:repeat(2, 1fr);

        align-content:start;

        padding:0;
    }

    .loot-item{
        width:100%;
    }

    .item-card{
        min-height:100%;
    }
}

@media(max-width:575px){

    .items-area{

        /*
            MOBILE:
            1 columna
        */
        grid-template-columns:1fr;
    }

    .loot-box{
        width:140px;
    }

    .item-image{
        width:80px;
        height:80px;
    }
}

.joy-special-kit{
    position:relative;
    z-index:2;
    width:1400px;
    max-width:95%;
    margin:80px auto 0;
    background:#fff;
    border:3px solid #fff;
    border-radius:30px;
    padding:40px;
    box-shadow:6px 7px 6px #00000030;
}

.joy-special-kit-header{
    text-align:center;
    margin-bottom:40px;
}

.joy-special-kit-header h3{
    font-size:3rem;
    font-weight:900;
    margin-bottom:10px;
}

.joy-special-kit-header p{
    font-size:1.8rem;
}

.joy-special-kit-content{
    display:flex;
    align-items:flex-start;
    gap:50px;
}

.joy-special-kit .box-wrapper{
    margin:0;
    flex:0 0 220px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.joy-special-kit .items-area{
    position: static;
    flex: 1;
    display: flex;
    gap: 9px;
    padding-left: 160px;
    align-content: center;
    justify-content: space-evenly;
}

/* #specialKitSection {
    overflow: hidden;
} */

@media (max-width:1024px){
    
    .joy-special-kit-content{
        display:flex;
        align-items:center;
        gap:30px;
    }

    .joy-special-kit .box-wrapper{
        flex:0 0 140px;
    }

    .joy-special-kit .loot-box{
        width:120px;
    }

    .joy-special-kit .items-area{
        position: static;
        flex:1;

        display:grid;
        grid-template-columns:repeat(2,1fr);

        gap:20px;
        padding-left:0; /* ELIMINA EL EMPUJÓN */
    }

    .joy-special-kit .loot-item{
        width:auto;
    }

    .item-image{
        width:90px;
        height:90px;
    }

    .item-title{
        font-size:1.2rem;
    }

    .item-description{
        font-size:1rem;
        line-height:1.3;
    }

    .item-card{
        padding:10px;
    }

    #specialKitSection .items-area{
        display:grid;
        grid-template-columns:repeat(4, 1fr);
        gap:20px;
    }

    #specialKitSection .item-card{
        padding:8px;
    }

    #specialKitSection .item-image{
        width:60px;
        height:60px;
    }

    #specialKitSection .item-title{
        font-size:1rem;
        line-height:1.2;
        min-height:20px;
        
    }

    #specialKitSection .item-description{
        font-size:.8rem;
        line-height:1.2;
    }
}



@media (max-width:575px){
    .joy-special-kit{
        padding:25px;
    }

    .joy-special-kit-content{
        flex-direction:column;
        align-items:center;
        gap:30px;
    }

    .joy-special-kit .box-wrapper{
        flex:none;
        width:auto;
    }

    .joy-special-kit .loot-box{
        width:160px;
    }

    .joy-special-kit .items-area{
        width:100%;
        display:grid;
        grid-template-columns:1fr;
        gap:25px;
        padding:0;
    }

    .item-card{
        text-align:center;
    }

    .item-image{
        width:90px;
        height:95px;
    }

    
    #specialKitSection .items-area{
        grid-template-columns:1fr;
    }
}