.card-wrapper {
    display: flex;
    width: 160px;
    height: 250px;
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.4);
}

.card-wrapper.active {
    width: 550px;
}

.card-main {
    min-width: 160px;
    height: 100%;
    background:var(--i) center/cover;
    cursor: pointer;
    position: relative;
}

.base-targetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    align-items: flex-start;
    padding: 10px;
}


.info-hover {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(255, 255, 255, 0));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    color: white;
}

.game-title {
    width: 80%;
}

.game-title h1 {
    font-size: 25px;
}

.info-hover .title,
.info-hover .descripcion {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.card-main:hover .info-hover {
    opacity: 1;
}

.card-main:hover .info-hover .title,
.card-main:hover .info-hover .descripcion {
    transform: translateY(0);
}

.title p,
h2 {
    padding: 0;
    margin: 0;
}

.card-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.card-main:hover::after {
    left: 100%;
}

.side-panel {
    min-width: 290px;
    background: #1e1e1e;
    color: #eee;
    padding: 15px;
    border-left: 2px solid #ffffff;
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.card-wrapper.active .side-panel {
    opacity: 1;
    visibility: visible;
}

.card-wrapper.active .info-hover {
    opacity: 1;
    visibility: visible;
}


.panel-content h3 {
    font-size:15px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 0;
}

.panel-content p{
    font-size: 12px;
}


.description {
    font-size: 10px;
    line-height: 1.4;
    color: #bbb;
}

.btn-next {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #e74c3c;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-ver-mas {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ffffff;
    border: none;
    color: rgb(0, 0, 0);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s;
}

.btn-ver-mas:hover {
    background: #ffffff;
    transform: scale(1.05);
}