/* ==========================================================================
   Estilos del Álbum de Figuritas, Rompecabezas y Medallas 📖🧩🏅
   ========================================================================== */

/* ==========================================================================
   Barra Superior de Control del Álbum
   ========================================================================== */
.album-header-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    border: 3px solid #ffccd5;
}

.album-stats-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-book-icon {
    font-size: 2.5rem;
}

.album-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--flower-crimson);
}

.album-title-wrap p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

.open-pack-action-btn {
    background: linear-gradient(135deg, #ffd166, #ffb703, #fb8500);
    color: #4a2800;
    border: 3px solid #fff;
    border-radius: 30px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(251, 133, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseBooster 2s infinite ease-in-out;
}

@keyframes pulseBooster {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 0 10px 24px rgba(251, 133, 0, 0.5); }
}

.open-pack-action-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    border-color: #e2e8f0;
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}

/* ==========================================================================
   Inventario de Figuritas Sueltas
   ========================================================================== */
.album-inventory-section {
    background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 26px;
    border: 2px dashed #38b000;
}

.inventory-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-inventory-stickers {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.empty-inventory-msg {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    padding: 10px 0;
}

.sticker-card-item {
    background: white;
    border-radius: 16px;
    padding: 12px;
    min-width: 140px;
    max-width: 150px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
}

.sticker-card-item.rarity-comun { border-color: #94a3b8; }
.sticker-card-item.rarity-rara { border-color: #38b000; }
.sticker-card-item.rarity-epica { border-color: #7209b7; }
.sticker-card-item.rarity-legendaria { border-color: #f72585; box-shadow: 0 0 12px rgba(247, 37, 133, 0.4); }

.sticker-card-icon {
    font-size: 2.2rem;
}

.sticker-photo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sticker-card-icon .sticker-photo,
.card-icon .sticker-photo {
    width: 52px;
    height: 52px;
}

.sticker-silhouette .sticker-photo {
    width: 64px;
    height: 64px;
    filter: grayscale(1);
    opacity: 0.85;
}

.sticker-card-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.paste-action-btn {
    background: var(--light-green);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 10px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
    width: 100%;
}

.paste-action-btn:hover {
    background: var(--primary-green);
}

/* ==========================================================================
   Páginas del Álbum (Rejillas Temáticas)
   ========================================================================== */
.album-book-page {
    background: #fffdfa;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid #fed7aa;
    position: relative;
}

.album-category-header {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #9a3412;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #ffedd5;
    padding-bottom: 8px;
}

.stickers-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.sticker-slot {
    border-radius: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.sticker-slot.is-empty {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
}

.sticker-slot.is-pasted {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid #ffccd5;
    animation: stampPasted 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stampPasted {
    0% { transform: scale(1.3) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.sticker-slot.is-pasted.rarity-comun { border-color: #cbd5e1; }
.sticker-slot.is-pasted.rarity-rara { border-color: #52b788; }
.sticker-slot.is-pasted.rarity-epica { border-color: #b5179e; }
.sticker-slot.is-pasted.rarity-legendaria {
    border-color: #ffb703;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 0 16px rgba(255, 183, 3, 0.4);
}

.sticker-art {
    font-size: 3.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.sticker-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.sticker-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 8px;
}

.rarity-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

.sticker-slot.rarity-rara .rarity-tag { background: #d8f3dc; color: #2d6a4f; }
.sticker-slot.rarity-epica .rarity-tag { background: #fae8ff; color: #86198f; }
.sticker-slot.rarity-legendaria .rarity-tag { background: #fef08a; color: #854d0e; }

.sticker-silhouette {
    font-size: 3rem;
    opacity: 0.25;
    filter: grayscale(1);
    margin-bottom: 8px;
}

.sticker-placeholder-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #94a3b8;
}

.sticker-hint {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 4px;
}

/* ==========================================================================
   Taller de Rompecabezas Botánicos Interactivos (Jigsaw Arena) 🧩
   ========================================================================== */
.puzzle-section-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #b7e4c7;
    margin-bottom: 30px;
}

.puzzle-top-bar {
    text-align: center;
    margin-bottom: 20px;
}

.puzzle-header-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.puzzle-header-subtitle {
    font-size: 0.98rem;
    color: #64748b;
    margin: 0;
}

/* Selector de Escenas e Ilustraciones */
.puzzle-selection-bar {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.puzzle-group-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.puzzle-art-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 2px 6px 8px 2px;
}

.puzzle-art-card {
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.puzzle-art-card:hover {
    border-color: #38b000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 176, 0, 0.15);
}

.puzzle-art-card.active {
    border-color: #38b000;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px #86efac;
}

.art-card-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.art-thumb-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.art-card-info {
    overflow: hidden;
}

.art-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-card-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dificultad de piezas */
.puzzle-diff-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.puzzle-diff-btn {
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 7px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.puzzle-diff-btn:hover {
    border-color: #f59e0b;
    color: #1e293b;
}

.puzzle-diff-btn.active {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.puzzle-board-fine .puzzle-slot-guide-num {
    display: none;
}

.puzzle-board-fine .puzzle-board-slot {
    border-width: 1px;
}

.puzzle-pieces-tray.puzzle-tray-fine {
    gap: 6px;
    max-height: 440px;
    overflow-y: auto;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
}

.puzzle-tray-fine .puzzle-tray-tile {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border-width: 2px;
}

.puzzle-tray-fine .piece-indicator-badge {
    font-size: 0.55rem;
    padding: 0 3px;
    bottom: 2px;
    right: 2px;
}

/* Barra de Herramientas del Rompecabezas */
.puzzle-tools-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fffdfa;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 22px;
}

.puzzle-progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #78350f;
}

.puzzle-icon-stat {
    font-size: 1.4rem;
}

.puzzle-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.puzzle-tool-btn {
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.puzzle-tool-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Arena Central de Juego */
.puzzle-gameplay-arena {
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .puzzle-gameplay-arena {
        grid-template-columns: 1fr;
    }
}

/* Tablero de Encaje */
.puzzle-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-board-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    border: 4px solid #fed7aa;
    background: #1e293b;
}

.puzzle-ghost-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.puzzle-board {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    z-index: 2;
}

.puzzle-board.puzzle-board-completed {
    border-color: #facc15;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.45);
    animation: puzzleCompleteGlow 2s infinite alternate ease-in-out;
}

@keyframes puzzleCompleteGlow {
    0% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.4); }
    100% { box-shadow: 0 0 40px rgba(250, 204, 21, 0.8); }
}

.puzzle-board-slot {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.puzzle-board-slot.is-empty:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.puzzle-board-slot.slot-drag-over {
    background-color: rgba(56, 176, 0, 0.35) !important;
    border: 2px solid #86efac !important;
}

.puzzle-board-slot.slot-wrong-shake {
    animation: puzzleSlotShake 0.4s ease;
    background-color: rgba(239, 68, 68, 0.35) !important;
}

@keyframes puzzleSlotShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.puzzle-slot-guide-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.puzzle-tile-piece {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    animation: puzzleTileSnap 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes puzzleTileSnap {
    0% { transform: scale(1.3) rotate(-5deg); opacity: 0.5; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.puzzle-board-caption {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Bandeja de Piezas Sueltas */
.puzzle-tray-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 380px;
}

.puzzle-tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.puzzle-tray-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0;
}

.puzzle-tray-hint {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.puzzle-pieces-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.puzzle-tray-tile {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    border: 3px solid white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    position: relative;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    overflow: hidden;
    background-color: #334155;
}

.puzzle-tray-tile:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    border-color: #38b000;
}

.puzzle-tray-tile.is-selected {
    border-color: #f59e0b !important;
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 0 0 3px #fde047, 0 12px 24px rgba(245, 158, 11, 0.4);
    animation: puzzleSelectPulse 1.5s infinite ease-in-out;
}

@keyframes puzzleSelectPulse {
    0%, 100% { transform: translateY(-6px) scale(1.08); }
    50% { transform: translateY(-8px) scale(1.11); }
}

.puzzle-tray-tile.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.tray-piece-thumb {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

.piece-indicator-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    pointer-events: none;
}

/* Celebración de Rompecabezas Completo */
.puzzle-celebration-box {
    text-align: center;
    padding: 30px 16px;
    margin: auto;
}

.puzzle-completed-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #15803d;
    font-weight: 800;
    margin-top: 8px;
}

/* Modal de Imagen Guía */
.puzzle-preview-modal-card {
    max-width: 480px;
    text-align: center;
}

.puzzle-preview-img-box {
    border-radius: 16px;
    overflow: hidden;
    margin: 14px 0 18px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 3px solid #fed7aa;
}

.puzzle-preview-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Salón de Medallas / Vitrina de Logros
   ========================================================================== */
.badges-view-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #ffea00;
}

.badges-header {
    text-align: center;
    margin-bottom: 26px;
}

.badges-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #b45309;
}

.badges-header p {
    font-size: 1.05rem;
    color: #64748b;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.badge-item {
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.badge-item.is-unlocked {
    background: linear-gradient(135deg, #fffbeb, #ffffff);
    border-color: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.15);
}

.badge-item.is-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
}

.badge-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.badge-item.is-unlocked .badge-icon-wrap {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.badge-item.is-locked .badge-icon-wrap {
    background: #e2e8f0;
    filter: grayscale(1);
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.badge-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 10px;
}

.badge-status-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-item.is-unlocked .badge-status-label {
    color: #d97706;
}

.badge-item.is-locked .badge-status-label {
    color: #94a3b8;
}

/* ==========================================================================
   Tarjetas Reveladas en Sobre Abierto
   ========================================================================== */
.revealed-pack-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 18px 0;
    max-height: 52vh;
    overflow-y: auto;
    padding: 6px 4px;
    scrollbar-width: thin;
}

.revealed-pack-card {
    background: white;
    border-radius: 16px;
    padding: 14px 12px;
    min-width: 160px;
    max-width: 210px;
    flex: 1 1 170px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffccd5;
    position: relative;
    animation: popCardReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popCardReveal {
    0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.card-rarity-chip {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    background: #e2e8f0;
    margin-bottom: 6px;
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
}

/* ==========================================================================
   Mejoras del Gran Álbum (100 Figuritas, Navegación y Mesa de Canje)
   ========================================================================== */

/* Barra de progreso en el encabezado */
.album-header-progress-track {
    width: 220px;
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
}

.album-header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06d6a0);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.album-packs-actions-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.open-golden-pack-action-btn {
    background: linear-gradient(135deg, #ffd700, #ffb703, #d4a373);
    color: #432818;
    border: 3px solid #fff;
    border-radius: 30px;
    padding: 12px 22px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 183, 3, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    animation: pulseBooster 2.2s infinite ease-in-out;
}

.open-golden-pack-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 183, 3, 0.6);
}

/* Mesa de Intercambio de Repetidas con Kantuta */
.album-trade-station {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px dashed #f59e0b;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.trade-station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.trade-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trade-station-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.trade-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #92400e;
    margin: 0 0 2px 0;
}

.trade-subtitle {
    font-size: 0.88rem;
    color: #78350f;
    margin: 0;
}

.trade-duplicates-badge {
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.95rem;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.trade-duplicates-badge strong {
    font-size: 1.25rem;
    color: #b45309;
}

.trade-station-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trade-action-btn {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trade-action-btn:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}

.trade-action-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.trade-action-btn.trade-golden-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.trade-action-btn.trade-golden-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Botón Pegar Todo en Inventario */
.inventory-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.inventory-header-flex .inventory-section-title {
    margin-bottom: 0;
}

.paste-all-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 7px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.paste-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

.sticker-card-page {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

/* Controles de Navegación por Páginas (Tabs) */
.album-controls-bar {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-page-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.page-tab-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.page-tab-btn:hover {
    border-color: #38b000;
    color: #1e293b;
    transform: translateY(-1px);
}

.page-tab-btn.active {
    background: #38b000;
    color: white;
    border-color: #38b000;
    box-shadow: 0 4px 12px rgba(56, 176, 0, 0.3);
}

.page-tab-btn.active .tab-counter {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.tab-counter {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.75rem;
    color: #64748b;
}

.tab-counter.counter-gold {
    background: #fef08a;
    color: #854d0e;
    font-weight: 800;
}

.page-tab-btn.is-complete {
    border-color: #facc15;
}

/* Filtros de Estado */
.album-status-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 5px 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: #94a3b8;
    color: #334155;
}

.filter-pill.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

/* Cabecera de Página de Álbum */
.album-page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #ffedd5;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.album-page-header-flex .album-category-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.page-completion-pill {
    background: #f1f5f9;
    color: #475569;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
}

.page-completion-pill.pill-gold {
    background: linear-gradient(135deg, #fef08a, #fde047);
    color: #854d0e;
    border: 1px solid #eab308;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
}

.page-completed-glory {
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2) !important;
}

/* Badges y estados dentro del Slot */
.sticker-number-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
}

.sticker-duplicate-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #f59e0b;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.sticker-slot.is-ready {
    border: 2px dashed #10b981;
    background: #f0fdf4;
    animation: gentleGlow 2s infinite ease-in-out;
}

@keyframes gentleGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.45); }
}

.sticker-silhouette.ready-glow {
    filter: drop-shadow(0 0 8px #10b981);
    transform: scale(1.1);
}

.sticker-silhouette.locked {
    filter: grayscale(1) opacity(0.25);
}

.quick-paste-slot-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.2s, background 0.2s;
}

.quick-paste-slot-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Badges de estado en el modal de cartas reveladas */
.card-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
}

.card-status-badge.is-new {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.card-status-badge.is-dup {
    background: #f59e0b;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.tag-comun { background: #e2e8f0; color: #475569; }
.tag-rara { background: #dcfce7; color: #166534; }
.tag-epica { background: #f3e8ff; color: #6b21a8; }
.tag-legendaria { background: #fef08a; color: #854d0e; font-weight: 800; }

