body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0b0b0b, #2a0033);
    color: #eee;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

h1 { 
    margin-top: 40px; 
    font-size: 2.5em; 
    text-shadow: 0 0 10px #8e2de2; 
}

/* CONTENEDOR DEL ÁLBUM */
.album-container {
    display: grid;
    grid-template-columns: repeat(5, 170px);
    gap: 15px; 
    margin-top: 30px;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

/* SLOT INDIVIDUAL */
.carta-container {
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    min-height: 260px;
    box-sizing: border-box;
}

/* CARTA */
.carta {
    width: 150px;
    height: 220px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.carta:hover {
    transform: rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.carta img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* ============================= */
/* ✨ SHINY ANIMACIÓN           */
/* ============================= */

.album-container.shiny .carta.shiny img {
    border: none;
    box-shadow: 0 0 20px #ffddff, 0 0 40px #ddaaff;
    animation: haloShiny 3s infinite ease-in-out;
}

@keyframes haloShiny {
    0% {
        box-shadow: 0 0 15px #ffddff, 0 0 30px #ddaaff, 0 0 50px #ffbbff inset;
        transform: rotate(0deg) scale(1);
    }
    25% {
        box-shadow: 0 0 25px #ffddff, 0 0 45px #ddaaff, 0 0 70px #ffbbff inset;
        transform: rotate(3deg) scale(1.02);
    }
    50% {
        box-shadow: 0 0 35px #ffddff, 0 0 60px #ddaaff, 0 0 90px #ffbbff inset;
        transform: rotate(-3deg) scale(1.03);
    }
    75% {
        box-shadow: 0 0 25px #ffddff, 0 0 45px #ddaaff, 0 0 70px #ffbbff inset;
        transform: rotate(2deg) scale(1.02);
    }
    100% {
        box-shadow: 0 0 15px #ffddff, 0 0 30px #ddaaff, 0 0 50px #ffbbff inset;
        transform: rotate(0deg) scale(1);
    }
}

/* TEXTO CARTA */
.carta-texto {
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
    max-width: 100%;
}

.carta-texto span {
    margin-left: 5px;
    background: #8e2de2;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.8em;
}

/* BOTONES PRINCIPALES */
.btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 15px 10px 0 10px;
}

.btn:hover {
    transform: translateY(-3px);
}

/* BOTÓN VENDER */
.btn-vender {
    position: absolute;
    left: 30px;
    top: 160px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    display: none; 
}

/* PAGINACIÓN SUTIL */
.paginacion {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-pagina {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-pagina:hover {
    background: rgba(142,45,226,0.15);
    color: #fff;
    border-color: rgba(142,45,226,0.4);
}

/* MODAL */
#modalCarta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: 9999;
}

#modalCarta img {
    width: 400px;
    border-radius: 15px;
}

#modalCarta.mostrar {
    transform: translate(-50%, -50%) scale(1);
}

#modalFondo {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}

#modalFondo.mostrar {
    display: block;
}