/* ============= ESTILOS GENERALES =============  */
.figuritas-coleccion {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: #fff;
}

.figuritas-coleccion h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
}

/* ============= STATS CONTAINER ============= */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #fff;
}

.stat-box p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-box.tengo h3 {
    color: #4caf50;
}

.stat-box.falta h3 {
    color: #ff9800;
}

.stat-box.progreso h3 {
    font-size: 24px;
    color: #2196f3;
}

/* ============= PROGRESS BAR ============= */
.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ============= BUSCADOR ============= */
.figuritas-buscador {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.figuritas-buscador h3 {
    color: #fff;
}

.buscar-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.buscar-input:focus {
    outline: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* ============= GRID DE FIGURITAS ============= */
.figuritas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.figu-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ccc;
}

.figu-card.tengo {
    border-left-color: #4caf50;
    background: #f1f8e9;
}

.figu-card.falta {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.figu-card.sin-marcar {
    border-left-color: #2196f3;
    background: #e3f2fd;
}

.figu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.figu-codigo {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.figu-nombre {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figu-botones {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-tiene,
.btn-falta {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
    color: white;
}

.btn-tiene {
    background: #4caf50;
}

.btn-tiene:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-falta {
    background: #ff9800;
}

.btn-falta:hover {
    background: #e68900;
    transform: scale(1.05);
}

/* ============= RESULTADOS ============= */
.resultado-busqueda {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-resultados {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* ============= MATCHING FIGURITAS ============= */
.figuritas-matching {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.figuritas-matching h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.figuritas-matching > p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

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

.usuario-match-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #2196f3;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.usuario-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.usuario-avatar {
    flex-shrink: 0;
}

.usuario-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.usuario-info {
    flex: 1;
}

.usuario-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.coincidencias {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.btn.btn-primary {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn.btn-primary:hover {
    background: #1976d2;
    text-decoration: none;
}

/* ============= PERFIL FIGURITAS ============= */
.perfil-figuritas {
    max-width: 500px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.perfil-figuritas h2 {
    color: #333;
    margin-bottom: 15px;
}

.perfil-figuritas .avatar {
    margin: 20px 0;
}

.perfil-figuritas .avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #2196f3;
}

.perfil-figuritas .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.perfil-figuritas .stat {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.perfil-figuritas .stat strong {
    display: block;
    font-size: 28px;
    color: #2196f3;
    margin-bottom: 5px;
}

.perfil-figuritas .stat p {
    color: #666;
    margin: 0;
    font-size: 12px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .figuritas-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .figu-codigo {
        font-size: 14px;
    }
    
    .usuarios-matching {
        grid-template-columns: 1fr;
    }
    
    .usuario-match-card {
        flex-direction: column;
        text-align: center;
    }
    
    .usuario-avatar {
        margin: 0 auto;
    }
}

/* ============= ANIMACIONES DE CARGA ============= */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* ============= NOTIFICACIONES ============= */
.figuritas-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #4caf50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.figuritas-notification.error {
    background: #f44336;
}

.figuritas-notification.warning {
    background: #ff9800;
}
